Skip to content

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

  1. Create the file in the folder for its topic. Name it in lowercase kebab-case, for example getting-started-with-templates.md.
  2. Add front matter (CS-DOCS-003).
  3. Write the opening: one # title, then a purpose statement (CS-DOCS-002).
  4. Add the page to the nav in mkdocs.yml, in the right section. Nest no more than three levels deep.
  5. Build locally:

    python -m mkdocs build --strict
    pwsh ./scripts/connectsoft-docs.ps1 validate
    pwsh ./scripts/connectsoft-docs.ps1 check-standards
    

    When you change a page in the engineering standards section, also run generate-rule-index and commit the updated rule-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.