Update docfx sanity check (#2285)

Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>
This commit is contained in:
Yufei Huang 2022-03-25 03:44:12 +08:00 committed by GitHub
parent 2d4de7fdf2
commit 29f33415b1
3 changed files with 4 additions and 43 deletions

View File

@ -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%
)

View File

@ -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"
}
}

View File

@ -1,2 +0,0 @@
- name: OpenTelemetry Specification
href: ./README.md