Docs: Pin mdbook-mermaid for just docs
-
Status: Accepted
-
Date: 2025-12-31
-
Context:
- Motivation:
just docsfailed because mdbook-mermaid 0.16.2 cannot parse under mdbook 0.5.2, even though docs are valid. - Constraints: Docs build must run via
just, no manual tooling, avoid repo changes outside the justfile. - Test coverage summary:
just docsrun after change; no unit tests applicable. - Observability updates: None.
- Dependency rationale: No new crates; pin existing mdbook-mermaid tool to 0.17.0 to match mdbook 0.5.x behavior.
- Motivation:
-
Decision:
- Require mdbook-mermaid 0.17.0 in
just docs-installand reinstall if mismatched. - Make
just docsinvokejust docs-installbefore build and index. - Alternatives considered: rely on user-managed tool versions; pin mdbook to 0.5.0; remove mermaid preprocessor.
- Require mdbook-mermaid 0.17.0 in
-
Consequences:
- Positive outcomes:
just docsconsistently installs a compatible mermaid preprocessor and builds successfully. - Risks or trade-offs: Running
just docsmay reinstall mdbook-mermaid when versions differ; version pin may lag future mdbook releases. - Risk & rollback plan: If issues arise, revert the
justfilechange or update the pinned version and rerunjust docs.
- Positive outcomes:
-
Follow-up:
- Implementation tasks: Update
justfileand verifyjust docs. - Review checkpoints: Revisit the pin when mdbook or mdbook-mermaid releases require it.
- Implementation tasks: Update