mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
This reverts commit f16053f0c9a09fa337fbf85aaf64f88712b8dcdb. Reverted https://github.com/pytorch/pytorch/pull/152098 on behalf of https://github.com/malfet due to IMO this PR needs to be split into few helper ones, with better test plan ([comment](https://github.com/pytorch/pytorch/pull/152098#issuecomment-3024223880))
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.