diff options
| author | Leitwolf11 | 2026-10-03 18:46:59 +0300 |
|---|---|---|
| committer | Leitwolf11 | 2026-10-03 18:46:59 +0300 |
| commit | b84a2216c26cc5392d0dc300b7a605ccb288d8c8 (patch) | |
| tree | 048ae623f49cc5f2f94234d747351f9e659f5267 /docs/api/index.md | |
| parent | ec774db15976385a6d5ea6f48d3622fe507d3843 (diff) | |
| parent | cf444eb3bccf99c10f59ed5330b61c0397e0aeaa (diff) | |
| download | progmaweb-fix/api-without-google.tar.gz | |
Merge remote-tracking branch 'origin/main' into fix/api-without-googlefix/api-without-google
Diffstat (limited to 'docs/api/index.md')
| -rw-r--r-- | docs/api/index.md | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/docs/api/index.md b/docs/api/index.md index 868fff1..71b532b 100644 --- a/docs/api/index.md +++ b/docs/api/index.md @@ -12,8 +12,27 @@ The service is an application, not a library, so most of its types are internal. The reference includes them: it documents the code for the people who maintain it. -Build it from the repository root: +Build and check it from the repository root: ```sh -docfx docs/api/docfx.json --warningsAsErrors +dotnet tool restore +dotnet docfx docs/api/docfx.json --warningsAsErrors +dotnet run docs/api/CheckDocumentation.cs -- docs/api ``` + +## What the gate requires + +Three things fail the check, locally and in CI: + +- **A broken link or an unresolved reference.** DocFX runs with every warning treated as an error. +- **An undocumented public declaration or a wrong `cref`.** The API project compiles its XML documentation, and the + build treats the compiler's documentation warnings as errors. +- **Any undocumented item of the reference.** `CheckDocumentation.cs` reads the metadata DocFX generated and fails + when a namespace, type or member has no summary. This covers internal and private members too, which the compiler + does not check. + +A namespace has no declaration that could hold a comment. Its description is a file in `namespaces/`, named after +the namespace. + +`filterConfig.yml` lists what is left out of the reference: code written by a source generator, which nobody +maintains and which cannot carry documentation. Do not add an entry there to get past the gate; write the summary. |