Skip to content

Commit

Permalink
Fix apidoc generation (#5279)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackgerrits authored Jan 31, 2025
1 parent 902238f commit 3fcb6e6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
12 changes: 3 additions & 9 deletions docs/dotnet/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
]
Expand Down

0 comments on commit 3fcb6e6

Please sign in to comment.