improve doc dependency install steps (#80120)

pull/80122/head
Don Naro 1 year ago committed by GitHub
parent 980ec16422
commit 352010f9c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -93,19 +93,26 @@ To work with documentation on your local machine, you need to have python-3.9 or
.. _Ansible dependencies: https://github.com/ansible/ansible/blob/devel/requirements.txt
.. _documentation dependencies: https://github.com/ansible/ansible/blob/devel/docs/docsite/requirements.txt
.. code-block:: bash
Drop the ``--user`` option in the following commands if you use a virtual environment (venv/virtenv).
pip install --user -r requirements.txt
pip install --user -r docs/docsite/requirements.txt
#. Upgrade pip before installing dependencies (recommended).
The :file:`docs/docsite/requirements.txt` file allows a wide range of versions and may install new releases of required packages. New releases of these packages may cause problems with the Ansible docs build. If you want to install tested versions of these dependencies, use :file:`test/sanity/code-smell/docs-build.requirements.txt` instead, which matches the dependencies used by CI:
.. code-block:: bash
.. code-block:: bash
pip install --user --upgrade pip
#. Install Ansible dependencies.
.. code-block:: bash
pip install --user -r requirements.txt
#. Install either the unpinned or tested documentation dependencies.
pip install --user -r requirements.txt
pip install --user -r test/sanity/code-smell/docs-build.requirements.txt
.. code-block:: bash
You can drop ``--user`` if you have set up a virtual environment (venv/virtenv).
pip install --user -r requirements.txt # This file installs unpinned versions that can cause problems with the Ansible docs build.
pip install --user -r test/sanity/code-smell/docs-build.requirements.txt # This file installs tested dependency versions that are used by CI.
.. note::

Loading…
Cancel
Save