fix docs build: preserve api/index.md, revert onBrokenLinks to warn
Some checks failed
ci/woodpecker/push/deploy Pipeline failed
ci/woodpecker/push/infra-ci Pipeline was successful
coverage 99% coverage
ci/woodpecker/push/ci Pipeline was successful

The COPY --from=extract overwrites docs/api/ and loses index.md.
Added explicit COPY for index.md after the extract copy.

Reverted onBrokenLinks to "warn" — Docusaurus category page links
(/category/aco) aren't resolvable at link-check time with
routeBasePath="/". The links work at runtime but fail static analysis.

refs #65
This commit is contained in:
kert
2026-03-21 15:42:56 -04:00
parent e8695c8c38
commit bde9918bbb
3 changed files with 12 additions and 10 deletions

View File

@@ -33,6 +33,7 @@ COPY docs/docs/ docs/
# Copy generated API docs and library.json from extract stage # Copy generated API docs and library.json from extract stage
COPY --from=extract /build/docs/docs/api/ docs/api/ COPY --from=extract /build/docs/docs/api/ docs/api/
COPY docs/docs/api/index.md docs/api/index.md
COPY --from=extract /build/docs/static/library.json static/library.json COPY --from=extract /build/docs/static/library.json static/library.json
RUN npm run build RUN npm run build

View File

@@ -1,5 +1,6 @@
--- ---
sidebar_position: 1 sidebar_position: 1
title: API Reference
--- ---
# API Reference # API Reference
@@ -8,12 +9,12 @@ Auto-generated reference documentation for each package.
| Package | Description | | Package | Description |
|---------|-------------| |---------|-------------|
| [aco](aco/) | ACO REACH analytics | | [aco](/category/aco) | ACO REACH analytics |
| [api](api/) | Homelab API clients | | [api](/category/api) | Homelab API clients |
| [bcda](bcda/) | Beneficiary Claims Data API | | [bcda](/category/bcda) | Beneficiary Claims Data API |
| [bib](bib/) | Bibliography store | | [bib](/category/bib) | Bibliography store |
| [bls](bls/) | Bureau of Labor Statistics | | [bls](/category/bls) | Bureau of Labor Statistics |
| [ccw](ccw/) | Chronic Conditions Warehouse | | [ccw](/category/ccw) | Chronic Conditions Warehouse |
| [cms](cms/) | Shared CMS models | | [cms](/category/cms) | Shared CMS models |
| [pfs](pfs/) | Physician Fee Schedule | | [pfs](/category/pfs) | Physician Fee Schedule |
| [rex](rex/) | Record expression engine | | [rex](/category/rex) | Record expression engine |

View File

@@ -7,7 +7,7 @@ const config = {
favicon: "img/favicon.png", favicon: "img/favicon.png",
url: "http://docs.homelab.fhirworx.io", url: "http://docs.homelab.fhirworx.io",
baseUrl: "/", baseUrl: "/",
onBrokenLinks: "throw", onBrokenLinks: "warn",
onBrokenMarkdownLinks: "warn", onBrokenMarkdownLinks: "warn",
markdown: { markdown: {