Skip to content

Website: mkdocs from the .md files, built to gh-pages on every push to main - #9

Merged
davidquarel merged 1 commit into
ci-and-colabfrom
site
Sep 17, 2026
Merged

davidquarel merged 1 commit into
ci-and-colabfrom
site

Conversation

@davidquarel

Copy link
Copy Markdown
Collaborator

What

A minimal documentation site at https://arena-education.github.io/liveplot/, built from markdown only:

  • Home is the README, copied at build time (image paths and repo links rewritten), so there is one source of truth.
  • API (docs/api.md): one table per group: constructor arguments, logging, the matplotlib-named setters on axes / panels / the plot, what you get afterwards, interrupts.
  • Examples (docs/examples.md): the Colab badge for the tour notebook, the demo GIF, and how to record your own.

mkdocs.yml is ten lines with the default theme. site.yml builds with --strict on pull requests (a broken link fails the check) and, on pushes to main, force-pushes the built site to the orphan gh-pages branch, the same pattern as the demo notebook branch. Nothing generated lives on main, and pip install git+... never downloads either orphan branch (pip clones with --filter=blob:none).

Verified

Built locally with the workflow's exact steps: three pages, strict mode clean, the demo GIF resolves from both the front page and the examples page.

After merging

One-time: Settings → Pages → "Deploy from a branch" → gh-pages / root. GitHub usually enables this automatically when the branch appears. The site is live a minute after the first workflow run on main.

Stacked on #8 (uses its Colab badge and demo branch). The API page documents the setters from #7, so merge #7 before or with this.

🤖 Generated with Claude Code

https://claude.ai/code/session_01G9zs684RFxHvW6cNWqTPSF

…o main

Three pages, default mkdocs theme: the README as the front page (copied
at build time, image and repo links rewritten), docs/api.md (one table
per group of the API) and docs/examples.md (the Colab notebook, the demo
GIF, how to record your own). .github/workflows/site.yml builds with
--strict on pull requests and force-pushes the built site to the orphan
gh-pages branch on pushes to main, the same pattern as the demo
notebook. The README links to the site.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G9zs684RFxHvW6cNWqTPSF
@davidquarel
davidquarel merged commit ae74a9a into ci-and-colab Sep 17, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
github-pages — 79402e27 Deployed Sep 17, 2026 by davidquarel via deploy #1
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