mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Switch to official releases of katex and update doc for installing katex. (#27758)
Summary: katex is a deprecated package in Ubuntu and has been removed in recent releases of Debian. Use npm instead. Pull Request resolved: https://github.com/pytorch/pytorch/pull/27758 Differential Revision: D17891039 Pulled By: ezyang fbshipit-source-id: 53de6e14b2638298e5b61996dcd7ba8de02420a3
This commit is contained in:
parent
fab48eb200
commit
2a23654880
|
|
@ -216,10 +216,10 @@ To build the documentation:
|
||||||
cd docs
|
cd docs
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
# `katex` must also be available in your PATH.
|
# `katex` must also be available in your PATH.
|
||||||
# If you are using Ubuntu or Debian, you can install it with:
|
# You can either install katex globally if you have properly configured npm:
|
||||||
# sudo apt install katex
|
|
||||||
# If you are using MacOS, you can install it through npm (install Node.js first):
|
|
||||||
# npm install -g katex
|
# npm install -g katex
|
||||||
|
# Or if you prefer an uncontaminated global executable environment or do not want to go through the node configuration:
|
||||||
|
# npm install katex && export PATH="$PATH:$(pwd)/node_modules/.bin"
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Generate the documentation HTML files. The generated files will be in `docs/build/html`.
|
3. Generate the documentation HTML files. The generated files will be in `docs/build/html`.
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
sphinx
|
sphinx
|
||||||
-e git+https://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme
|
-e git+https://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme
|
||||||
-e git+https://github.com/hagenw/sphinxcontrib-katex.git#egg=sphinxcontrib.katex
|
sphinxcontrib.katex
|
||||||
matplotlib
|
matplotlib
|
||||||
javasphinx
|
javasphinx
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user