From 3e57cd88fccdc0f0fa5902aec7054d01492829ae Mon Sep 17 00:00:00 2001 From: Cassie Breviu <46505951+cassiebreviu@users.noreply.github.com> Date: Mon, 29 Aug 2022 08:13:45 -0500 Subject: [PATCH] Csharp docfx update (#12755) * update dest to csharp folder, update ci to remove unused files, update git ignore * add test branch to ci --- .github/workflows/publish-csharp-apidocs.yml | 13 +++++++------ csharp/ApiDocs/.gitignore | 4 +++- csharp/ApiDocs/docfx.json | 14 ++++++-------- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/.github/workflows/publish-csharp-apidocs.yml b/.github/workflows/publish-csharp-apidocs.yml index 3522135151..cb4e02c3cd 100644 --- a/.github/workflows/publish-csharp-apidocs.yml +++ b/.github/workflows/publish-csharp-apidocs.yml @@ -3,7 +3,7 @@ on: push: branches: - main - - add-csharp-docfx + - csharp-doc-update jobs: publish: runs-on: windows-latest @@ -26,11 +26,12 @@ jobs: clean: false - name: Move API docs into target area run: | - cd docs - cd api - mkdir csharp - cd ../../ - MOVE csharp/ApiDocs/dest docs/api/csharp + rm -r -fo docs/api/csharp + MOVE csharp/ApiDocs/csharp docs/api + rm -r -fo csharp/ApiDocs/obj + rm -r -fo csharp/ApiDocs/bin + rm -r -fo csharp/ApiDocs/log.txt + rm -r -fo csharp/src - name: Git Checkin run: git add . - name: Create Pull Request diff --git a/csharp/ApiDocs/.gitignore b/csharp/ApiDocs/.gitignore index 30735688ea..f11dda9cd5 100644 --- a/csharp/ApiDocs/.gitignore +++ b/csharp/ApiDocs/.gitignore @@ -7,4 +7,6 @@ /**/bin/ /**/obj/ _site -dest \ No newline at end of file +dest +csharp +*.txt diff --git a/csharp/ApiDocs/docfx.json b/csharp/ApiDocs/docfx.json index 0dc84dea01..e6b9fea8b2 100644 --- a/csharp/ApiDocs/docfx.json +++ b/csharp/ApiDocs/docfx.json @@ -9,7 +9,7 @@ "src": "../" } ], - "dest": "dest", + "dest": "csharp", "disableGitFeatures": false, "disableDefaultFilter": false } @@ -22,12 +22,10 @@ "api/**.html", "api/index.md", "api/**/index.md" - ] + ] }, { "files": [ - //"articles/**.md", - //"articles/**/ "toc.yml\",", "toc.yml", "*.md", @@ -49,15 +47,15 @@ ], "exclude": [ "obj/**", - "dest/**" + "dest/**", + "csharp/**" ] } ], - "dest": "dest", + "dest": "csharp", "globalMetadataFiles": [], "fileMetadataFiles": [], "template": [ - //"default" "_exported_templates/default" ], "postProcessors": [], @@ -67,4 +65,4 @@ "cleanupCacheHistory": false, "disableGitFeatures": false } -} \ No newline at end of file +}