Skip to content

Conversation

@jessealama
Copy link
Contributor

Uses leanprover-community/docgen-action to build & deploy docs.

Closes #121

Adds a GitHub Actions workflow that uses leanprover-community/docgen-action
to build and deploy documentation.

Closes leanprover#121
@jessealama jessealama requested a review from kim-em as a code owner October 26, 2025 10:45
@chenson2018 chenson2018 requested a review from fmontesi October 26, 2025 11:38
@chenson2018
Copy link
Collaborator

Adding @fmontesi as reviewer since he setup these docs.

@chenson2018
Copy link
Collaborator

I'm intentionally not approving the workflow to run yet so that this doesn't accidentally builds docs here, as this currently does so for PRs.

- Remove pull_request trigger to prevent running on PRs
- Remove cron schedule (superseded by push to main)
- Remove duplicate toolchain verification (handled by docgen-action)
@fmontesi
Copy link
Collaborator

Where does this publish the docs, exactly?

@chenson2018
Copy link
Collaborator

I think it targets the repo's GitHub pages by default, so something like leanprover.github.io/cslib

@fmontesi
Copy link
Collaborator

@leodemoura @kim-em (CC @swaratchaudhuri @barrettcw): Could we somehow set this up to write to https://lean-lang.org/cslib/doc/api (in the spirit of https://lean-lang.org/doc/api)?

@jessealama
Copy link
Contributor Author

I think it targets the repo's GitHub pages by default, so something like leanprover.github.io/cslib

Right, the idea was to take inspiration from Mathlib and publish the documentation to https://leanprover.github.io/cslib/docs using GitHub Pages, so we'd need to set that up. A somewhat more complex alternative would be to set up a separate docs repo like mathlib4_docs.

@fmontesi
Copy link
Collaborator

We do have that for now, that's where the doc is currently produced. Check out the code at https://github.com/cs-lean/cs-lean.github.io. It outputs to https://cs-lean.github.io/

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.

Use docgen-action

3 participants