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:
Hong Xu 2019-10-11 17:18:29 -07:00 committed by Facebook Github Bot
parent fab48eb200
commit 2a23654880
2 changed files with 4 additions and 4 deletions

View File

@ -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`.

View File

@ -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