docfx improvement (#922)

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
This commit is contained in:
Reiley Yang 2020-07-24 16:08:38 -07:00 committed by GitHub
parent 33a52efb0c
commit cc331fab76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 0 deletions

4
.gitignore vendored
View File

@ -25,6 +25,10 @@ bld/
[Oo]bj/
[Ll]og/
# DocFx output
_api/
_site/
# Visual Studio 2015/2017 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot

View File

@ -3,7 +3,10 @@ SETLOCAL ENABLEEXTENSIONS
type docs\docfx.json > docfx.json
type docs\toc.yml > toc.yml
docfx metadata
docfx build docfx.json > docfx.log
DEL docfx.json 2> NUL
DEL toc.yml 2> NUL
@IF NOT %ERRORLEVEL% == 0 (
type docfx.log
ECHO Error: docfx build failed. 1>&2

View File

@ -1,4 +1,21 @@
{
"metadata": [
{
"src": [
{
"files": [
"src/**.csproj"
],
"exclude": [
"**/bin/**",
"**/obj/**",
"_site/**"
]
}
],
"dest": "_api"
}
],
"build": {
"content": [
{