diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index ba8f7192..4abfc359 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -15,7 +15,7 @@ jobs: python-version: '3.11' - name: Install dependencies run: | - pip install . sphinx sphinx_rtd_theme myst_parser nbsphinx + pip install sphinx sphinx_rtd_theme myst_parser nbsphinx - name: Sphinx build run: | sphinx-build docs _build diff --git a/docs/conf.py b/docs/conf.py index 49dc103f..d0604e1d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -12,9 +12,7 @@ # # import os # import sys -# sys.path.insert(0, os.path.abspath('.')) - -import cosipy +# sys.path.insert(0, os.path.abspath('..')) # -- Project information ----------------------------------------------------- @@ -23,7 +21,8 @@ author = 'COSI Team' # The full version, including alpha/beta/rc tags -release = cosipy.__version__ +with open('../cosipy/_version.py') as f: + release = f.readline() # -- General configuration ---------------------------------------------------