Building documentation section: now with a non-stupid way of doing it! And other minor fixes.

develop
TheBloke 2015-12-15 04:10:00 +00:00
parent 21631b3712
commit 5aae535394
1 changed files with 3 additions and 8 deletions

@ -441,15 +441,10 @@ Enabling documentation building
First, make sure you have followed all the necessary steps for your platform as outlined
in the rest of this document.
#. Edit ``CMakeLists.txt`` in the root folder of your dfhack directory.
#. Find the line::
Then, to compile documentation with DFHack, pass the flag ``-DBUILD_DOCS:bool=ON`` to cmake.
For example::
OPTION(BUILD_DOCS "Choose whether to build the documentation (requires python and Sphinx)." OFF)
#. Change ``OFF`` to ``ON`` and save.
#. Now compile as normal, and the .rst documents will be compiled to HTML in
``/docs/html/docs/`` under your dfhack directory.
#. If you are committing to DFHack, be sure not to add your changed ``CMakeLists.txt`` to any commit.
cmake .. -DCMAKE_BUILD_TYPE:string=Release -DBUILD_DOCS:bool=ON -DCMAKE_INSTALL_PREFIX=<path to DF>
Required dependencies