fix docs build: preserve api/index.md, revert onBrokenLinks to warn
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:
@@ -33,6 +33,7 @@ COPY docs/docs/ docs/
|
||||
|
||||
# Copy generated API docs and library.json from extract stage
|
||||
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
|
||||
|
||||
RUN npm run build
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
title: API Reference
|
||||
---
|
||||
|
||||
# API Reference
|
||||
@@ -8,12 +9,12 @@ Auto-generated reference documentation for each package.
|
||||
|
||||
| Package | Description |
|
||||
|---------|-------------|
|
||||
| [aco](aco/) | ACO REACH analytics |
|
||||
| [api](api/) | Homelab API clients |
|
||||
| [bcda](bcda/) | Beneficiary Claims Data API |
|
||||
| [bib](bib/) | Bibliography store |
|
||||
| [bls](bls/) | Bureau of Labor Statistics |
|
||||
| [ccw](ccw/) | Chronic Conditions Warehouse |
|
||||
| [cms](cms/) | Shared CMS models |
|
||||
| [pfs](pfs/) | Physician Fee Schedule |
|
||||
| [rex](rex/) | Record expression engine |
|
||||
| [aco](/category/aco) | ACO REACH analytics |
|
||||
| [api](/category/api) | Homelab API clients |
|
||||
| [bcda](/category/bcda) | Beneficiary Claims Data API |
|
||||
| [bib](/category/bib) | Bibliography store |
|
||||
| [bls](/category/bls) | Bureau of Labor Statistics |
|
||||
| [ccw](/category/ccw) | Chronic Conditions Warehouse |
|
||||
| [cms](/category/cms) | Shared CMS models |
|
||||
| [pfs](/category/pfs) | Physician Fee Schedule |
|
||||
| [rex](/category/rex) | Record expression engine |
|
||||
|
||||
@@ -7,7 +7,7 @@ const config = {
|
||||
favicon: "img/favicon.png",
|
||||
url: "http://docs.homelab.fhirworx.io",
|
||||
baseUrl: "/",
|
||||
onBrokenLinks: "throw",
|
||||
onBrokenLinks: "warn",
|
||||
onBrokenMarkdownLinks: "warn",
|
||||
|
||||
markdown: {
|
||||
|
||||
Reference in New Issue
Block a user