Fix RTD and gh-pages docu auto-generation

This commit is contained in:
carlocagnetta 2023-11-10 14:59:51 +01:00 committed by Michael Panchenko
parent 9aad2c9673
commit 64af97b65e
2 changed files with 6 additions and 11 deletions

View File

@ -31,7 +31,7 @@ jobs:
run: | run: |
poetry install --with dev poetry install --with dev
- name: convert sphinx - name: convert sphinx
run: jupyter-book config sphinx docs/ run: poetry run jupyter-book config sphinx docs/
- name: build books - name: build books
run: poetry run jupyter-book build docs run: poetry run jupyter-book build docs
deploy: deploy:

View File

@ -11,19 +11,13 @@ build:
tools: tools:
python: "3.11" python: "3.11"
jobs: jobs:
pre_create_environment:
- asdf plugin add poetry
- asdf install poetry latest
- asdf global poetry latest
- poetry config virtualenvs.create false
post_install:
- poetry install
- poetry install --with dev
pre_build: pre_build:
- pip install . - pip install .
- poetry config virtualenvs.create false
# Generate the Sphinx configuration for this Jupyter Book, so it builds. # Generate the Sphinx configuration for this Jupyter Book, so it builds.
- "jupyter-book config sphinx docs/" - "poetry run jupyter-book config sphinx docs/"
post_install:
- poetry install --with dev
# Build documentation in the docs/ directory with Sphinx # Build documentation in the docs/ directory with Sphinx
# sphinx: # sphinx:
# configuration: docs/conf.py # configuration: docs/conf.py
@ -32,3 +26,4 @@ build:
python: python:
install: install:
- requirements: docs/requirements.txt - requirements: docs/requirements.txt
- pip install poetry