fix(docs): library fallback must be {"items":[]} not []
Some checks failed
CI / lint (push) Successful in 38s
Deploy / notebooks (push) Has been skipped
Deploy / zotero (push) Has been skipped
Deploy / docs (push) Successful in 36s
Deploy / api (push) Has been skipped
Deploy / mc (push) Has been skipped
Infra CI / notebooks (push) Failing after 16s
Infra CI / zotero (push) Successful in 16s
Infra CI / docs (push) Successful in 16s
Infra CI / api (push) Successful in 15s
Infra CI / mc (push) Successful in 18s
Deploy / report (push) Successful in 40s
CI / test (push) Has been cancelled

This commit is contained in:
kert
2026-04-18 22:29:33 -04:00
parent 845cd04c06
commit 472f2aa66a

View File

@@ -17,7 +17,7 @@ RUN uv run --with griffe python docs/scripts/extract_docs.py
# tolerates a missing bib.sqlite and writes an empty library.json.
RUN mkdir -p data
COPY data/.gitkeep data/bib.sqlit[e] data/
RUN uv run --with pydantic python docs/scripts/export_library.py || (mkdir -p docs/static && echo '[]' > docs/static/library.json)
RUN uv run --with pydantic python docs/scripts/export_library.py || (mkdir -p docs/static && echo '{"items":[]}' > docs/static/library.json)
# Stage 2: Build Docusaurus static site