diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2021-06-25 09:46:28 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-25 09:46:28 -0600 |
| commit | f4bd901575c30e92fa78b196b677d36cf1a0314e (patch) | |
| tree | 0a7f1ceae4c8f88d5af0dee4bd4d41b799204965 | |
| parent | 6e9b746833f23c15741d741c339eaaaece639ce0 (diff) | |
| parent | 55c03c94a46ccad43b20e81ab87124dec964207b (diff) | |
| download | numpy-f4bd901575c30e92fa78b196b677d36cf1a0314e.tar.gz | |
Merge pull request #19338 from Mukulikaa/dev_index_doc
DOC: Removed duplicate instructions for building docs from `dev/index` page
| -rw-r--r-- | doc/source/dev/index.rst | 38 |
1 files changed, 4 insertions, 34 deletions
diff --git a/doc/source/dev/index.rst b/doc/source/dev/index.rst index aaf9fe4a0..b9347a58c 100644 --- a/doc/source/dev/index.rst +++ b/doc/source/dev/index.rst @@ -186,7 +186,7 @@ Stylistic Guidelines pep-0008/>`_ (remove trailing white space, no tabs, etc.). Check code with pyflakes / flake8. -* Use numpy data types instead of strings (``np.uint8`` instead of +* Use NumPy data types instead of strings (``np.uint8`` instead of ``"uint8"``). * Use the following import conventions:: @@ -229,42 +229,12 @@ Building docs ------------- To build docs, run ``make`` from the ``doc`` directory. ``make help`` lists -all targets. For example, to build the HTML documentation, you can run: - -.. code:: sh +all targets. For example, to build the HTML documentation, you can run:: make html -Then, all the HTML files will be generated in ``doc/build/html/``. -Since the documentation is based on docstrings, the appropriate version of -numpy must be installed in the host python used to run sphinx. - -Requirements -~~~~~~~~~~~~ - -`Sphinx <http://www.sphinx-doc.org/en/stable/>`__ is needed to build -the documentation. Matplotlib, SciPy, and IPython are also required. - -These additional dependencies for building the documentation are listed in -``doc_requirements.txt`` and can be conveniently installed with:: - - pip install -r doc_requirements.txt - -The numpy documentation also depends on the -`numpydoc <https://numpydoc.readthedocs.io/en/latest/>`__ sphinx extension -as well as an external sphinx theme. -These extensions are included as git submodules and must be initialized -before building the docs. -From the ``doc/`` directory: - -.. code:: sh - - git submodule update --init - -The documentation includes mathematical formulae with LaTeX formatting. -A working LaTeX document production system -(e.g. `texlive <https://www.tug.org/texlive/>`__) is required for the -proper rendering of the LaTeX math in the documentation. +To get the appropriate dependencies and other requirements, +see :ref:`howto-build-docs`. Fixing Warnings ~~~~~~~~~~~~~~~ |
