Skip to content

Commit d05fa59

Browse files
ci(oss-public): isolate DotnetApiDocs to docs.yml inline install
1 parent 2f41189 commit d05fa59

2 files changed

Lines changed: 3 additions & 11 deletions

File tree

.config/dotnet-tools.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@
88
"csharpier"
99
],
1010
"rollForward": false
11-
},
12-
"Intility.DotnetApiDocs": {
13-
"version": "0.1.5",
14-
"commands": [
15-
"dotnet-api-docs"
16-
],
17-
"rollForward": false
1811
}
1912
}
2013
}

.github/workflows/docs.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,13 @@ jobs:
7373
run: dotnet build JsonApiToolkit/JsonApiToolkit.csproj -c Release -o
7474
JsonApiToolkit/bin/docs
7575

76-
- name: Restore .NET tools
76+
- name: Install Intility.DotnetApiDocs
7777
env:
7878
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
79-
run: dotnet tool restore
79+
run: dotnet tool install -g Intility.DotnetApiDocs --version 0.1.5
8080

8181
- name: Generate API reference
82-
run: dotnet tool run dotnet-api-docs -- --input JsonApiToolkit/bin/docs --output
83-
docs/api --strict
82+
run: dotnet-api-docs --input JsonApiToolkit/bin/docs --output docs/api --strict
8483

8584
- name: Install Python dependencies
8685
run: uv venv && uv pip install -r docs/requirements.txt

0 commit comments

Comments
 (0)