diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7390097be..0695eb99b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -11,16 +11,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: "3.10" - cache: 'pip' - - run: pip install . - uses: ammaraskar/sphinx-action@master with: - docs-folder: "docs/" - pre-build-command: "apt update -y && apt install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended" + pre-build-command: "apt-get update -y && apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended" build-command: "make latexpdf" + docs-folder: "docs" - uses: actions/upload-artifact@v4 with: name: documentation diff --git a/docs/source/conf.py b/docs/source/conf.py index 5d7c17e5b..d973438e2 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -1,6 +1,12 @@ from datetime import date -from iblrig import __version__ +try: + from iblrig import __version__ +except ModuleNotFoundError: + import sys + from pathlib import Path + sys.path.append(str(Path(__file__).parents[1].resolve())) + from iblrig import __version__ project = 'iblrig' copyright = f'2018 – {date.today().year} International Brain Laboratory'