Update docfx sanity check (#2285)
Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>
This commit is contained in:
parent
2d4de7fdf2
commit
29f33415b1
15
docfx.cmd
15
docfx.cmd
|
|
@ -1,15 +0,0 @@
|
|||
SETLOCAL
|
||||
SETLOCAL ENABLEEXTENSIONS
|
||||
|
||||
docfx.exe build docfx.json > docfx.log
|
||||
@IF NOT %ERRORLEVEL% == 0 (
|
||||
type docfx.log
|
||||
ECHO Error: docfx build failed. 1>&2
|
||||
EXIT /B %ERRORLEVEL%
|
||||
)
|
||||
@type docfx.log
|
||||
@type docfx.log | findstr /C:"Build succeeded."
|
||||
@IF NOT %ERRORLEVEL% == 0 (
|
||||
ECHO Error: you have introduced build warnings. 1>&2
|
||||
EXIT /B %ERRORLEVEL%
|
||||
)
|
||||
30
docfx.json
30
docfx.json
|
|
@ -1,29 +1,7 @@
|
|||
{
|
||||
"build": {
|
||||
"content": [
|
||||
{
|
||||
"files": [
|
||||
"**.md",
|
||||
"toc.yml"
|
||||
]
|
||||
}
|
||||
],
|
||||
"resource": [
|
||||
{
|
||||
"files": [
|
||||
".github/CODEOWNERS",
|
||||
".markdownlint.yaml",
|
||||
".vscode/settings.json",
|
||||
"**.png"
|
||||
]
|
||||
}
|
||||
],
|
||||
"dest": "_site",
|
||||
"globalMetadataFiles": [],
|
||||
"fileMetadataFiles": [],
|
||||
"noLangKeyword": false,
|
||||
"keepFileLink": false,
|
||||
"cleanupCacheHistory": true,
|
||||
"disableGitFeatures": true
|
||||
"files": "**/*.{md,png}",
|
||||
"warningsAsErrors": true,
|
||||
"rules": {
|
||||
"link-out-of-scope": "off"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue