blob: d9a70912edb1fc8332ea33d45f0187a23ac48738 [file] [log] [blame]
John DeNisco2d1a0432018-07-26 16:21:31 -04001
2Building VPP Documents
3
4These instructions show how the VPP documentation sources are built.
5
6To build your files, you can either Create a Virtual Environment using
7virtualenv, which installs all the required applications for you.
8
9Create a Virtual Environment using virtualenv
10============================
11
12For more information on how to use the Python virtual environment check
13out https://packaging.python.org/guides/installing-using-pip-and-virtualenv
14
15Get the Documents
16------------------------------
17
18For example start with a clone of the vpp.
19
20$ git clone https://gerrit.fd.io/r/vpp
21$ cd vpp
22
23Install the virtual environment
24----------------------------------------------
25
26$ python -m pip install --user virtualenv
27$ python -m virtualenv env
28$ source env/bin/activate
29$ pip install -r docs/etc/requirements.txt
30$ cd docs
31
32Which installs all the required applications into it's own, isolated,
33virtual environment, so as to not interfere with other builds that may
34use different versions of software.
35
36Build the html files
37----------------------------
38
39Be sure you are in your vpp/docs directory, since that is where Sphinx will
40look for your conf.py file, and build the documents into an index.html file
41
42$ make html
43
44View the results
45------------------------
46
47If there are no errors during the build process, you should now have an
48index.html file in your vpp/docs/_build/html directory, which you can
49then view in your browser.