Skip to content

Share README prose into docs; add Examples/Performance pages - #22

Merged
mcdigman merged 3 commits into
devfrom
docs/readme-include-structure
Jul 10, 2026
Merged

Share README prose into docs; add Examples/Performance pages#22
mcdigman merged 3 commits into
devfrom
docs/readme-include-structure

Conversation

@mcdigman

Copy link
Copy Markdown
Owner

Summary

Reworks the Sphinx docs so pages pull their prose directly from README.md instead of duplicating it, establishing a single source of truth. The old index.md had hand-copied intro/install/quick-start text that could drift from the README.

HTML-comment markers (<!-- doc:intro:start -->, doc:install, doc:quickstart, doc:corners, doc:grid, doc:regen, doc:perf, doc:footnotes) fence the shared slices in the README (invisible on GitHub), and MyST {include} pulls them in via start-after/end-before.

Structure

  • index.md — landing page includes the intro, installation, and quick-start slices, plus a lightweight static figure (akima_step, ~40 KB) and a link to Examples. Stays light and fast.
  • examples.md (new) — hosts the demo + grid animations with their shared explanations and footnote references, keeping the ~1.8 MB of GIFs off the landing page.
  • performance.md (new) — includes the performance-snapshot slice.

Assets & theming

  • conf.py serves the repo-root assets/ via html_static_path (contents land in _static/), so pages reference _static/akima_*.{gif,png} without moving or duplicating the folder — which matters because pyakima.demos and the GitHub README both write/read assets/ at the repo root.
  • docs/_static/custom.css drives light/dark image switching. The README's <picture> keys off the OS prefers-color-scheme; these docs images instead follow Furo's own theme toggle (body[data-theme]) so the toggle and image stay in sync. That's why the docs use per-page <img class="only-light/only-dark"> rather than the shared README markup.

Notes / follow-ups

  • The landing-page figure currently reuses the existing akima_step_*.png. A purpose-rendered single-frame still can be dropped in later without structural changes.
  • Footnote definitions are included alongside the citing prose on the Examples page, since MyST resolves footnotes per-document.

Verification

Builds clean under the strict -W --keep-going flag used by the docs CI workflow; all image srcs resolve to real files in _static/, footnotes resolve, and included prose renders on every page.

🤖 Generated with Claude Code

mcdigman and others added 3 commits July 9, 2026 23:58
Rework the Sphinx docs so the landing page and new pages pull their prose
directly from README.md instead of duplicating it, keeping a single source
of truth. Fenced HTML-comment markers (doc:intro, doc:install, etc.) delimit
the shared slices, which MyST {include} pulls in via start-after/end-before.

- index.md: landing page includes the intro, installation, and quick-start
  slices, plus a lightweight static figure (akima_step) and a link to the
  new Examples page.
- examples.md (new): hosts the demo and grid animations with their shared
  explanations and footnote references, keeping the heavier GIFs off the
  landing page.
- performance.md (new): includes the performance-snapshot slice.
- conf.py: serve the repo-root assets/ via html_static_path so pages can
  reference _static/akima_*.{gif,png} without moving or duplicating the
  folder; add custom.css for light/dark image switching that follows Furo's
  theme toggle (body[data-theme]) rather than the README's OS-based <picture>.

Builds clean under the strict -W CI flag.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Replace the broken shields.io PyPI placeholder with a placeholder Zenodo DOI
badge (to be wired up on release), and break the badge row after the license
badge so the CI badges wrap to a second line.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Zenodo's badge URLs key off the numeric repository ID (972418978), not
owner/repo. The badge resolves once the Zenodo GitHub integration is enabled
and a release mints a DOI.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@mcdigman
mcdigman merged commit 7ea1961 into dev Jul 10, 2026
14 checks passed
@mcdigman
mcdigman deleted the docs/readme-include-structure branch July 10, 2026 05:27
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