mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-21 22:45:33 -04:00
38 lines
1.1 KiB
ReStructuredText
38 lines
1.1 KiB
ReStructuredText
.. _devguide_docbuild:
|
|
|
|
=============================
|
|
Building Sphinx Documentation
|
|
=============================
|
|
|
|
In order to build the documentation in the ``docs`` directory, you will need to
|
|
have the several third-party Python packages installed, including `Sphinx
|
|
<https://www.sphinx-doc.org/en/master/>`_. To install the necessary
|
|
prerequisites, provide the optional "docs" dependencies when installing OpenMC's
|
|
Python API. That is, from the root directory of the OpenMC repository:
|
|
|
|
.. code-block:: sh
|
|
|
|
python -m pip install ".[docs]"
|
|
|
|
-----------------------------------
|
|
Building Documentation as a Webpage
|
|
-----------------------------------
|
|
|
|
To build the documentation as a webpage (what appears at
|
|
https://docs.openmc.org), simply go to the ``docs`` directory and run:
|
|
|
|
.. code-block:: sh
|
|
|
|
make html
|
|
|
|
-------------------------------
|
|
Building Documentation as a PDF
|
|
-------------------------------
|
|
|
|
To build PDF documentation, you will need to have a LaTeX distribution installed
|
|
on your computer. Once you have a LaTeX distribution installed, simply go to the
|
|
``docs`` directory and run:
|
|
|
|
.. code-block:: sh
|
|
|
|
make latexpdf
|