From b3fdbed17fee4678797bd6c0db4db83ff54c46e5 Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Tue, 30 Apr 2024 13:13:46 +0200 Subject: [PATCH] Define the sphinx version which we want to use (#796) --- .github/workflows/build-docs.yaml | 13 ++++++++++--- .readthedocs.yaml | 4 ++++ requirements.txt | 2 ++ 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 requirements.txt diff --git a/.github/workflows/build-docs.yaml b/.github/workflows/build-docs.yaml index 81077df0..6e54be82 100644 --- a/.github/workflows/build-docs.yaml +++ b/.github/workflows/build-docs.yaml @@ -12,10 +12,17 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: ammaraskar/sphinx-action@master + + - uses: actions/setup-python@v5 with: - docs-folder: "./" - build-command: "sphinx-build -n -W --keep-going -b html -d _build/doctrees . _build/html" + python-version: '3.12' + + - name: Install Python requirements + run: pip install -r requirements.txt + + - name: Sphinx Build + run: sphinx-build -n -W --keep-going -b html -d _build/doctrees . _build/html + - uses: actions/upload-artifact@v1 with: name: DocumentationHTML diff --git a/.readthedocs.yaml b/.readthedocs.yaml index ac57d362..04889a17 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -5,5 +5,9 @@ build: tools: python: "3.12" +python: + install: + - requirements: requirements.txt + sphinx: configuration: conf.py diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..480f0fbb --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +setuptools==68.2.2 +sphinx==7.2.6