-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (31 loc) · 958 Bytes
/
sphinx.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Builds the Sphinx documentation in the specified folder.
# Default values are docs/ for the directory where the Sphinx
# documentation is located and true to run linkcheck
# To pass a new folder, set directory_path to the folder path
# Pass the arguments you wish to run, default command is make clean html linkcheck
---
name: sphinx
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 0'
jobs:
build:
runs-on: ubuntu-latest
env:
directory_path:
sphinx_commands: clean html linkcheck # commands to run. Update accordingly
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Sphinx install
run: pip install --upgrade sphinx
- name: Set directory
run: |
VAR=${{ env.directory_path }}
echo "docs_dir="${VAR:-./docs} >> $GITHUB_ENV
- name: Build doc
run: |
cd $docs_dir
make ${{ env.sphinx_commands }}