-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (49 loc) · 1.35 KB
/
docscheck.yml
File metadata and controls
50 lines (49 loc) · 1.35 KB
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
name: Check docs
defaults:
run:
shell: bash
on:
push:
branches:
- master
- main
pull_request:
paths:
- "docs/**"
- "index.md"
- ".spellcheckwordlist.txt"
- ".spellcheck.yml"
- ".markdownlintrc"
- "mkdocs.yml"
- ".readthedocs.yml"
- "requirements.txt"
- ".github/workflows/**"
- "markdown-link-check.json"
jobs:
build:
name: Docs check (spellcheck, markdownlint)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: rojopolis/spellcheck-github-actions@0.21.1
name: Spellcheck
- name: Run markdownlint on docs
uses: docker://avtodev/markdown-lint:v1
with:
config: '.markdownlintrc'
args: '*.md docs/*.md docs/users'
# - name: Debugging with tmate
# uses: mxschmitt/action-tmate@v3.1
- name: "Check links in markdown"
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
# use-verbose-mode: 'yes'
folder-path: 'docs/'
# file-path: 'README.md', 'CONTRIBUTING.md'
config-file: 'markdown-link-check.json'
- name: Test mkdocs
run: |
sudo pip3 install setuptools
sudo pip3 install -r requirements.txt
mkdocs -q build -d /tmp/mkdocsbuild