This directory is the single source of truth for fhir-codegen's authored documentation. The published site lives at https://fhir.github.io/fhir-codegen/.
| Path | Purpose |
|---|---|
docs/index.md |
Site landing page. |
docs/toc.yml |
Top-level table of contents. |
docs/articles/ |
Long-form, hand-authored articles. |
docs/specs/ |
Internal design / process specs. |
docfx/ |
DocFX build configuration only (no narrative content here). |
docfx/cli-generated/cli.md |
Built by fhir-codegen docs cli; not committed. |
docfx/api/ |
Built by DocFX metadata; not committed. |
docfx/_site/ |
Built site output; not committed. |
- Top-level
docs/is the single source of truth. Per-projectdocs/folders (e.g. the oldsrc/Fhir.CodeGen.Packages/docs/) are retired. If a project needs documentation, add it underdocs/articles/. docfx/holds build configuration (docfx.json,.gitignore) and build outputs only — no narrative.mdfiles.- The CLI usage page (
articles/cli.htmlon the site) is generated at build time from the live System.CommandLine surface by thefhir-codegen docs clisubcommand and written todocfx/cli-generated/cli.md. Do not hand-edit it. It is.gitignored and surfaced into the site by adocfx.jsoncontent entry.
# 1. Build the solution (needed for DocFX metadata + the CLI emitter).
dotnet build fhir-codegen.sln -c Release
# 2. Generate the live CLI page (optional — without it, articles/cli.html
# will 404 in the local preview but the rest of the site still builds).
dotnet run --no-build --configuration Release `
--project src/fhir-codegen/fhir-codegen.csproj -- `
docs cli --output docfx/cli-generated/cli.md
# 3. Install DocFX (one-time per machine) and build the site.
dotnet tool install -g docfx
docfx ./docfx/docfx.json --serveThe CI workflow .github/workflows/docs.yaml runs the same three steps
on every push to main and deploys the result to GitHub Pages.
docfx reads metadata from compiled .dlls. The
dotnet build fhir-codegen.sln -c Release step must run before
docfx ./docfx/docfx.json. If you ever rearrange the workflow, keep the
build step ahead of the docfx step.