Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a github action to run doc-gen #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

eric-wieser
Copy link
Contributor

@eric-wieser eric-wieser commented Dec 23, 2021

Note that we also have to bump the lean/mathlib version, as doc-gen requires a recent version.
I haven't checked whether this breaks anything.

Note that this produces a handful of errors, as you have files that define the same name in the global namespace, which makes it impossible to import these at the same time. Wrapping each file in namespace «2021» ... end «2019» etc would probably fix this.

If you don't do that, it just means that half these definitions will be missing from the docs.

Note that we also have to bump the lean/mathlib version, as doc-gen requires a recent version.
I haven't checked whether this breaks anything.
cd doc-gen
lean -v
# the json and diagnostics are emitted on stdout, but the json is always the last (very long) line.
lean src/entrypoint.lean > export.json || true

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
lean src/entrypoint.lean > export.json || true
lean --run src/entrypoint.lean > export.json || true

per leanprover-community/doc-gen@bff41dc

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cd doc-gen
lean -v
# the json and diagnostics are emitted on stdout, but the json is always the last (very long) line.
lean src/entrypoint.lean > export.json || true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.github/workflows/lean_doc.yml Outdated Show resolved Hide resolved
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.

2 participants