[Docs] Add build-time diagrams (Mermaid) themed with design tokens

Open
#380 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
markdown
Domain
documentation

Research direction

Start with docs/astro.config.mjs:9-14 and inspect the docs build setup in package.json and the content under docs/src/content. Choose and integrate a build-time Mermaid renderer, then add accessible text alternatives and diagrams for the listed algorithms and project overview. Done means Mermaid fences render as inline SVG without client JavaScript, remain readable in light and dark themes, and each diagram has an accessible text alternative.

Written by the indexing model from the issue text.

Description

area: docs-site priority: P3 size: S type: enhancement

Summary

Algorithms (Quine-McCluskey steps, RRT path planning, encoder pipelines, crypto protocols) are explained only in prose; there is no diagram support. Diagrams should be rendered at build time so pages stay JS-free and themeable.

Location

  • docs/astro.config.mjs:9-14

Evidence

No diagram integration in package.json; no ```mermaid fences in docs/src/content (grep -> 0).

Expected


## Proposed fix
Add `rehype-mermaid` (Playwright strategy `inline-svg`, already available in CI) or `astro-mermaid` with a theme mapped to tokens; dark/light via CSS variables or two renders. Add a `<Diagram>` wrapper with caption/alt text. Seed with: Lorenz solver pipeline, Quine-McCluskey flow, dnslib packet layout, project/stage overview.

## Acceptance criteria
- [ ] Mermaid blocks build to SVG with no client JS
- [ ] Diagrams readable in both themes
- [ ] Each diagram has an accessible text alternative

---
<sub>Repository audit, November 2026 · Phase 7 · Docs platform · evidence: found by code reading · ref `platform-027`</sub>


---
_Generated by [Claude Code](https://claude.ai/code)_
Dominant language
C++
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ibra-kdbra/Math-Problems

All issues in ibra-kdbra/Math-Problems

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.