Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
aslgraefe committed Sep 30, 2024
1 parent 2c73fbf commit 0333c36
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
import sys

# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html


# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

Expand All @@ -17,8 +19,6 @@
author = 'Adam SL Graefe'
release = '2.0.0'

# -- Detect Read the Docs build environment -----------------------------------
# If the environment variable READTHEDOCS is set, we're building on Read the Docs
on_rtd = os.environ.get('READTHEDOCS') == 'True'

# -- General configuration ---------------------------------------------------
Expand All @@ -37,19 +37,11 @@

templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
html_static_path = ['_static']
pygments_style = 'sphinx'

# -- Static path configuration ------------------------------------------------
# If on Read the Docs, make sure that static files are correctly located
if on_rtd:
# Set the output to the specific path that Read the Docs expects
html_static_path = ['_static']
else:
html_static_path = ['_static']

# -- Output directory configuration -------------------------------------------
# In case you need to set specific paths for Read the Docs
if on_rtd:
# Use the environment variable provided by Read the Docs
# Use the output directory that Read the Docs provides via the environment variable
html_output_dir = os.environ.get('READTHEDOCS_OUTPUT', '_build/html')
else:
# Local builds will use the default Sphinx output directory
Expand All @@ -64,7 +56,7 @@
doctest_path = [src_path]
doctest_test_doctest_blocks = ""

# Code to be executed before each doctest block
# code to be executed before each doctest block
doctest_global_setup = """
import numpy as np
"""
Expand All @@ -74,6 +66,7 @@
| doctest.IGNORE_EXCEPTION_DETAIL
| doctest.DONT_ACCEPT_TRUE_FOR_1)


# -- Intersphinx setup --------------------------------------------------------
intersphinx_mapping = {
"python": ("https://docs.python.org/3/", None),
Expand All @@ -88,4 +81,5 @@
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = 'sphinx_rtd_theme' # Using the RTD theme
html_theme = 'sphinx_rtd_theme' # experiment with this
html_static_path = ['_static']

0 comments on commit 0333c36

Please sign in to comment.