Skip to content

doc: publish doc-gen4 API documentation to GitHub Pages#4

Merged
kim-em merged 1 commit into
mainfrom
docs-gen4
Jul 3, 2026
Merged

doc: publish doc-gen4 API documentation to GitHub Pages#4
kim-em merged 1 commit into
mainfrom
docs-gen4

Conversation

@kim-em

@kim-em kim-em commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

This PR adds a docs workflow that renders doc-gen4 API documentation for the whole released hex cone (the HexAll umbrella plus all transitively-required split libraries and Mathlib) and deploys it to GitHub Pages at https://leanprover.github.io/hex/docs, linked from the README.

The workflow uses leanprover-community/docgen-action (pinned to a commit), which wraps the standard docbuild/ sub-project pattern, the doc-HTML cache keyed on lake-manifest.json, and the native Pages deploy. It preserves this repo's existing Mathlib-rebuild guard (lake exe cache get then a guarded lake build) before handing off to the action, runs on push to main only, and pins every third-party action. A static docs/index.html redirect keeps the site root from 404ing; the generated docs/docs/ tree is gitignored.

doc-gen4 has no "my library only" mode, so the first run renders the entire Mathlib doc cone (slow); subsequent runs restore that HTML from cache and re-render only the hex pages. GitHub Pages ("GitHub Actions" source) is already enabled on the repo.

🤖 Prepared with Claude Code

Add a `docs` workflow that renders doc-gen4 API documentation for the
whole released hex cone (the HexAll umbrella plus Mathlib) via
leanprover-community/docgen-action and deploys it to GitHub Pages at
https://leanprover.github.io/hex/docs, linked from the README.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@kim-em kim-em merged commit e851d12 into main Jul 3, 2026
1 check passed
@kim-em kim-em deleted the docs-gen4 branch July 3, 2026 11:32
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