From 64af97b65ed4ee32ea03bb757359e0653321b822 Mon Sep 17 00:00:00 2001 From: carlocagnetta Date: Fri, 10 Nov 2023 14:59:51 +0100 Subject: [PATCH] Fix RTD and gh-pages docu auto-generation --- .github/workflows/notebooks.yml | 2 +- .readthedocs.yaml | 15 +++++---------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/notebooks.yml b/.github/workflows/notebooks.yml index 625197a..4c36656 100644 --- a/.github/workflows/notebooks.yml +++ b/.github/workflows/notebooks.yml @@ -31,7 +31,7 @@ jobs: run: | poetry install --with dev - name: convert sphinx - run: jupyter-book config sphinx docs/ + run: poetry run jupyter-book config sphinx docs/ - name: build books run: poetry run jupyter-book build docs deploy: diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 8c78646..39bfaa7 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -11,19 +11,13 @@ build: tools: python: "3.11" 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: - pip install . + - poetry config virtualenvs.create false # 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 # sphinx: # configuration: docs/conf.py @@ -32,3 +26,4 @@ build: python: install: - requirements: docs/requirements.txt + - pip install poetry