Browse Source

Attempt to Publish v2 API docs with new workflow 3

Tigger Kindel 1 year ago
parent
commit
e767707e21
2 changed files with 4 additions and 4 deletions
  1. 1 1
      .github/workflows/api-docs.yml
  2. 3 3
      docfx/docfx.json

+ 1 - 1
.github/workflows/api-docs.yml

@@ -35,7 +35,7 @@ jobs:
       working-directory: docfx
       # https://stackoverflow.com/questions/56726429/how-to-run-multiple-commands-in-one-github-actions-docker
       run: |
-        rm ../docs -Recurse -Force -ErrorAction SilentlyContinue
+        rm ../v2_docs -Recurse -Force -ErrorAction SilentlyContinue
         rm ../api -Recurse -Force -ErrorAction SilentlyContinue
         $env:DOCFX_SOURCE_BRANCH_NAME="${{ github.ref_name }}"
         docfx docfx.json

+ 3 - 3
docfx/docfx.json

@@ -13,7 +13,7 @@
           "src": "../Terminal.Gui"
         }
       ],
-      "dest": "api/Terminal.Gui2",
+      "dest": "api/Terminal.Gui",
       "shouldSkipMarkup": true,
       "properties": {
           "TargetFramework": "net7.0"
@@ -32,7 +32,7 @@
           "src": "../UICatalog"
         }
       ],
-      "dest": "api/UICatalog2",
+      "dest": "api/UICatalog",
       "shouldSkipMarkup": false,
       "properties": {
           "TargetFramework": "net7.0"
@@ -87,7 +87,7 @@
         ]
       }
     ],
-    "dest": "../v2docs",
+    "dest": "../v2_docs",
     "globalMetadata": {
       "_enableSearch": "true",
       "_appLogoPath": "images/logo48.png",