Skip to content

Commit 196fbcc

Browse files
committed
docs: switch back to using docfx tool
1 parent df85c5d commit 196fbcc

5 files changed

Lines changed: 18 additions & 22 deletions

File tree

.config/dotnet-tools.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
"commands": [
88
"dotnet-serve"
99
]
10+
},
11+
"docfx": {
12+
"version": "2.74.1",
13+
"commands": [
14+
"docfx"
15+
]
1016
}
1117
}
1218
}

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,17 @@ jobs:
218218
files: '["docs/site/*.md", "docs/**/*.md", "docs/**/*.tmpl.partial", "*.csproj", "**/*.csproj"]'
219219

220220
- name: 📄 Build bUnit
221-
run: dotnet build
221+
run: dotnet build -c release
222222

223223
- name: 🧪 Run sample unit tests
224224
run: dotnet test docs/samples/samples.sln
225225

226226
- name: 📄 Build docs
227227
working-directory: ./docs/site
228-
run: dotnet run Site.csproj
228+
run: |
229+
dotnet tool install --global docfx --version 2.74.1
230+
docfx metadata
231+
docfx build
229232
230233
dependency-review:
231234
runs-on: ubuntu-latest

.github/workflows/docs-deploy.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,17 @@ jobs:
8484
echo "TERM=xterm" >> $GITHUB_ENV
8585
8686
- name: 🛠️ Building bUnit
87-
run: dotnet build /p:PublicRelease=true
87+
run: dotnet build /p:PublicRelease=true -c release
8888

8989
- name: 🛠️ Verify docs samples
9090
run: dotnet test docs/samples/samples.sln
9191

9292
- name: 📄 Building docs
9393
working-directory: ./docs/site
94-
run: dotnet run Site.csproj
94+
run: |
95+
dotnet tool install --global docfx --version 2.74.1
96+
docfx metadata
97+
docfx build
9598
9699
- name: 🛠️ Deploy to GitHub Pages
97100
if: success()

docs/site/Site.csproj

Lines changed: 0 additions & 16 deletions
This file was deleted.

docs/site/docfx.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"src": [
66
{
77
"files": [
8-
"bunit.core/bunit.core.csproj",
9-
"bunit.web/bunit.web.csproj"
8+
"bunit.core/**/bin/Release/**.dll",
9+
"bunit.web/**/bin/Release/**.dll"
1010
],
1111
"src": "../../src"
1212
}

0 commit comments

Comments
 (0)