From d1bd415e05b60c46d53c0ca4c4a5464488417fe4 Mon Sep 17 00:00:00 2001 From: theOehrly <23384863+theOehrly@users.noreply.github.com> Date: Sat, 11 May 2024 23:02:30 +0200 Subject: [PATCH] CI: always build docs from scratch --- .github/workflows/docs.yml | 4 +++- docs/Makefile | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 65537a8f5..a847993a5 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -69,7 +69,9 @@ jobs: - name: Build docs run: | mkdir test_cache # not really need but pytest setup relies on it - sphinx-build ./docs ./docs/_build/html -a -E -W -n --keep-going + cd ./docs + make clean + make html - name: Publish docs if: (github.event_name == 'release') || inputs.publish diff --git a/docs/Makefile b/docs/Makefile index 226787c7b..3ac025b6d 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -6,7 +6,7 @@ SPHINXOPTS ?= SPHINXBUILD ?= sphinx-build SOURCEDIR = . -BUILDDIR = ../../docs/ +BUILDDIR = _build # Put it first so that "make" without argument is like "make help". help: