-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (42 loc) · 1.15 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Build Sphinx Documentation and check links
on:
schedule:
# Weekly, at 03:00 on Monday UTC time
- cron: "0 3 * * 1"
pull_request:
paths:
- ".github/workflows/sphinx.yml"
- "docs/**"
- "README.md"
- ".readthedocs.yaml"
push:
branches:
- main
paths:
- ".github/workflows/sphinx.yml"
- "docs/**"
- "README.md"
- ".readthedocs.yaml"
workflow_dispatch:
jobs:
build-docs:
name: Build Sphinx Documentation
if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository == 'jupyter/docker-stacks')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Repo ⚡️
uses: actions/checkout@v3
- name: Set Up Python 🐍
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install Doc Dependencies 📦
run: |
pip install --upgrade pip
pip install --upgrade -r docs/requirements.txt
- name: Build Documentation 📖
run: make docs
- name: Check Documentation URLs 🔗
run: make linkcheck-docs