docs(antora): switch Mermaid to offline rendering via "markup-antora"…#206
Merged
Conversation
… image Migrate the docs image to the consolidated "markup-antora" definition (one image shared across the SKaiNET docs projects, vendored here until the public registry image is published) and switch Mermaid rendering from the external Kroki round-trip to fully offline. Playbook: drop asciidoctor-kroki + kroki-fetch-diagram in favour of /opt/antora/local-mermaid-extension.js; add runtime.cache_dir so the container runs rootless. Matches mainline SKaiNET. Features of the merged image: - Offline Mermaid: every [mermaid] block is rendered to inline SVG at build time by mermaid-cli (Alpine Chromium + Puppeteer). No Kroki, no kroki.io, no network at build or view time. Removes the asciidoctor- kroki 4 KB GET-URL limit that rejected large diagrams. - Diagram caching: content-hash, in-memory + optional on-disk (MERMAID_CACHE_DIR); identical diagrams render once. - Rootless-safe under --user $(id -u):$(id -g) (HOME=/tmp + cleanup of root-owned /tmp dirs; fixes Chromium crashpad / cosmiconfig EACCES). - Build-time mermaid smoke test (a broken image fails docker build). - Offline extras available: @antora/lunr-extension, pre-baked Antora UI bundle, MathJax es5; asciidoctor-kroki kept as an escape hatch. - Full Alpine font set for diagram labels, emoji and CJK. CI is unchanged: docs.yml already builds from docs/.docker. Usage and details: see docs/.docker/README.md. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
… image
Migrate the docs image to the consolidated "markup-antora" definition (one image shared across the SKaiNET docs projects, vendored here until the public registry image is published) and switch Mermaid rendering from the external Kroki round-trip to fully offline.
Playbook: drop asciidoctor-kroki + kroki-fetch-diagram in favour of /opt/antora/local-mermaid-extension.js; add runtime.cache_dir so the container runs rootless. Matches mainline SKaiNET.
Features of the merged image:
CI is unchanged: docs.yml already builds from docs/.docker.
Usage and details: see docs/.docker/README.md.