Repository navigation
docs: replace the mkdocs-material theme and rewrite the prose for users - #69
Merged
Merged
Conversation
added 4 commits
August 16, 2026 18:57
…aveats Every how-to now opens with what it achieves, then numbered copy-pasteable steps, with the detail moved into a collapsible Troubleshooting section (<details markdown="1">, which renders in mkdocs-material and in plain markdown alike). - how-to/agent-compaction.md: cut from an investigation log to a short user-facing page. The needle table implied the guard covers more than proxy/agentcompaction.go does; it is two substring matches against the last user message only, so the page no longer describes Bob's messages[0] signal or its other side-prompts as handled. - integrations.md: stop recommending mask for long Bob sessions. Bob sends no tools array and parses tool calls as XML from streamed text, so it can never expand a <<cg:HASH>> marker — every lossy component is permanent loss there. Recommend the lossless set instead. - Drop the ancestor-of-today's-codesmart warnings, the was-broken-in-#NN forensics, the withdrawn-claim notes and the still-unverified sections from RESULTS, results/*, cacheinject, cmdfilter, dsl, failed_run, extract_llm and dashboard, keeping the user-facing consequence of each. - improvement-plan: the -14% cross-session prefix repair was refuted; the page no longer cites it as a measured lever. Signed-off-by: Osher-Elhadad <[email protected]>
The published site used Material for MkDocs and looked nothing like the rest of
our work. This ports the design system already in production on the cap-evolve
site — dark-first CSS custom properties with a light override on
`html[data-theme]`, one hand-written stylesheet, one small vanilla-JS file, no
framework and no CSS from a CDN.
MkDocs core stays as the Markdown engine, so `docs/**/*.md` is still the only
source of prose and nav, TOC, breadcrumbs, prev/next and the search index are
still generated. What changes is the chrome: `theme/` is now a real MkDocs theme
(`base` + `main` + `home` + `404` + a recursive nav partial) instead of a pile of
overrides fighting Material's own layout, and mkdocs-material is no longer a
dependency.
Also fixes the two mermaid diagrams that rendered "Syntax error in text" on the
live site:
- dashboard.md used `API[/api/*]`, which mermaid lexes as an unterminated
parallelogram (`[/ ... /]`) rather than a label. Quoted.
- design.md used `call` as a node id, and `call` is a reserved keyword in the
flowchart grammar (`click X call fn()`), so the edge `stat --> call` parsed as
a callback binding. Renamed to `complete`.
All 20 mermaid blocks in docs/ now parse under mermaid 11, and diagrams are
themed from the same custom properties as the page and re-rendered on a theme
flip instead of shipping one hard-coded palette.
Accessibility and layout, measured rather than asserted:
- every text node on eight representative pages is at or above WCAG AA against
its actual painted background, in both themes. Fixing that turned up two real
bugs: white text on `--accent` was 3.68:1 (now a dedicated `--accent-strong`
at 5.2:1), and `.doc code` outranked `pre code`, so in the light theme every
code block painted the light inline-code chip behind its own dark surface and
the dark syntax colours landed on near-white.
- zero horizontal body overflow on all 57 pages at 360/768/1024/1440px. Wide
tables scroll inside their own container, wrapped for every page by a build
hook rather than by hand in 55 Markdown files.
Signed-off-by: Osher-Elhadad <[email protected]>
…entry
Three things a passing `mkdocs build --strict` did not catch, found by building
in a venv holding only what requirements-docs.txt asks for:
- Pygments is an *optional* dependency of pymdown-extensions and used to arrive
via mkdocs-material. Dropping Material silently turned every code block on the
site into an unhighlighted `<pre><code>`, with no warning and no build failure.
Declared explicitly, pinned alongside theme/css/pygments.css which is generated
from its `github-dark` style.
- The tabbed-block CSS carried a `input:checked + .tabbed-labels > label:first-child`
rule. The last input is always the element immediately before .tabbed-labels, so
selecting the final tab of any set also lit up the first tab's label. Every
selector now pins both the input's index and the label's.
- Nav: "Agent compaction (Claude Code & Bob)" → "When your agent compacts", to
match the page's own heading.
Signed-off-by: Osher-Elhadad <[email protected]>
OsherElhadad
merged commit Aug 17, 2026
c2accff
into
feat/hosted-tls-and-agent-compaction
6 checks passed
This was referenced Aug 17, 2026
OsherElhadad
added a commit
that referenced
this pull request
Aug 17, 2026
…servability (#79) Lands the nine reviewed PRs (#69, #78, #71-#77) on main. Caller-pays credentials: each request's own provider key is forwarded upstream and a request without one is refused, so no account spends the operator's credential. The per-tenant spend cap goes with it. Email+password accounts with a mailed second factor, 14 confirmed security findings fixed with a failing test each, the rewrite path down from 15.6ms to 6.85ms per request with byte-identical output over 1,868 real captured requests, structured logging with credential scrubbing into Loki, request metadata and a Usage view, a redesigned dashboard, user feedback, full manager control over accounts, and Bob working through the proxy for the first time. Squashed because main carries #67 the same way, and because the nine merge commits GitHub generated for the stack carry no sign-off of their own; every authored commit in them does. The per-PR history stays on feat/hosted-tls-and-agent-compaction and in #69/#78/#71-#77. Signed-off-by: Osher-Elhadad <[email protected]>
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.
Stacked on #67. First of nine.
Theme. Ports the design system from an existing hand-written Pages site (dark-first CSS custom properties, light by redefining the same names, pre-paint theme script, local Fira stack). MkDocs core stays the markdown engine;
mkdocs-materialis dropped, so the CSS it supplied is now ours.markdown_extensions:is byte-identical, so every!!!, tabbed block and raw<details>still renders.Two invalid mermaid diagrams fixed — found by running mermaid's own parser over all 20 blocks, not by upgrading anything.
API[/api/*]opened a parallelogram ([/ … /]) that never closed; a node with idcallcollided with the flowchart grammar'sclick X call fn().Prose. Every how-to is now purpose sentence → numbered steps → collapsed Troubleshooting. Screenshot placeholders, methodology caveats and self-referential archaeology are gone; user-facing consequences kept. −2274/+1357 across 31 files.
Two corrections of substance:
integrations.mdrecommendedmaskfor long Bob sessions, which Bob can never expand (notoolsarray; it parses tool calls as XML from streamed text).results/improvement-plan.mdstill cited cross-session prefix repair as a measured −14% lever; that was refuted live, so it is now recorded as refuted andcachesplitnamed instead.Verified:
mkdocs build --strictclean and byte-reproducible in a clean venv; 57 pages × 4 viewports with zero horizontal body overflow; WCAG AA measured on painted backgrounds in both themes. Four real defects surfaced by that verification, including Pygments being an undeclared dependency that arrived via Material — dropping Material would otherwise have shipped every code block unhighlighted with--strictstill passing.One tradeoff to sign off: mermaid loads from jsdelivr on the 12 pages that have a diagram (3.5 MB, too heavy to vendor). Everything else the site serves is self-hosted.