-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: distinguish data fields in the
yaml
files from the webpag…
…e template (#563) Currently, `{Hundred,ThousandPlus}Theorem` mix data for two different purposes: - the `decl{s}` fields contain the parsed declarations from the yaml file - the `doc_decls` fields contains the source code for the corresponding generated documentation Make this distinction clearer by introducing a new class for theorems on the webpage: this allows omitting the `decls` field, and contains `doc_decls` instead. This will allow for stronger validation of the `yaml` files in mathlib. It also provides a shared abstraction between `100.yaml` and `1000.yaml`. While at it, we also - add documentation for the meaning of the various fields in `{Hundred,ThousandPlus}Theorem` - allow the `comment` field in `1000.yaml` (this is a pre-existing bug, which leanprover-community/mathlib4#20493 found) --------- Co-authored-by: Bryan Gin-ge Chen <[email protected]>
- Loading branch information
1 parent
4d7f528
commit 97fa06d
Showing
5 changed files
with
91 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters