summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGeorge Hartzell <hartzell@alerce.com>2019-12-08 14:22:25 -0800
committerAdam J. Stewart <ajstewart426@gmail.com>2019-12-08 16:22:25 -0600
commit1d06949306b592c0f675dd959303ee1eda1a2cf2 (patch)
tree8cda9629e57b62ab746f008c70b3b57c0376a41f /lib
parentaa8d5d2e8cd6d6c7abe6b8db41e1d9abf783f1ef (diff)
downloadspack-1d06949306b592c0f675dd959303ee1eda1a2cf2.tar.gz
spack-1d06949306b592c0f675dd959303ee1eda1a2cf2.tar.bz2
spack-1d06949306b592c0f675dd959303ee1eda1a2cf2.tar.xz
spack-1d06949306b592c0f675dd959303ee1eda1a2cf2.zip
Tuneup docs re setting up sphinx for building docs (#14005)
I have, more than once, tried to install the list of things that need to build the docs, only to discover that the list doesn't use Spack's package names. I'm tired of facepalming.... While I was there I touched up the prose about activating the new Python packages; activating a python package doesn't add anything to your PYTHONPATH, it links things into a directory that's *already* on your PYTHONPATH. Note that this all presupposes that you're using that same python....
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/docs/contribution_guide.rst20
1 files changed, 14 insertions, 6 deletions
diff --git a/lib/spack/docs/contribution_guide.rst b/lib/spack/docs/contribution_guide.rst
index 73f25c6f03..17e37eb92b 100644
--- a/lib/spack/docs/contribution_guide.rst
+++ b/lib/spack/docs/contribution_guide.rst
@@ -223,8 +223,7 @@ documentation. In order to prevent things like broken links and missing imports,
we added documentation tests that build the documentation and fail if there
are any warning or error messages.
-Building the documentation requires several dependencies, all of which can be
-installed with Spack:
+Building the documentation requires several dependencies:
* sphinx
* sphinxcontrib-programoutput
@@ -234,11 +233,18 @@ installed with Spack:
* mercurial
* subversion
+All of these can be installed with Spack, e.g.
+
+.. code-block:: console
+
+ $ spack install py-sphinx py-sphinxcontrib-programoutput py-sphinx-rtd-theme graphviz git mercurial subversion
+
.. warning::
Sphinx has `several required dependencies <https://github.com/spack/spack/blob/develop/var/spack/repos/builtin/packages/py-sphinx/package.py>`_.
- If you installed ``py-sphinx`` with Spack, make sure to add all of these
- dependencies to your ``PYTHONPATH``. The easiest way to do this is to run:
+ If you're using a ``python`` from Spack and you installed
+ ``py-sphinx`` and friends, you need to make them available to your
+ ``python``. The easiest way to do this is to run:
.. code-block:: console
@@ -246,8 +252,10 @@ installed with Spack:
$ spack activate py-sphinx-rtd-theme
$ spack activate py-sphinxcontrib-programoutput
- so that all of the dependencies are symlinked to a central location.
- If you see an error message like:
+ so that all of the dependencies are symlinked into that Python's
+ tree. Alternatively, you could arrange for their library
+ directories to be added to PYTHONPATH. If you see an error message
+ like:
.. code-block:: console