Last active
October 28, 2017 06:40
-
-
Save weshouman/7f7e5db4239969f32b5e to your computer and use it in GitHub Desktop.
local versions of sphinx wikis #python #blender
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install sphinx | |
sudo apt-get install python-setuptools | |
# add a sudo if the following didn't work | |
easy_install -U sphinx | |
# use sphinx to export the HTMLs (we need blender source for that) | |
mkdir ./doc/python_api/sphinx-out | |
sphinx-build ./doc/python_api/sphinx-in ./doc/python_api/sphinx-out | |
# use sphinx to export the LATEXs, this one didn't output a working pdf for me! | |
sphinx-build -n -b latex ./doc/python_api/sphinx-in ./doc/python_api/sphinx-out2 | |
# use sphinx to export the PDFs, this one halted and didn't continue! | |
sudo apt-get install rst2pdf | |
# register rst2pdf in the ./doc/python_api/sphinx-in/conf.py Sphinx config | |
extensions = ['sphinx.ext.autodoc','rst2pdf.pdfbuilder'] | |
sphinx-build -bpdf latex ./doc/python_api/sphinx-in ./doc/python_api/sphinx-out2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment