Refactor math chapter templates and enhance navigation: update CONTRIBUTING.md for clarity on content structure, integrate new chapter heading navigation component, and improve math chapter layout with core and supplemental content. Add styles for chapter navigation and scenario demos to enhance user experience.

This commit is contained in:
Hananoshika Yomaru 2026-05-19 15:07:01 -07:00
parent 7c09a57610
commit 742a72abe2
17 changed files with 2184 additions and 12 deletions

View file

@ -110,7 +110,7 @@ Prerequisites: **only** `graph.edges` (required, global DAG, cross-strand OK). L
Live math example:
1. `content/math/quadratic-equations/_index.md` — front matter, `template = "math/chapter.html"`, `[extra] chapter_id`
2. `templates/partials/math/quadratic-equations-content.html` — prose + KaTeX
2. `templates/partials/math/quadratic-equations-core-content.html` — prose + KaTeX (supplement partial for history, derivation, etc.)
3. `templates/math/chapter.html` — `{% if section.extra.chapter_id == "…" %}` includes partial
4. Optional: `frontend/src/components/quadratic-explorer.tsx` + mount in `main.tsx`