Skip to content

Commit

Permalink
attempt to fix PDF build #3
Browse files Browse the repository at this point in the history
  • Loading branch information
bimac committed Aug 22, 2024
1 parent 9617731 commit c466d54
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v4
- uses: ammaraskar/sphinx-action@master
with:
pre-build-command: "apt-get update -y && apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended && pip install -e ."
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
Expand Down
10 changes: 8 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
from datetime import date

from iblrig import __version__

try:
from iblrig import __version__
except ModuleNotFoundError:
import sys
from pathlib import Path
_BASE_DIR = Path(__file__).resolve().parents[2]
sys.path.append(str(_BASE_DIR))
from iblrig import __version__

project = 'iblrig'
copyright = f'2018 – {date.today().year} International Brain Laboratory'
Expand Down

0 comments on commit c466d54

Please sign in to comment.