Contributing documentation¶
This page explains how to add or change a page on the ConnectSoft documentation sites without breaking their structure. It is written for anyone who edits the documentation. The rules a page must meet are in the documentation writing standard.
The sites are built with MkDocs and Material for MkDocs from Markdown files with YAML front matter.
| Site | Repository | Content |
|---|---|---|
| Technical documentation (this site) | ConnectSoft.Documentation |
Architecture, templates, libraries, engineering standards and technical ADRs. |
| Company documentation | ConnectSoft.CompanyDocumentation |
Strategy, products, business models, business policies, BDRs and company ADRs. |
Kinds of page¶
- Concept: principles, patterns, architecture.
- Standard: citable rules with IDs. These live only in the engineering standards section.
- Guide: getting started, how-to, quick starts.
- Reference: API references, registries, glossary.
- Runbook: operations procedures.
- Decision record: ADRs and BDRs (see Decision records).
Put a rule on a standard page, not in a concept page. A concept page links to the rule by its ID.
Adding a page¶
- Create the file in the folder for its topic. Name it in lowercase kebab-case, for example
getting-started-with-templates.md. - Add front matter (CS-DOCS-003).
- Write the opening: one
#title, then a purpose statement (CS-DOCS-002). - Add the page to the nav in
mkdocs.yml, in the right section. Nest no more than three levels deep. -
Build locally:
python -m mkdocs build --strict pwsh ./scripts/connectsoft-docs.ps1 validate pwsh ./scripts/connectsoft-docs.ps1 check-standardsWhen you change a page in the engineering standards section, also run
generate-rule-indexand commit the updatedrule-index.md.
Review checklist¶
Content - [ ] The purpose and the audience are clear. - [ ] The content is accurate against the current code and templates. - [ ] Rules are on standard pages and cited by ID elsewhere.
Structure and style
- [ ] One # title and a purpose statement.
- [ ] Logical headings, and admonitions used for their meaning.
- [ ] English only; no client names, people or secrets.
Links and diagrams
- [ ] Relative links work, and mkdocs build --strict passes.
- [ ] Mermaid diagrams render and match the text.
- [ ] Code examples compile in principle and follow the standards they illustrate.
Navigation - [ ] The page is in the nav, in the right section.