diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 81f70c42424..5ba428636b6 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -194,15 +194,14 @@ jobs: - name: Setup .NET 8.0 uses: actions/setup-dotnet@v4 with: - dotnet-version: '8.0.x' global-json-file: dotnet/global.json - run: dotnet tool update -g docfx - run: | - mkdir -p ./build/dotnet/dev/ - docfx docfx.json --output ./build/dotnet/dev/ - working-directory: ./docs/dotnet + docfx docs/dotnet/docfx.json + mkdir -p build/dotnet/ + mv docs/dotnet/_site build/dotnet/dev - name: insert clarity snippet to *.html - working-directory: ./docs/dotnet/build/dotnet/dev/ + working-directory: build/dotnet/dev/ shell: python run: | import os @@ -234,7 +233,7 @@ jobs: print(f'Clarity script inserted into {html_path}') - uses: actions/upload-artifact@v4 with: - path: "./docs/dotnet/build" + path: "build/" name: "dotnet-dev-docs" deploy: diff --git a/docs/dotnet/docfx.json b/docs/dotnet/docfx.json index f04b979c30e..7eefe1a32b1 100644 --- a/docs/dotnet/docfx.json +++ b/docs/dotnet/docfx.json @@ -4,10 +4,10 @@ "src": [ { "files": [ - "Contracts/Microsoft.AutoGen.Contracts.csproj", - "Core/Microsoft.AutoGen.Core.csproj" + "src/Microsoft.AutoGen/Core/**/*.csproj", + "src/Microsoft.AutoGen/Contracts/**/*.csproj" ], - "src": "../../dotnet/src/Microsoft.Autogen/" + "src": "../../dotnet/" } ], "dest": "api", @@ -32,12 +32,6 @@ "files": [ "core/**.md", "core/**/toc.yml", - "articles/**.md", - "articles/**/toc.yml", - "tutorial/**.md", - "tutorial/**/toc.yml", - "release_note/**.md", - "release_note/**/toc.yml", "toc.yml", "*.md" ]