developer-mayuan
12/22/2017 - 7:05 PM

Doc2Dash

Generate Dash/Zeal docs from sphinx docs.

conda create -n doc2dash
source activate doc2dash
pip install doc2dash
pip install sphinx_rtd_theme
# in directory $PYTORCH/docs, run
make html
# $PYTORCH/docs/build/html即为生成的HTML目录
doc2dash -n pytorch $PYTORCH/docs/build/html

sudo add-apt-repository ppa:zeal-developers/ppa
sudo apt-get update
sudo apt-get install zeal

mv pytorch $HOME/.local/share/Zeal/Zeal/docsets

conda install -c conda-forge mercurial
hg clone https://bitbucket.org/birkenfeld/sphinx-contrib/
pip setup.py install
# in directory $TORCHVISION/docs, run
make html
# $PYTORCH/docs/build/html即为生成的HTML目录
doc2dash -n torchvision $PYTORCH/docs/build/html

mv torchvision $HOME/.local/share/Zeal/Zeal/docsets