mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-21 06:25:30 -04:00
Some checks failed
Tests and Coverage / filter-changes (push) Has been cancelled
dockerhub-publish-develop / main (push) Has been cancelled
dockerhub-publish-develop-dagmc-libmesh / main (push) Has been cancelled
dockerhub-publish-develop-dagmc / main (push) Has been cancelled
dockerhub-publish-develop-libmesh / main (push) Has been cancelled
Tests and Coverage / Python 3.13 (omp=n, mpi=n, dagmc=, libmesh=, event= (push) Has been cancelled
Tests and Coverage / Python 3.14 (omp=n, mpi=n, dagmc=, libmesh=, event= (push) Has been cancelled
Tests and Coverage / Python 3.14t (omp=n, mpi=n, dagmc=, libmesh=, event= (push) Has been cancelled
Tests and Coverage / Python 3.12 (omp=n, mpi=n, dagmc=n, libmesh=n, event=n (push) Has been cancelled
Tests and Coverage / Python 3.12 (omp=y, mpi=n, dagmc=n, libmesh=n, event=n (push) Has been cancelled
Tests and Coverage / Python 3.12 (omp=n, mpi=y, dagmc=n, libmesh=n, event=n (push) Has been cancelled
Tests and Coverage / Python 3.12 (omp=y, mpi=y, dagmc=n, libmesh=n, event=n (push) Has been cancelled
Tests and Coverage / Python 3.12 (omp=y, mpi=n, dagmc=, libmesh=y, event= (push) Has been cancelled
Tests and Coverage / Python 3.12 (omp=y, mpi=n, dagmc=, libmesh=, event=y (push) Has been cancelled
Tests and Coverage / Python 3.12 (omp=y, mpi=y, dagmc=y, libmesh=, event= (push) Has been cancelled
Tests and Coverage / Python 3.12 (omp=y, mpi=y, dagmc=, libmesh=y, event= (push) Has been cancelled
Tests and Coverage / coverage (push) Has been cancelled
Tests and Coverage / Check CI status (push) Has been cancelled
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
43 lines
1.4 KiB
ReStructuredText
43 lines
1.4 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]"
|
|
|
|
The OpenMC documentation also uses Doxygen to automatically generate its
|
|
C/C++ API documentation directly from the docstrings available in the source
|
|
code. You will need to have a working installation of Doxygen to generate the
|
|
documentation locally.
|
|
|
|
-----------------------------------
|
|
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
|