forked from hpcugent/vsc_user_docs
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.25 KB
/
build.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
---
# documentation: https://help.github.com/en/articles/workflow-syntax-for-github-actions
name: build docs (to test changes in PRs)
on: [push, pull_request]
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v3
- name: set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: install required Python packages
run: |
pip install -r requirements.txt
cd custom_plugin && pip install . && cd -
cd computational_macros && pip install . && cd -
python3 -m pip list
mkdocs --version
# equivalent of 'mkdocs build', but need to build all flavors of the docs (different site/OS)
- name: build docs
run: |
python3 build.py
find build -type f
- name: Check faulty external links
run: |
cd scripts/link_checker
pip install -r requirements.txt
echo "Generating links from build"
./generate_links_from_build.sh ../../build/HPC/Gent > links.txt
echo "Checking links"
python check_links.py --whitelist whitelist.txt links.txt