mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
- Migrate pytorch docs, cpp docs and functorch docs to the pytorch_sphinx_theme2 - Migrate index.rst to markdown and restructure to use high-level horizontal bar sections Python API, Developer Notes - Added python-api.md which becomes the main container for the API docs. This file will be used to add all api references in the toctree. It would be great to have lint for this file: https://github.com/pytorch/pytorch/issues/150718 - Enabled mermaid sphinx extension and opengraph sphinx extension Pull Request resolved: https://github.com/pytorch/pytorch/pull/149331 Approved by: https://github.com/malfet, https://github.com/atalman, https://github.com/albanD |
||
|---|---|---|
| .. | ||
| source | ||
| .gitignore | ||
| Makefile | ||
| README.md | ||
functorch docs build
Build Locally
Install requirements:
pip install -r requirements.txt
One may also need to install pandoc. On Linux we can use: sudo apt-get install pandoc. Or using conda we can use: conda install -c conda-forge pandoc.
To run the docs build:
make html
Check out the output files in build/html.
Deploy
The functorch docs website does not updated automatically. We need to periodically regenerate it.
You need write permissions to functorch to do this. We use GitHub Pages to serve docs.
- Build the docs
- Save the build/html folder somewhere
- Checkout the branch
gh-pages. - Delete the contents of the branch and replace it with the build/html folder.
index.htmlshould be at the root. - Commit the changes and push the changes to the
gh-pagesbranch.