In the code
The endpoint and the catalog, read from this build
(api/TheYard.Api/Features/Docs/DocumentationEndpoints.cs
and
api/TheYard.Api/Shared/Documentation/DocumentationCatalog.cs):
app.MapGet("/api/docs/{slug}", Document)
.WithName("GetDocument")
.WithTags("Documents")
.WithSummary("One of the served documents, as markdown with its code samples expanded")
.WithDescription("The slug is one the sidebar offers: readme, architecture, a record such as adr-openapi. "
+ "Every live block is read from this build at request time.")
.Produces<string>(StatusCodes.Status200OK, "text/markdown")
.ProducesProblem(StatusCodes.Status404NotFound);
Live from api/TheYard.Api/Features/Docs/DocumentationEndpoints.cs, region docs-endpoint, read from this build at 99df7a8.
public static readonly IReadOnlyDictionary<string, string> Files = new Dictionary<string, string>(StringComparer.Ordinal)
{
["readme"] = "README.md",
["start-here"] = "docs/app-architecture/START-HERE.md",
["clean-architecture"] = "docs/app-architecture/CLEAN-ARCHITECTURE.md",
["solid"] = "docs/app-architecture/SOLID.md",
["vscode"] = "docs/app-architecture/VSCODE.md",
["dataflow"] = "docs/app-architecture/DATAFLOW.md",
["sql-vs-cosmos"] = "docs/sql-vs-cosmos/SQL-VS-COSMOS.md",
["projects"] = "docs/app-architecture/PROJECTS.md",
["hosting"] = "docs/hosting/HOSTING.md",
["what-is-watched"] = "docs/hosting/WHAT-IS-WATCHED.md",
["adr-origin"] = "docs/decisions/ADR-001-front-door-origin.md",
["adr-docker"] = "docs/decisions/ADR-002-docker-packaging.md",
["adr-naming"] = "docs/decisions/ADR-003-azure-naming.md",
["adr-pivots"] = "docs/decisions/ADR-004-deployment-pivots.md",
["adr-edge-economics"] = "docs/decisions/ADR-007-edge-economics.md",
["adr-linux"] = "docs/decisions/ADR-008-linux-containers.md",
["cicd"] = "docs/ci-cd/CICD.md",
["adr-pipeline"] = "docs/decisions/ADR-009-deploy-pipeline.md",
["practices"] = "docs/best-practices/BEST-PRACTICES.md",
["sealed"] = "docs/best-practices/SEALED.md",
["memory"] = "docs/best-practices/MEMORY.md",
["onion"] = "docs/best-practices/ONION.md",
["cqrs"] = "docs/best-practices/CQRS.md",
["adr-versioning"] = "docs/decisions/ADR-005-version-footer.md",
["adr-docs"] = "docs/decisions/ADR-006-docs-and-testing.md",
["adr-observability"] = "docs/decisions/ADR-010-observability.md",
["adr-phone"] = "docs/decisions/ADR-011-phone-header.md",
["changelog"] = "docs/CHANGELOG.md",
["adr-changelog"] = "docs/decisions/ADR-012-changelog.md",
["adr-sidebar"] = "docs/decisions/ADR-013-sidebar.md",
["adr-live-samples"] = "docs/decisions/ADR-014-live-samples.md",
["adr-caching"] = "docs/decisions/ADR-015-cache-headers.md",
["adr-palette"] = "docs/decisions/ADR-016-palette.md",
["adr-review"] = "docs/decisions/ADR-017-staff-review.md",
["adr-program"] = "docs/decisions/ADR-018-program-cs-explained.md",
["adr-react"] = "docs/decisions/ADR-019-react-configuration-explained.md",
["adr-diagrams"] = "docs/decisions/ADR-020-diagram-pages.md",
["adr-tests"] = "docs/decisions/ADR-021-tests-explained.md",
["adr-grouping"] = "docs/decisions/ADR-022-app-architecture-group.md",
["adr-errors"] = "docs/decisions/ADR-023-error-handling.md",
["adr-telemetry"] = "docs/decisions/ADR-024-telemetry.md",
["adr-search"] = "docs/decisions/ADR-025-search-index.md",
["adr-keyboard"] = "docs/decisions/ADR-026-keyboard.md",
["adr-bidders"] = "docs/decisions/ADR-027-competing-bidders.md",
["adr-style"] = "docs/decisions/ADR-028-style-enforced.md",
["adr-records"] = "docs/decisions/ADR-029-records-index.md",
["adr-exceptions"] = "docs/decisions/ADR-030-exception-handler.md",
["adr-version-source"] = "docs/decisions/ADR-031-version-from-changelog.md",
["adr-method"] = "docs/decisions/ADR-032-ai-development.md",
["adr-store"] = "docs/decisions/ADR-033-relational-store.md",
["adr-ef"] = "docs/decisions/ADR-034-entity-framework-explained.md",
["adr-a11y-check"] = "docs/decisions/ADR-035-accessibility-check.md",
["adr-photos"] = "docs/decisions/ADR-036-responsive-photos.md",
["adr-accounts"] = "docs/decisions/ADR-037-accounts.md",
["adr-identity"] = "docs/decisions/ADR-038-identity-explained.md",
["adr-sql-server"] = "docs/decisions/ADR-039-sql-server-backend.md",
["adr-data-first"] = "docs/decisions/ADR-040-database-source-control.md",
["adr-providers"] = "docs/decisions/ADR-041-two-providers-explained.md",
["adr-exemptions"] = "docs/decisions/ADR-042-exemptions-that-hide.md",
["adr-sql-visible"] = "docs/decisions/ADR-043-what-the-database-is-doing.md",
["adr-interceptors"] = "docs/decisions/ADR-044-interceptors-explained.md",
["adr-self-review"] = "docs/decisions/ADR-045-reviewing-my-own-work.md",
["adr-the-name"] = "docs/decisions/ADR-046-the-name.md",
["adr-second-manifest"] = "docs/decisions/ADR-047-the-second-manifest.md",
["adr-reset"] = "docs/decisions/ADR-048-reset-is-one-persons.md",
["adr-room-account"] = "docs/decisions/ADR-049-the-room-needs-an-account.md",
["adr-lockout"] = "docs/decisions/ADR-050-a-password-guess-should-cost-something.md",
["adr-coverage"] = "docs/decisions/ADR-051-counting-what-the-tests-cover.md",
["adr-where-gates-live"] = "docs/decisions/ADR-052-where-a-gate-lives.md",
["adr-public-face"] = "docs/decisions/ADR-053-the-public-face.md",
["adr-one-write"] = "docs/decisions/ADR-054-the-one-write-a-stranger-can-make.md",
["adr-broken-windows"] = "docs/decisions/ADR-055-broken-windows.md",
["adr-stale-listing"] = "docs/decisions/ADR-056-the-listing-that-went-stale.md",
["adr-record-address"] = "docs/decisions/ADR-057-a-record-with-no-address.md",
["adr-partition-key"] = "docs/decisions/ADR-058-the-partition-key.md",
["adr-second-store"] = "docs/decisions/ADR-059-a-second-store-priced.md",
["adr-ports-wait"] = "docs/decisions/ADR-060-the-ports-learn-to-wait.md",
["adr-accounts-documents"] = "docs/decisions/ADR-061-accounts-on-a-document-store.md",
["adr-store-visible"] = "docs/decisions/ADR-062-what-the-store-is-actually-doing.md",
["adr-backends"] = "docs/decisions/ADR-063-backends-side-by-side.md",
["adr-measuring-stores"] = "docs/decisions/ADR-064-measuring-both-stores.md",
["adr-cosmos-explained"] = "docs/decisions/ADR-065-cosmos-db-explained.md",
["adr-one-container"] = "docs/decisions/ADR-066-one-container-both-stores.md",
["adr-proof"] = "docs/decisions/ADR-067-same-performance-proven.md",
["adr-five-minute-gate"] = "docs/decisions/ADR-068-the-five-minute-gate.md",
["adr-second-address"] = "docs/decisions/ADR-069-a-permanent-address-for-the-second-site.md",
["adr-three-readers"] = "docs/decisions/ADR-070-three-readers-with-no-memory.md",
["adr-activity"] = "docs/decisions/ADR-071-site-activity.md",
["adr-secrets"] = "docs/decisions/ADR-072-the-code-is-public-the-secrets-are-not.md",
["adr-kept-logs"] = "docs/decisions/ADR-073-logs-that-outlive-the-container.md",
["adr-highlighting"] = "docs/decisions/ADR-074-code-that-reads-like-code.md",
["adr-rules"] = "docs/decisions/ADR-075-the-rules-a-change-has-to-pass.md",
["adr-openapi"] = "docs/decisions/ADR-076-the-api-describes-itself.md",
["adr-page-status"] = "docs/decisions/ADR-077-every-page-checked.md",
["adr-machines"] = "docs/decisions/ADR-078-what-the-machines-are-doing.md",
["adr-one-plan"] = "docs/decisions/ADR-079-one-plan-two-sites.md",
["adr-admin-product"] = "docs/decisions/ADR-080-the-admin-tab-as-a-product.md",
["adr-glass-look"] = "docs/decisions/ADR-081-the-glass-look.md",
["adr-landing-page"] = "docs/decisions/ADR-082-the-landing-page-and-the-site-map.md",
["adr-tweaks"] = "docs/decisions/ADR-083-the-tweaks-pass.md",
["adr-component-folders"] = "docs/decisions/ADR-084-one-folder-per-component.md",
["adr-kept-awake"] = "docs/decisions/ADR-085-kept-awake.md",
["adr-composition-root"] = "docs/decisions/ADR-086-the-composition-root-split-by-job.md",
["adr-azure-costs"] = "docs/decisions/ADR-087-what-azure-charges.md",
["adr-onion-and-solid"] = "docs/decisions/ADR-088-onion-and-solid.md",
["adr-technology-versions"] = "docs/decisions/ADR-089-technology-versions.md",
["adr-dotnet-10"] = "docs/decisions/ADR-090-staying-on-dotnet-10.md",
["adr-docs-folders"] = "docs/decisions/ADR-091-one-folder-per-sidebar-section.md",
["adr-render-at-build-time"] = "docs/decisions/ADR-092-render-at-build-time.md",
["adr-request-pipeline"] = "docs/decisions/ADR-093-the-order-of-the-request-pipeline.md",
["adr-compiled-before-it-ships"] = "docs/decisions/ADR-094-compiled-before-it-ships.md",
["adr-blue-green-measured-and-held"] = "docs/decisions/ADR-095-blue-green-measured-and-held.md",
["adr-a-rendering-service-beside-the-api"] = "docs/decisions/ADR-096-a-rendering-service-beside-the-api.md",
["adr-the-editor-is-set-up-by-the-repository"] = "docs/decisions/ADR-097-the-editor-is-set-up-by-the-repository.md",
["adr-the-gate-runs-where-the-memory-is"] = "docs/decisions/ADR-098-the-gate-runs-where-the-memory-is.md",
["adr-the-resume-has-an-address"] = "docs/decisions/ADR-099-the-resume-has-an-address.md",
["adr-one-reading-for-the-first-screen"] = "docs/decisions/ADR-100-one-reading-for-the-first-screen.md",
["adr-the-app-service-plan-read-every-minute"] = "docs/decisions/ADR-101-the-app-service-plan-read-every-minute.md",
["adr-one-frame-for-every-resource"] = "docs/decisions/ADR-102-one-frame-for-every-resource.md",
["adr-the-store-does-the-work"] = "docs/decisions/ADR-103-the-store-does-the-work.md",
["adr-memory-follows-traffic"] = "docs/decisions/ADR-104-memory-follows-traffic.md",
["adr-one-web-app-for-every-net-process"] = "docs/decisions/ADR-105-one-web-app-for-every-net-process.md",
["adr-unused-resources-are-deleted"] = "docs/decisions/ADR-106-unused-resources-are-deleted.md",
["adr-the-onion-cut-into-vertical-slices"] = "docs/decisions/ADR-107-the-onion-cut-into-vertical-slices.md",
["adr-tagged-links-who-opened-what"] = "docs/decisions/ADR-108-tagged-links-who-opened-what.md",
["adr-the-nightly-function-on-the-admin-tab"] = "docs/decisions/ADR-109-the-nightly-function-on-the-admin-tab.md",
["adr-one-working-lock-for-the-whole-site-after-half-a-second"] = "docs/decisions/ADR-110-one-working-lock-for-the-whole-site.md",
["adr-the-tracker-merger-runs-in-azure"] = "docs/decisions/ADR-111-the-tracker-merger-runs-in-azure.md",
["adr-every-claude-lane-reports-its-usage"] = "docs/decisions/ADR-112-every-claude-lane-reports-its-usage.md",
["adr-every-linkedin-post-is-also-a-blog-post"] = "docs/decisions/ADR-113-every-linkedin-post-is-also-a-blog-post.md",
["adr-the-host-root-holds-one-file"] = "docs/decisions/ADR-114-the-host-root-holds-one-file.md",
["adr-a-request-is-a-query-or-a-command"] = "docs/decisions/ADR-115-a-request-is-a-query-or-a-command.md",
["adr-people-who-have-visited-counted-once"] = "docs/decisions/ADR-116-people-who-have-visited-counted-once.md",
["adr-one-host-per-process-the-rings-under-them"] = "docs/decisions/ADR-117-one-host-per-process-the-rings-under-them.md",
["adr-the-campaign-sends-the-model-writes-rows"] = "docs/decisions/ADR-118-the-campaign-sends-the-model-writes-rows.md",
["adr-the-modular-monolith"] = "docs/decisions/ADR-119-the-modular-monolith.md",
["adr-a-red-that-lasts-an-hour-gets-a-postmortem"] = "docs/decisions/ADR-120-a-red-that-lasts-an-hour-gets-a-postmortem.md",
["adr-the-foreman-a-place-to-start"] = "docs/decisions/ADR-121-the-foreman-a-place-to-start.md",
["adr-the-numbers-that-may-only-fall"] = "docs/decisions/ADR-122-the-numbers-that-may-only-fall.md",
["adr-ten-minutes-seven-stops"] = "docs/decisions/ADR-123-ten-minutes-seven-stops.md",
["adr-the-network-log-drafts-steve-sends"] = "docs/decisions/ADR-124-the-network-log-drafts-steve-sends.md",
["adr-the-nightly-picker-code-gates-and-the-model-ranks"] = "docs/decisions/ADR-125-the-nightly-picker-code-gates-and-the-model-ranks.md",
["adr-the-recommendations-have-a-page"] = "docs/decisions/ADR-126-the-recommendations-have-a-page.md",
["adr-the-box-reports-itself"] = "docs/decisions/ADR-127-the-box-reports-itself.md",
["adr-live-dials-where-the-source-allows"] = "docs/decisions/ADR-128-live-dials-where-the-source-allows.md",
["adr-coderabbit-one-rung-at-a-time"] = "docs/decisions/ADR-129-coderabbit-one-rung-at-a-time.md",
["adr-quality-you-can-watch"] = "docs/decisions/ADR-130-quality-you-can-watch.md",
["adr-library-docs-at-the-pinned-version"] = "docs/decisions/ADR-131-library-docs-at-the-pinned-version.md",
["adr-a-hook-on-every-page"] = "docs/decisions/ADR-132-a-hook-on-every-page.md",
["adr-one-sql-database-one-schema-per-area"] = "docs/decisions/ADR-133-one-sql-database-one-schema-per-area.md",
["adr-a-byte-budget-for-the-first-load"] = "docs/decisions/ADR-134-a-byte-budget-for-the-first-load.md",
["adr-an-empty-run-is-a-failed-run"] = "docs/decisions/ADR-135-an-empty-run-is-a-failed-run.md",
["adr-a-pull-request-of-ai-written-code-is-sized-to-the-gate"] = "docs/decisions/ADR-136-a-pull-request-of-ai-written-code-is-sized-to-the-gate.md",
["adr-one-traffic-cop-for-main"] = "docs/decisions/ADR-137-one-traffic-cop-for-main.md",
["adr-the-review-route-gives-a-reason-before-it-asks"] = "docs/decisions/ADR-138-the-review-route-gives-a-reason-before-it-asks.md",
["adr-the-system-watches-its-scheduled-tasks-and-heals-what-it-may"] = "docs/decisions/ADR-139-the-system-watches-its-scheduled-tasks-and-heals-what-it-may.md",
["adr-the-stack-has-a-page-of-its-own"] = "docs/decisions/ADR-140-the-stack-has-a-page-of-its-own.md",
["adr-automated-tests-never-touch-a-real-database-or-permanent-storage"] = "docs/decisions/ADR-141-automated-tests-never-touch-a-real-database-or-permanent-storage.md",
["adr-the-sales-pages-set-the-sites-look"] = "docs/decisions/ADR-142-the-sales-pages-set-the-sites-look.md",
["adr-search-engines-are-told-about-every-post"] = "docs/decisions/ADR-143-search-engines-are-told-about-every-post.md",
["adr-old-folders-are-zipped-not-kept"] = "docs/decisions/ADR-144-old-folders-are-zipped-not-kept.md",
["adr-tags-and-synonyms-are-data"] = "docs/decisions/ADR-145-tags-and-synonyms-are-data.md",
["adr-linkedin-posting-through-the-self-serve-api"] = "docs/decisions/ADR-146-linkedin-posting-through-the-self-serve-api.md",
["adr-commits-on-main-are-signed-in-the-promote-job"] = "docs/decisions/ADR-147-commits-on-main-are-signed-in-the-promote-job.md",
["adr-outcomes-and-reasons-the-model-proposes-rows-code-admits-them"] = "docs/decisions/ADR-148-outcomes-and-reasons-the-model-proposes-rows-code-admits-them.md",
["adr-the-reply-pass-screens-before-it-drafts"] = "docs/decisions/ADR-149-the-reply-pass-screens-before-it-drafts.md",
["adr-the-foreman-gets-a-model"] = "docs/decisions/ADR-150-the-foreman-gets-a-model.md",
["adr-moving-to-dotnet-11-in-four-ships"] = "docs/decisions/ADR-151-moving-to-dotnet-11-in-four-ships.md",
["adr-coding-lanes-run-in-a-sandbox-on-wickedawsome"] = "docs/decisions/ADR-152-coding-lanes-run-in-a-sandbox-on-wickedawsome.md",
["adr-a-feed-and-a-ping-for-every-post"] = "docs/decisions/ADR-153-a-feed-and-a-ping-for-every-post.md",
["incidents"] = "docs/incidents/INCIDENTS.md",
["inc-001-the-share-that-billed-for-looking"] = "docs/incidents/INC-001-the-share-that-billed-for-looking.md",
["style-guide"] = "docs/style/STYLE-GUIDE.md",
["color-style"] = "docs/style/COLOR-STYLE.md",
["background-ribbon"] = "docs/style/BACKGROUND-RIBBON.md",
["ui-architecture"] = "docs/style/UI-ARCHITECTURE.md",
["document-style"] = "docs/style/DOCUMENT-STYLE.md",
["author"] = "docs/author/AUTHOR.md",
["security"] = "docs/best-practices/SECURITY.md",
["react-server-rendering"] = "docs/best-practices/REACT-SERVER-RENDERING.md",
["ahead-of-time-compilation"] = "docs/best-practices/AHEAD-OF-TIME-COMPILATION.md",
["ai-development"] = "docs/about/AI-DEVELOPMENT.md",
["built-with-ai"] = "docs/built-with-ai/BUILT-WITH-AI.md",
["quality"] = "docs/quality/QUALITY.md",
["infrastructure-overview"] = "docs/performance/INFRASTRUCTURE-OVERVIEW.md",
["web-overview"] = "docs/performance/WEB-OVERVIEW.md",
["performance"] = "docs/performance/PERFORMANCE.md",
["site-traffic"] = "docs/site-traffic/SITE-TRAFFIC.md",
["traffic-who"] = "docs/site-traffic/TRAFFIC-WHO.md",
["traffic-kept"] = "docs/site-traffic/TRAFFIC-KEPT.md",
["traffic-found"] = "docs/site-traffic/TRAFFIC-FOUND.md",
["traffic-search-console"] = "docs/site-traffic/TRAFFIC-SEARCH-CONSOLE.md",
["architecture"] = "docs/app-architecture/ARCHITECTURE.md",
["style"] = "docs/app-architecture/STYLE.md",
};
Live from api/TheYard.Api/Shared/Documentation/DocumentationCatalog.cs, region docs-catalog, read from this build at 99df7a8.