Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 7 additions & 25 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
# ---
# jupyter:
# jupytext:
# cell_metadata_filter: all,-trusted
# notebook_metadata_filter: settings,mystnb,language_info
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.16.4
# ---

"""Configuration file for the Sphinx documentation builder.

This file only contains a selection of the most common options. For a full
Expand All @@ -32,42 +20,35 @@
# "Matplotlib is building the font cache; this may take a moment."
import matplotlib.pyplot # noqa: F401
import sphinxcontrib.bibtex.plugin
from sphinx.deprecation import RemovedInSphinx80Warning
from sphinx.deprecation import RemovedInSphinx90Warning
from sphinxcontrib.bibtex.style.referencing import BracketStyle
from sphinxcontrib.bibtex.style.referencing.author_year import AuthorYearReferenceStyle

import virtual_ecosystem as ve
from virtual_ecosystem.core import variables

# +
# Silence sphinx 8 warnings.
warnings.filterwarnings("ignore", category=RemovedInSphinx80Warning)

# Silence sphinx 9 warnings.
warnings.filterwarnings("ignore", category=RemovedInSphinx90Warning)

# +
# This path is required for automodule to be able to find and render the docstring
# example in the development section of the documentation. The path to the modules for
# the virtual_ecosystem package itself do not needed to be included here, providing
# sphinx is run within the poetry shell. RTD runs sphinx-build in the same directory
# as this conf.py file, where we currently run it from the parent `docs` folder, so
# adding an absolute path is more reliable.
sys.path.append(str(Path(__file__).parent / "development/documentation"))
# -


version = ve.__version__
release = version

# +
# Update the variables file
varfile = Path(__file__).parent / "variables.rst"
variables.output_known_variables(varfile)
# -


# -- Project information -----------------------------------------------------

# +
project = "Virtual Ecosystem"
copyright = (
"2022, Rob Ewers, David Orme, Olivia Daniels, Jacob Cook, "
Expand All @@ -77,12 +58,10 @@
"Rob Ewers, David Orme, Olivia Daniels, Jacob Cook, Jaideep Joshi, "
"Taran Rallings, Vivienne Groner"
)
# -


# -- General configuration ---------------------------------------------------

# +
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
Expand All @@ -94,6 +73,7 @@
"sphinx.ext.mathjax",
"sphinx.ext.autosummary",
"sphinx.ext.viewcode",
"sphinx.ext.todo",
"sphinxcontrib.bibtex",
"sphinxcontrib.mermaid",
"myst_nb",
Expand All @@ -104,13 +84,15 @@
]
autodoc_default_flags = ["members"]
autosummary_generate = True
# -


# Set up the external table of contents file path and configure
external_toc_path = "_toc.yaml"
external_toc_exclude_missing = False

# Display TODO lists:
todo_include_todos = True


# Set up a bracketed citation style, register it with sphinxcontrib.bibtex, and then set
# that style as the default.
Expand Down
Loading