-
Notifications
You must be signed in to change notification settings - Fork 30
38 lines (34 loc) · 1.01 KB
/
docs-check.yaml
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
# SPDX-FileCopyrightText: 2017-2023 Contributors to the OpenSTEF project
#
# SPDX-License-Identifier: MPL-2.0
name: Docs Check
# Check docs when directly editing develop or main
# and on pull request
on:
push:
branches:
- main
pull_request:
branches:
- "**"
jobs:
docs:
runs-on: ubuntu-latest
steps:
# Checkout
- name: Checkout code
uses: actions/checkout@v4
# Setup python version
- uses: actions/setup-python@v4
with:
python-version: '3.11'
# Build documentation
- name: Build documentation
run: |
cp requirements.txt docs/requirements.txt &&\
printf "\npydata-sphinx-theme==0.12.0\n" >> docs/requirements.txt &&\
printf "\njinja2==3.0.0\n" >> docs/requirements.txt &&\
printf "\nsphinx_autodoc_typehints==1.19.4\n" >> docs/requirements.txt &&\
printf "\nmkdocs==1.2.3\n" >> docs/requirements.txt &&\
pip install -r docs/requirements.txt &&\
sphinx-apidoc -o docs openstef