Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ sphinx:
conda:
environment: environment.yml

# Install doc-building dependencies
python:
install:
- requirements: docs/requirements.txt

# Specify the build process
build:
os: ubuntu-24.04
Expand All @@ -25,4 +20,9 @@ build:
jobs:
install:
- bash ./linux_build.bash
- pip install libcarna_python-*.whl
- pip install dist/libcarna_python-*.whl
pre_build:
- pip install -r docs/requirements.txt
build:
html:
- LIBCARNA_PYTHON_NBSPHINX_EXECUTE=never sphinx-build -M html docs $READTHEDOCS_OUTPUT
7 changes: 4 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
import sys

LIBCARNA_PYTHON_PATH = os.environ.get('LIBCARNA_PYTHON_PATH')
sys.path.append(LIBCARNA_PYTHON_PATH)
os.environ['PYTHONPATH'] = LIBCARNA_PYTHON_PATH + ':' + os.environ.get('PYTHONPATH', '')
if LIBCARNA_PYTHON_PATH is not None:
sys.path.append(LIBCARNA_PYTHON_PATH)
os.environ['PYTHONPATH'] = LIBCARNA_PYTHON_PATH + ':' + os.environ.get('PYTHONPATH', '')

nbsphinx_execute = 'always'
nbsphinx_execute = os.environ.get('LIBCARNA_PYTHON_NBSPHINX_EXECUTE', 'always')
Loading