Skip to content

Instantly share code, notes, and snippets.

@weshouman
Last active October 28, 2017 06:40
Show Gist options
  • Save weshouman/7f7e5db4239969f32b5e to your computer and use it in GitHub Desktop.
Save weshouman/7f7e5db4239969f32b5e to your computer and use it in GitHub Desktop.
local versions of sphinx wikis #python #blender
# 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