Skip to content

Commit

Permalink
after reading blog
Browse files Browse the repository at this point in the history
  • Loading branch information
PennyWieser committed Oct 21, 2024
1 parent 0b83e57 commit daef3cb
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
import os
import sys
import sphinx_rtd_theme
#sys.path.insert(0, os.path.abspath('..'))

sys.path.insert(0, os.path.abspath('../src'))




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

project = 'Thermobar'
Expand All @@ -36,7 +35,7 @@
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath('..'))


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

Expand Down Expand Up @@ -236,9 +235,11 @@
'numpy': ('https://docs.scipy.org/doc/numpy', None),
}



html_context = {
'READTHEDOCS': os.environ.get('READTHEDOCS', False),
'github_version': 'main',
'current_version': release, # Set the correct version
'READTHEDOCS': os.environ.get('READTHEDOCS', '') == 'True',
'github_version': os.environ.get('READTHEDOCS_VERSION', 'main'), # Pull correct version info
'current_version': release, # Use release variable defined earlier
}

0 comments on commit daef3cb

Please sign in to comment.