Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leanprover-community/leanprover-community.github.io
Hosts the website for mathlib and other Lean community infrastructure.
https://github.com/leanprover-community/leanprover-community.github.io
Last synced: 2 days ago
JSON representation
Hosts the website for mathlib and other Lean community infrastructure.
- Host: GitHub
- URL: https://github.com/leanprover-community/leanprover-community.github.io
- Owner: leanprover-community
- License: mit
- Created: 2019-01-20T17:06:26.000Z (almost 6 years ago)
- Default Branch: lean4
- Last Pushed: 2024-10-30T04:08:11.000Z (3 months ago)
- Last Synced: 2024-10-30T07:16:15.520Z (3 months ago)
- Language: CSS
- Homepage: https://leanprover-community.github.io/
- Size: 91.9 MB
- Stars: 53
- Watchers: 12
- Forks: 123
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- best-of-lean4 - GitHub - 57% open · ⏱️ 19.12.2024): (Cheatsheets)
README
# Lean prover community website
The deployed website lives on the `master` branch of this repository.
To make changes to the website, please fork the repository and make a PR against the
[`lean4`](https://github.com/leanprover-community/leanprover-community.github.io/tree/lean4)
branch.
Once your PR is merged, CI will automatically deploy the changes to the `master` branch.## Dependencies
* `pip install -r requirements.txt`
Building the bibliography requires [`bibtool`](https://github.com/ge-ne/bibtool).
In order to rebuild the CSS from SCSS, you also need:
* [sass](https://sass-lang.com/)
* [bootstrap](https://github.com/twbs/bootstrap/archive/v4.4.1.zip)
should be unpacked at the project rootThe website relies on several components which are built in other repositories:
- [`mathlib_stats`](https://github.com/leanprover-community/mathlib_stats)
- [`lean4web`](https://github.com/leanprover-community/lean4web)
- [`mathlib4_docs`](https://github.com/leanprover-community/mathlib4_docs) (built by CI in [doc-gen4](https://github.com/leanprover/doc-gen4/))## Building
* Build CSS if needed: `sass scss/lean.scss > css/lean.css`
* Build site using `make_site.py`. Use option `--local` for local
viewing (internal url will be prefixed by local file path).
Use option `--reload` to continuously build when templates are
changed (this won't work for watching changes in `data/`).If you want to retrieve the list of Zulip users to get the users map, the
environment variable `ZULIP_KEY` should be set with the Zulip API key of the
map scraper bot.If you want to work on a new feature, there are several helpful tricks to know.
First you will very quickly hit the GitHub API rate limit without
authentication. You can
[create a personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic)
and run `GITHUB_TOKEN=my_token_copied_from_github ./make_site --local` during
your experiments.You can also run the script once normally and then run
`NODOWNLOAD=1 ./make_site --local` to build the website using the information
previously downloaded. This information is stored into the `data_cache` folder.
If you need the script to download something but not everything you can
temporarily change the relevant `if DOWNLOAD:` into a `if not DOWNLOAD:`.You can also choose to render only certain templates using
`./make_site --local --only my_template.html`.
This argument can actually be a regular expression, but giving one template
name is the most common use case.## TODO
* Better integration with API docs
* Use webpack or similar to bundle all the javascript?## Lean 3 website
The files and history for the leanprover-community Lean 3 website can be found in the
[`lean3`](https://github.com/leanprover-community/leanprover-community.github.io/tree/lean3) branch of this repo.## Old website
The files and history for the old leanprover-community website can be found in the
[`oldsite`](https://github.com/leanprover-community/leanprover-community.github.io/tree/oldsite) branch of this repo.