Create and Publish a Documentation Site
Use this page for a complete, user-friendly path to create and publish a documentation site using the MoJ template.
Recommended starting point
- Start from template-documentation-site.
- Replace sample content with your real user guidance.
End-to-end flow
flowchart TB
A[Create repository from template] --> B[Set ownership and metadata]
B --> C[Draft user-focused content]
C --> D[Run repository preview and link checks]
D --> E[Open PR and get review]
E --> F[Merge approved changes]
F --> G[Optional: add source to Developer Portal]
G --> H[Verify pages and search visibility]
Step 1: Create from template
- Create a new repository using the template.
- Follow template setup instructions in the README.
- Update the
CODEOWNERSfile in your repository so review requests go to the correct team. - Remove sample pages you do not need.
Step 2: Prepare user-focused content
- Use plain language and explain acronyms.
- Add ownership metadata on pages.
- Keep page names clear and descriptive.
Step 3: Validate before PR
- Use the repository’s documented preview workflow.
- Run the repository’s documented link validation checks.
- Ask at least one reviewer to confirm readability for non-technical users.
Step 4 (optional): Add your docs to the Developer Portal
- If you want this documentation published in the Developer Portal, follow Add a Documentation Site to the Portal.
- Use that guide for
sources.json, PR steps, and Slack review request. - After merge, verify pages render correctly and appear in search.
Common mistakes to avoid
- Publishing without clear page ownership.
- Keeping template placeholder content in production.
- Using internal-only terminology in external docs.
- Publishing without checking links and navigation.
Support and escalation
If you need help with onboarding to the Developer Portal, ask in #ask-developer-experience.
Related pages
This page was last reviewed on 9 July 2026.
It needs to be reviewed again on 9 January 2027
by the page owner #developer-experience-alerts
.
This page was set to be reviewed before 9 January 2027
by the page owner #developer-experience-alerts.
This might mean the content is out of date.