diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ba0edf5..3499180 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -101,7 +101,9 @@ jobs: - name: Build Python package run: maturin develop --release --manifest-path pyargus/Cargo.toml - name: Build HTML docs - run: sphinx-multiversion docs _site -b html + run: | + sphinx-multiversion docs _site -b html + cp ./docs/_templates/index-redirect.html _site/index.html - name: Deploy uses: peaceiris/actions-gh-pages@v3 if: github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/') diff --git a/docs/_templates/index-redirect.html b/docs/_templates/index-redirect.html new file mode 100644 index 0000000..591e549 --- /dev/null +++ b/docs/_templates/index-redirect.html @@ -0,0 +1,9 @@ + + + + Redirecting to master branch + + + + + diff --git a/noxfile.py b/noxfile.py index af7961f..02d9108 100644 --- a/noxfile.py +++ b/noxfile.py @@ -49,6 +49,7 @@ def docs(session: nox.Session): with session.chdir(CURRENT_DIR / "pyargus"): session.install("-e", ".") session.run("sphinx-multiversion", "docs", "_site", "-b", "html") + session.run("cp", "./docs/_templates/index-redirect.html", "_site/index.html") @nox.session(tags=["style", "fix", "rust"], python=False)