You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: doc/contributing/contributing.rst
+35-19
Original file line number
Diff line number
Diff line change
@@ -1417,36 +1417,52 @@ cause difficulty).
1417
1417
Building the manual
1418
1418
-------------------
1419
1419
1420
-
Once you've made your changes to the manual, you should build it locally to verify that it works as expected.
1421
-
To do this you will need a working python installation with the following packages installed:
1420
+
Once you've made your changes to the manual, you should build it locally to
1421
+
verify that it works as expected. To do this you will need a working python
1422
+
installation with the following packages installed:
1422
1423
1423
1424
- sphinx
1424
1425
- sphinxcontrib-bibtex
1425
1426
- sphinxcontrib-programoutput
1426
1427
- sphinx_rtd_theme
1427
1428
- numpy
1428
1429
1429
-
There are many tools available to create a python environment with these packages on your local machine (e.g., using ``pip install``)
1430
-
and if you are comfortable doing so on your own, go ahead. Note that as of this writing (December 2020), sphinxcontrib-bibtex versions
1431
-
2.0.0 and higher are not supported (we suggest using version 1.0.0).
1432
-
1433
-
However, if you are new to python, or less experienced, we suggest the following steps:
1434
-
1435
-
#. Get miniforge from https://github.com/conda-forge/miniforge/#download (for linux, win, or mac). Follow the instructions
1436
-
to run the installer from a terminal window. Make sure to say "yes" when it asks to initialize Miniforge3 -- that way
1437
-
you can use it right away. This is a minimal anaconda with conda-forge already set as default.
1438
-
#. Install MITgcm doc requirements:
1430
+
These packages can be installed from the Python Package Index using pip. If you
1431
+
have an existing python installation using `Anaconda
1432
+
<https://www.anaconda.com/>`_ or one of its variants (e.g., `miniconda
1433
+
<https://docs.conda.io/en/latest/miniconda.html>`_), we recommend that you can
1434
+
create (and use) a clean environment with the required packages like this:
1439
1435
1440
1436
::
1441
1437
1442
1438
cd MITgcm
1443
-
conda install --file doc/requirements.txt
1444
-
1445
-
Once these modules are installed you can build the html version of the manual by running ``make html`` in the ``doc`` directory.
1446
-
1447
-
To build the pdf version of the manual you will also need a working version of LaTeX that includes
1448
-
`several packages <http://www.sphinx-doc.org/en/master/usage/builders/index.html#sphinx.builders.latex.LaTeXBuilder>`_ that are
1449
-
not always found in minimal LaTeX installations. The command to build the pdf version is ``make latexpdf``, which should also be run in the ``doc`` directory.
0 commit comments