Skip to content

docs(mermaid,highlighting): Responsive diagrams, shared lexer#96

Merged
tony merged 2 commits into
masterfrom
mermaid-improvements
Jul 5, 2026
Merged

docs(mermaid,highlighting): Responsive diagrams, shared lexer#96
tony merged 2 commits into
masterfrom
mermaid-improvements

Conversation

@tony

@tony tony commented Jul 5, 2026

Copy link
Copy Markdown
Owner

DO NOT MERGE

This branch temporarily publishes preview documentation from mermaid-improvements so responsive Mermaid rendering can be validated on the hosted docs site.

This depends on git-pull/gp-sphinx#64. Before merging a final agentgrep docs change, drop the temporary workflow commit and replace the git dependency with the released sphinx-gp-mermaid version.

Summary

  • Split the wide event-stream architecture diagram into producer and consumer diagrams.
  • Add :alt:, stable :name:, and explicit :responsive: fit options to the event-stream Mermaid blocks.
  • Point sphinx-gp-mermaid at the gp-sphinx mermaid-improvements branch for preview builds.
  • Temporarily allow the docs publisher to run on this branch and invalidate the preview site broadly so changed pages refresh.

Verification

  • rm -rf docs/_build; uv run ruff check . --fix --show-fixes; uv run ruff format .; uv run ty check; uv run py.test --reruns 0 -vvv; just build-docs;
  • Branch docs workflow 28744970352 completed successfully: built docs, synced S3, invalidated CloudFront, and purged Cloudflare.
  • Live smoke check: https://agentgrep.org/library/event-stream/ reports the expected responsive Mermaid markers and stable figure IDs.

why: The event-stream architecture chart was too wide for narrow docs
layouts, and the docs branch needs the responsive Mermaid directive from
the gp-sphinx improvement branch.

what:
- Split the architecture chart into producer and consumer diagrams
- Add alt text, stable names, and explicit responsive policy to diagrams
why: The mermaid-improvements branch should exercise the shared
gp-sphinx highlighting package against real agentgrep documentation
before it is released.

what:
- Enable safe inline agentgrep command and path highlighting
- Render the accelerator module layout with the tree lexer
@tony tony force-pushed the mermaid-improvements branch from 46cad1c to 692ece8 Compare July 5, 2026 22:32
@tony tony changed the title [DO NOT MERGE] docs(mermaid): Improve responsive diagrams docs(mermaid,highlighting): Responsive diagrams, shared lexer Jul 5, 2026
@tony tony merged commit 37ba1b3 into master Jul 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant