In order to build the RABET-V Documentation, the following components must be installed:
- Python 3+
- Pipenv
- pandoc version 1.16 or greater
- Imagemagick
- Inkscape
Both Imagemagick and Inkscape convert svg files to pngs, which is necessary to convert the html document to Word. Imagemagick is currently configured for use with Sphinx for converting svgs while Inkscape works with pandoc. Imagemagick must be installed independently using the instructions for the given operating system. Once Imagemagick is installed, either add Imagemagick to the system path or uncomment and edit the image_converter line in conf.py
:
# Windows Imagemagick configuration
if sys.platform.startswith('win32'):
image_converter = 'C:\path\to\ImageMagick\magick.exe'
First, install the required libraries, change directory to docs
, and then build the html files:
pipenv install
pipenv shell
cd docs
sphinx-build -b html . build
To view the html files, run a simple http server with python inside the build directory:
cd build
python -m http.server
To build the documentation into a single file in Word .docx
format, execute the following commands:
pipenv shell
sphinx-build -b singlehtml . build
cd build
/path/to/pandoc --filter=../../svg_filter.py -o rabet-v.docx --reference-doc ../../../resources/RABET-V\ Program\ Description\ 0.1\ Committee\ Review.docx index.html