-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathdocumentation-validation.yml
30 lines (25 loc) · 1.02 KB
/
documentation-validation.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
###########################################################################
# This is a sample Azure DevOps pipeline that can be used for validating
# documentation. In this pipeline we use markdownlint and the DocLinkChecker tool.
###########################################################################
trigger: none
pool:
vmImage: windows-latest
jobs:
# Scan markdownfiles on style consistency
- job:
displayName: 'Execute Markdownlint'
steps:
- bash: npm install -g markdownlint-cli
displayName: 'Install markdownlint'
- bash: markdownlint -c $CONFIGFILE $WORKDIR
env:
WORKDIR: $(System.DefaultWorkingDirectory)
CONFIGFILE: $(System.DefaultWorkingDirectory)/.markdownlint.json
displayName: 'Run markdownlint'
# install the companion tools
- powershell: choco install docfx-companion-tools -y
displayName: Install docfx companion tools
# run the toc generator on /DocExamample folder
- powershell: DocLinkChecker -d .\DocExamples -a
displayName: 'Checking links in .\DocExamples'