Skip to content

Simplify the documentation site - #1140

Merged
GiggleLiu merged 3 commits into
mainfrom
feat/simplify-docs-site
Sep 7, 2026
Merged

Simplify the documentation site#1140
GiggleLiu merged 3 commits into
mainfrom
feat/simplify-docs-site

Conversation

@GiggleLiu

Copy link
Copy Markdown
Contributor

Summary

  • Collapse the mdBook guide from 38 pages to 8 pages plus a placeholder: Overview, CLI (Quick start, Command reference, Reduction graph), Agents (Skills), Rust library (Getting started, API reference, Design), Research (Open problems: "To be released"). Repeated --help, rustdoc, and CLAUDE.md content and the per-page "Before you start / Next" chains are gone. The Skills page lists every skill under .claude/skills/ in one table.
  • Drop MCP from the documentation (pages, landing link, tests). The --features mcp code is untouched.
  • Re-record the CLI demo with a new scripts/record_cli_demo.py that runs the real CLI in a PTY. Command blocks are now separated by a blank line and the final command is a plain pred solve cycle.json using the default ILP solver; brute force no longer appears.
  • Strip decorative copy from the landing page (hero slogan, kicker, section taglines, footer slogan) in favour of plain headings; layout and palette unchanged.
  • Overview page states catalog counts from a new catalog-counts.md snippet generated by pred list --json, and carries the paper's BibTeX entry.
  • Remove the legacy anchor redirect table from docs-theme.js; the old page names (cli.html, skills.html, design.html) are back, so README links resolve directly.

Bug fix

Re-recording exposed a real bug: pred solve on a default-variant instance printed four thread 'main' panicked messages before succeeding. ReductionGraph::compute_source_size called every entry registered under the problem name and relied on catch_unwind to swallow the unwrap panics from entries whose source variant did not match; the default panic hook still printed them. It now filters by variant as well and no longer catches panics. Covered by test_compute_source_size_only_consults_matching_variant.

Verification

  • make website, then typst compile and cargo doc into book/
  • scripts/test_documentation.py (artifacts + browser) and scripts/test_website.py: all pass
  • cargo test --lib: 5277 passed; cargo clippy --all-targets --features ilp-highs: clean

🤖 Generated with Claude Code

https://claude.ai/code/session_01Heb7aLYWxgQE4v6TPNAQE4

GiggleLiu and others added 2 commits September 7, 2026 08:58
compute_source_size called every registered entry for a problem name and
relied on catch_unwind to swallow the unwrap panics from entries whose
source variant did not match the instance. The default panic hook still
printed those panics to stderr, so `pred solve` on a default-variant
instance emitted spurious 'thread main panicked' lines before succeeding.

Filter entries by source variant as well as name and drop the catch_unwind.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Heb7aLYWxgQE4v6TPNAQE4
Collapse the 38-page guide into 8 pages plus a placeholder: overview,
CLI quick start and command reference, reduction graph, skills, Rust
getting started, API, design, and open problems. Remove repeated
--help, rustdoc, and CLAUDE.md content and the per-page link chains.
Drop MCP from the documentation.

Re-record the CLI demo with scripts/record_cli_demo.py: blank lines
between command blocks and a direct ILP solve instead of brute force.
Strip decorative copy from the landing page and remove the legacy
anchor redirects. Update the documentation and website test suites.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Heb7aLYWxgQE4v6TPNAQE4
@codecov

codecov Bot commented Sep 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.00%. Comparing base (f9abc26) to head (c21c9e3).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1140      +/-   ##
==========================================
- Coverage   98.00%   98.00%   -0.01%     
==========================================
  Files        1044     1044              
  Lines      107366   107380      +14     
==========================================
+ Hits       105228   105234       +6     
- Misses       2138     2146       +8     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Homepage: drop the decorative labels around the hero graph, the
overlay card, the "Atlas" stats label, the category tagline, and the
example pill. Set the "Problem Reductions" title and section headings in
one typeface. Rename the "Infrastructure" nav item to match its "Get
started" section. Remove the now-unused CSS.

Docs: replace the Markdown/All pages header links with GitHub and Atlas
links. Replace the interactive module map on the Design page with a
"Depends on" column in the module table and delete the module-graph
generator, assets, and unused module-overview diagram.

CLI recording: the player page embedded a stale copy of the cast without
blank lines between commands. The recording script now collapses
trailing blank lines and embeds the cast into cli-demo.html itself.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WQFSR77SahSqX36EpNCPUT
@GiggleLiu
GiggleLiu merged commit 9bcda92 into main Sep 7, 2026
@GiggleLiu
GiggleLiu deleted the feat/simplify-docs-site branch September 7, 2026 01:37
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