From c067e2dc131112514c6c0a8900dad9ce6c79a4e4 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Fri, 31 May 2013 08:41:39 -0400 Subject: Add notes about how doc generation works. Change-Id: I562c743798aeae5e49bd2f96944c3cacd776a53d --- HACKING.rst | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'HACKING.rst') diff --git a/HACKING.rst b/HACKING.rst index 307d7477c..0773ce016 100644 --- a/HACKING.rst +++ b/HACKING.rst @@ -242,6 +242,27 @@ run --parallel` will run it in parallel (this is the default incantation tox uses.) More information about testr can be found at: http://wiki.openstack.org/testr +Building Docs +------------- +Normal Sphinx docs can be built via the setuptools `build_sphinx` command. To +do this via `tox`, simply run `tox -evenv -- python setup.py build_sphinx`, +which will cause a virtualenv with all of the needed dependencies to be +created and then inside of the virtualenv, the docs will be created and +put into doc/build/html. + +If you'd like a PDF of the documentation, you'll need LaTeX installed, and +additionally some fonts. On Ubuntu systems, you can get what you need with:: + + apt-get install texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended + +Then run `build_sphinx_latex`, change to the build dir and run `make`. +Like so:: + + tox -evenv -- python setup.py build_sphinx_latex + cd build/sphinx/latex + make + +You should wind up with a PDF - Nova.pdf. openstack-common ---------------- -- cgit