diff options
author | Eric Debeau <eric.debeau@orange.com> | 2019-07-12 12:09:44 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-07-12 12:09:44 +0000 |
commit | c3d9d518ca8a1d628fa5b252e648e571c9900cb2 (patch) | |
tree | 8612537ccb7bc337029231ae5808ac86f5617ba5 | |
parent | f575e7f8aeb7795d5ae3fa9be1114d196c68b4fe (diff) | |
parent | 1a3294ffb555bac64b2af0a2bc7cb4e47544f7b6 (diff) |
Merge "Add information on virtualenv usage"
-rw-r--r-- | docs/guides/onap-developer/how-to-use-docs/include-documentation.rst | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/docs/guides/onap-developer/how-to-use-docs/include-documentation.rst b/docs/guides/onap-developer/how-to-use-docs/include-documentation.rst index 6909cceb1..d61cb9cff 100644 --- a/docs/guides/onap-developer/how-to-use-docs/include-documentation.rst +++ b/docs/guides/onap-developer/how-to-use-docs/include-documentation.rst @@ -427,17 +427,27 @@ One Project ----------- To test how the documentation renders in HTML, follow these steps: -Install virtual environment. +Install `virtual environment <https://pypi.org/project/virtualenv>`_ & create one. .. code-block:: bash sudo pip install virtualenv + virtualenv onap_docs + +Activate `onap_docs` virtual environment. + +.. code-block:: bash + + source onap_docs/bin/activate + +.. note:: Virtual environment activation has to be performed before attempting to build documentation. + Otherwise, tools necessary for the process might not be available. Download a project repository. .. code-block:: bash - git clone http://gerrit.onap.org/r/<project> + git clone http://gerrit.onap.org/r/<project> Download the doc repository. @@ -450,7 +460,7 @@ Change directory to doc & install requirements. .. code-block:: bash cd doc - sudo pip install -r etc/requirements.txt + pip install -r etc/requirements.txt Copy the conf.py file to your project folder where RST files have been kept: @@ -476,7 +486,7 @@ specified output folder directory. You can use your Web Browser to open and check resulting html pages in the output folder. -.. note:: Be sure to remove the `conf.py`, the static/ files and the output folder from the `<project>/docs/`.This is for testing only. Only commit the rst files and related content. +.. note:: Be sure to remove the `conf.py`, the static/ files and the output folder from the `<project>/docs/`. This is for testing only. Only commit the rst files and related content. .. _building-all-documentation: |