Documentation Tracker
The graph below shows the documentation status of Physlib files. Red nodes need documentation; green nodes are documented. Click nodes to navigate to their GitHub entry.
Graph controls: drag to pan, scroll / pinch to zoom.
Loading graph…
Steps to Help with Documentation
This whole process can be done without downloading Lean, but having it installed provides helpful tools.
Phase 1: Get the Code
- Fork the physlib GitHub repository (copy the master branch only).
- Clone your forked repository to your local machine. (Optional — you can also edit directly on GitHub.)
Phase 2: Choose a File to Document
- Use the graph above to identify an undocumented file (a red node) where you think you could help.
- In your local copy of physlib, open the file
./scripts/MetaPrograms/module_doc_no_lint.txt. - Remove the line corresponding to the file you want to document.
- Navigate to the file you want to document.
Phase 3: Write the Documentation
- Add a title heading at the top of the file, starting with
#. - Add a
## i. Overviewsection explaining the physical content. - Add a
## ii. Key resultssection listing key definitions, theorems, and lemmas. - Add a
## iii. Table of contentssection (can be left blank). - Add a
## iv. Referencessection for relevant literature. - Organize the rest of the file with section and subsection headings.
- Alternatively, if you have Lean installed, run
lake exe module_doc_lint.
Phase 4: Submit Your Changes
- Commit your changes to your forked repository.
- Create a pull request to the main physlib repository for review.