Fix doc build problem
This commit is contained in:
parent
e7fcc90795
commit
353db93d70
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue