Skip to content

Commit fbd5bc8

Browse files
committed
Migrating documentation from docfx.console to docfx
1 parent 0d3a37e commit fbd5bc8

File tree

20 files changed

+32
-172
lines changed

20 files changed

+32
-172
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
pull_request:
77
branches:
88
- main
9+
permissions:
10+
contents: read
911
jobs:
1012
integration:
1113
runs-on: windows-latest

.github/workflows/codeql.yml

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

.github/workflows/gh-pages.yml

Lines changed: 26 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,39 @@
11
name: DocFx
22
on: workflow_dispatch
3+
permissions:
4+
contents: read
5+
pages: write
6+
id-token: write
37
jobs:
48
build:
59
runs-on: windows-latest
10+
environment:
11+
name: github-pages
612
steps:
713
- name: Checkout
8-
uses: actions/checkout@v4
9-
- name: Setup .NET 6.0 SDK
10-
uses: actions/setup-dotnet@v4
11-
with:
12-
dotnet-version: '6.0.x'
13-
- name: Setup .NET 7.0 SDK
14-
uses: actions/setup-dotnet@v4
15-
with:
16-
dotnet-version: '7.0.x'
14+
uses: actions/checkout@v6
1715
- name: Setup .NET 8.0 SDK
18-
uses: actions/setup-dotnet@v4
16+
uses: actions/setup-dotnet@v5
1917
with:
2018
dotnet-version: '8.0.x'
21-
- name: Restore
22-
run: dotnet restore
23-
- name: Build
24-
run: dotnet build --configuration Release --no-restore
25-
- name: Upload Artifacts
26-
uses: actions/upload-artifact@v4
19+
- name: Setup .NET 9.0 SDK
20+
uses: actions/setup-dotnet@v5
2721
with:
28-
name: docfx
29-
path: DocFx.AspNetCore.ServerSentEvents/wwwroot
30-
retention-days: 1
31-
publish:
32-
needs: [build]
33-
runs-on: ubuntu-latest
34-
steps:
35-
- name: Checkout
36-
uses: actions/checkout@v4
37-
- name: Download Artifacts
38-
uses: actions/download-artifact@v4
22+
dotnet-version: '9.0.x'
23+
- name: Setup .NET 10.0 SDK
24+
uses: actions/setup-dotnet@v5
3925
with:
40-
name: docfx
41-
path: DocFx.AspNetCore.ServerSentEvents/wwwroot
42-
- name: Publish
43-
uses: JamesIves/[email protected]
26+
dotnet-version: '10.0.x'
27+
- name: Setup docfx
28+
run: dotnet tool update -g docfx
29+
- name: Restore .NET Projects
30+
run: dotnet restore
31+
- name: Build Documentation Artifact
32+
run: docfx docs/docfx.json
33+
- name: Upload Documentation Artifact
34+
uses: actions/upload-pages-artifact@v4
4435
with:
45-
branch: gh-pages
46-
folder: DocFx.AspNetCore.ServerSentEvents/wwwroot
36+
path: 'docs/_artifact'
37+
- name: Deploy Documentation Artifact to GitHub Pages
38+
id: deployment
39+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ bld/
2828
#wwwroot/
2929

3030
# DocFX generated stuff
31-
DocFx.AspNetCore.ServerSentEvents/log.txt
32-
DocFx.AspNetCore.ServerSentEvents/api/
33-
DocFx.AspNetCore.ServerSentEvents/wwwroot/
31+
/docs/api
32+
/docs/_artifact
3433

3534
# MSTest test Results
3635
[Tt]est[Rr]esult*/

DocFx.AspNetCore.ServerSentEvents/DocFx.AspNetCore.ServerSentEvents.csproj

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

DocFx.AspNetCore.ServerSentEvents/Program.cs

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

DocFx.AspNetCore.ServerSentEvents/Properties/launchSettings.json

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

DocFx.AspNetCore.ServerSentEvents/Startup.cs

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

Lib.AspNetCore.ServerSentEvents.sln

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ VisualStudioVersion = 17.0.32014.148
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lib.AspNetCore.ServerSentEvents", "Lib.AspNetCore.ServerSentEvents\Lib.AspNetCore.ServerSentEvents.csproj", "{A0373515-C536-4C8E-B7AD-5878F357556A}"
77
EndProject
8-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DocFx.AspNetCore.ServerSentEvents", "DocFx.AspNetCore.ServerSentEvents\DocFx.AspNetCore.ServerSentEvents.csproj", "{10C3D8E6-BED2-4FBE-B1FE-1AB050B7AEC3}"
9-
EndProject
108
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Benchmark.AspNetCore.ServerSentEvents", "Benchmark.AspNetCore.ServerSentEvents\Benchmark.AspNetCore.ServerSentEvents.csproj", "{C502D468-F253-4574-917B-E31C6EFC28F6}"
119
EndProject
1210
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Test.AspNetCore.ServerSentEvents", "Test.AspNetCore.ServerSentEvents\Test.AspNetCore.ServerSentEvents.csproj", "{98E0FAC2-06DD-411B-9707-9EF46E322829}"

DocFx.AspNetCore.ServerSentEvents/articles/advanced.md renamed to docs/articles/advanced.md

File renamed without changes.

0 commit comments

Comments
 (0)