Skip to content

Commit

Permalink
attempt to fix PDF build
Browse files Browse the repository at this point in the history
  • Loading branch information
bimac committed Aug 22, 2024
1 parent 8d101ea commit 0b203af
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit 0b203af

Please sign in to comment.