3 **************************
5 **************************
7 These instructions show how the VPP documentation sources are built.
9 The VPP Documents are written using `reStructuredText <http://www.sphinx-doc.org/en/master/usage/restructuredtext/index.html>`_ (rst),
10 or markdown (md). These files are then built using the Sphinx build system `Sphinx <http://www.sphinx-doc.org/en/master/>`_.
15 Start with a clone of the vpp repository.
17 .. code-block:: console
19 $ git clone https://gerrit.fd.io/r/vpp
23 Create a Virtual Environment using virtualenv
24 ===============================================
26 For more information on how to use the Python virtual environment check out
27 `Installing packages using pip and virtualenv`_.
29 .. _`Installing packages using pip and virtualenv`: https://packaging.python.org/guides/installing-using-pip-and-virtualenv/
31 In the vpp root directory on your system, run:
33 .. code-block:: console
35 $ python -m pip install --user virtualenv
36 $ python -m virtualenv env
37 $ source env/bin/activate
38 $ pip install -r docs/etc/requirements.txt
41 Which installs all the required applications into it's own, isolated, virtual environment, so as to not
42 interfere with other builds that may use different versions of software.
45 ======================
47 Be sure you are in your vpp-docs/docs directory, since that is where Sphinx will look for your **conf.py**
48 file, and build the **.rst** files into an **index.html** file:
50 .. code-block:: console
57 | If there are no errors during the build process, you should now have an **index.html** file in your
58 | **vpp/docs/_build/html** directory, which you can then view in your browser.
60 .. figure:: /_images/htmlBuild.png
61 :alt: Figure: My directory containing the index.html file
65 Whenever you make changes to your **.rst** files that you want to see, repeat this build process.
69 To exit from the virtual environment execute:
71 .. code-block:: console
75 Getting your documents reviewed and merged
76 ==========================================
78 VPP documents are reviewed and merged like and other source code. Refer to :ref:`gitreview`
79 to get your changes reviewed and merged.