pytorch/functorch/docs
lezcano 8a5a377190 Move doc links to point to main (#121823)
The previous links were pointing to an outdated branch

Command: `find . -type f -exec sed -i "s:docs/main:docs/master:g" {} + `

Pull Request resolved: https://github.com/pytorch/pytorch/pull/121823
Approved by: https://github.com/albanD, https://github.com/malfet
2024-03-15 19:49:37 +00:00
..
source Move doc links to point to main (#121823) 2024-03-15 19:49:37 +00:00
.gitignore
Makefile
README.md
requirements.txt Pin functorch docs requirements (#100257) 2023-04-28 17:58:58 +00:00

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.

  1. Build the docs
  2. Save the build/html folder somewhere
  3. Checkout the branch gh-pages.
  4. Delete the contents of the branch and replace it with the build/html folder. index.html should be at the root.
  5. Commit the changes and push the changes to the gh-pages branch.