Restore the repository-local DocFX version:
dotnet tool restoreBuild the static site:
dotnet docfx docs/docfx.jsonRun a local preview server and open http://localhost:8080:
dotnet docfx docs/docfx.json --serveDocFX writes generated HTML to docs/_site and generated API metadata to docs/api;
both directories are ignored by Git.
API examples are maintained outside the library source code. Markdown overwrite files in
docs/api-overwrites attach an example to an API page by its DocFX uid, while the
referenced source snippets live in docs/snippets.
To add an example, find the generated UID in docs/api/*.yml, add an overwrite section,
and reference a snippet with DocFX's [!code-csharp[](...)] or [!code-razor[](...)] syntax.