Skip to content

Commit

Permalink
update markdown link check process.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Volavsek committed Feb 21, 2020
1 parent 06ee786 commit d343391
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 59 deletions.
13 changes: 9 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,16 @@ steps:
- script: 'npm install -g markdown-link-check'
displayName: 'Install markdown-link-check'

- task: PowerShell@1
- powershell: |
Get-ChildItem -Path ".\doc\" -Filter "*.md" -Recurse | ForEach-Object {
$path = Resolve-Path -Path $_.FullName -Relative
if(!($path -match "\\\.[^\.\\]+")) {
markdown-link-check -c .\markdown-link-check.config.json -q $path
}
}
failOnStderr: true
errorActionPreference: continue
displayName: 'Check links'
inputs:
scriptName: 'scripts/MarkdownLinkCheck.ps1'
workingFolder: doc

- task: NuGetToolInstaller@0
displayName: 'Use NuGet'
Expand Down
8 changes: 8 additions & 0 deletions markdown-link-check.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"ignorePatterns": [
{ "pattern": "^https?://signaturcloud\\.fiskaltrust\\.at$" },
{ "pattern": "^https?://signaturcloud\\.fiskaltrust\\.fr$" },
{ "pattern": "^https?://helipad\\.fiskaltrust\\.cloud$" },
{ "pattern": "^https?://packages\\.fiskaltrust\\.cloud$" }
]
}
55 changes: 0 additions & 55 deletions scripts/MarkdownLinkCheck.ps1

This file was deleted.

0 comments on commit d343391

Please sign in to comment.