-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (44 loc) · 1.12 KB
/
validate-mkdocs.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
name: Validate static MkDocs pages
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
validate-mkdocs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: 'recursive'
- name: Build MkDocs pages
uses: docker://squidfunk/mkdocs-material:8.2.8
timeout-minutes: 1
with:
args: >-
build
--verbose
--strict
- id: format-github-repo
run: echo "repo-name=${GITHUB_REPOSITORY#*\/}" >> $GITHUB_OUTPUT
- id: Move to file dir to resemble prod setup
run: |
mkdir documentation
cd documentation
mkdir documentation
cd ..
mv site documentation/documentation
- name: Test links
timeout-minutes: 10
uses: docker://klakegg/html-proofer:3.16.0
env:
GITHUB_REPOSITORY: ${{ github.repository }}
with:
args: >-
--allow-hash-href
--check-html
--http-status-ignore 302
./documentation