-
Notifications
You must be signed in to change notification settings - Fork 70
44 lines (41 loc) · 1.08 KB
/
validate-documentation.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
name: Validate documentation site
on:
pull_request:
paths:
# Rebuild when workflow configs change.
- .github/workflows/validate-documentation.yml
# Or when documentation code changes.
- 'docs/**'
- '**.md'
- mkdocs.yml
- lint_docs.sh
- .markdownlint.rb
jobs:
mkdocs:
name: Build mkdocs to validate mkdocs.yml
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12.3'
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run mkdocs
run: mkdocs build
lint:
name: Lint Markdown files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby 2.7
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Install dependencies
run: gem install mdl -v 0.12.0
- name: Lint docs
run: ./lint_docs.sh