Browse Source

Attempt to Publish v2 API docs with new workflow 3

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

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

@@ -11,7 +11,7 @@ permissions:
 jobs:
   # Single deploy job since we're just deploying
   deploy:
-    name: Build and Deploy API docs to gh-pages
+    name: Build and Deploy API docs to ${{ steps.deployment.outputs.page_url }}
     environment:
       name: github-pages
       url: ${{ steps.deployment.outputs.page_url }}
@@ -33,7 +33,6 @@ jobs:
 
     - name: DocFX Build
       working-directory: docfx
-      # https://stackoverflow.com/questions/56726429/how-to-run-multiple-commands-in-one-github-actions-docker
       run: |
         rm ../v2_docs -Recurse -Force -ErrorAction SilentlyContinue
         rm ../api -Recurse -Force -ErrorAction SilentlyContinue

+ 2 - 2
docfx/docfx.json

@@ -13,7 +13,7 @@
           "src": "../Terminal.Gui"
         }
       ],
-      "dest": "api/Terminal.Gui",
+      "dest": "v2/api/Terminal.Gui",
       "shouldSkipMarkup": true,
       "properties": {
           "TargetFramework": "net7.0"
@@ -32,7 +32,7 @@
           "src": "../UICatalog"
         }
       ],
-      "dest": "api/UICatalog",
+      "dest": "v2/api/UICatalog",
       "shouldSkipMarkup": false,
       "properties": {
           "TargetFramework": "net7.0"