Fix doc build problem

This commit is contained in:
Luca Cristaldi 2021-08-26 11:50:08 +02:00
parent e7fcc90795
commit 353db93d70
2 changed files with 13 additions and 12 deletions

View File

@ -13,21 +13,22 @@ jobs:
- uses: actions/checkout@v1
with:
fetch-depth: 0
- name: "setup python"
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: "install dependencies"
run: |
apt-get update -y && apt-get install -y git
pip install -r requirements.txt
- name: "check links"
uses: ammaraskar/sphinx-action@master
with:
docs-folder: "."
build-command: "make linkcheck"
run: make linkcheck
- name: "Build multiversioned doc"
uses: ammaraskar/sphinx-action@master
with:
docs-folder: "."
pre-build-command: "apt-get update -y && apt-get install -y git"
build-command: "sphinx-multiversion source docs/html"
run: sphinx-multiversion source docs/html
- name: "add .nojekill and redirect to master"
run: |
sudo touch docs/html/.nojekyll
sudo tee docs/html/index.html << EOF
sudo tee docs/html/index.html << EOF
<!DOCTYPE html>
<html>
<head>
@ -42,4 +43,4 @@ jobs:
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages
folder: docs/html
folder: docs/html

View File

@ -2,7 +2,7 @@
#
# You can set these variables from the command line.
SPHINXOPTS = -Dversion=$(shell git tag --sort=committerdate | tail -1)
SPHINXOPTS +=
SPHINXBUILD = sphinx-build
SOURCEDIR = source
BUILDDIR = docs