From 29f33415b1558cafc13e154ea376e946e78c2bc0 Mon Sep 17 00:00:00 2001 From: Yufei Huang Date: Fri, 25 Mar 2022 03:44:12 +0800 Subject: [PATCH] Update docfx sanity check (#2285) Co-authored-by: Armin Ruech --- docfx.cmd | 15 --------------- docfx.json | 30 ++++-------------------------- toc.yml | 2 -- 3 files changed, 4 insertions(+), 43 deletions(-) delete mode 100644 docfx.cmd delete mode 100644 toc.yml diff --git a/docfx.cmd b/docfx.cmd deleted file mode 100644 index 3556da479..000000000 --- a/docfx.cmd +++ /dev/null @@ -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% -) diff --git a/docfx.json b/docfx.json index 76932e61e..f69395082 100644 --- a/docfx.json +++ b/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" } } diff --git a/toc.yml b/toc.yml deleted file mode 100644 index 0033517f7..000000000 --- a/toc.yml +++ /dev/null @@ -1,2 +0,0 @@ -- name: OpenTelemetry Specification - href: ./README.md