Skip to content

Commit

Permalink
Fix API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikprijck committed Dec 18, 2023
1 parent 487646f commit d928c33
Show file tree
Hide file tree
Showing 12 changed files with 71 additions and 24 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Generate API docs

on:
workflow_dispatch:

push:
branches: ["fix/api-docs"]

permissions:
contents: read

jobs:
generate-docs:
name: Generate API docs
runs-on: windows-latest
environment: 'release'

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.inputs.branch }}

- name: Install Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'

- name: Install .NET
uses: actions/setup-dotnet@v3

- name: Install .NET Android and iOS workload
run: dotnet workload install android ios

- name: Setup NuGet
uses: nuget/setup-nuget@v1

- name: Restore NuGet
run: nuget restore Auth0.OidcClient.All.sln

- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1.1

- name: Build
run: msbuild Auth0.OidcClient.All.sln -t:rebuild -verbosity:diag -property:Configuration=Release

- name: Install DocFX
run: dotnet tool install -g docfx

- name: Build docs
run: ./tools/build-docs.sh
shell: bash

- uses: actions/upload-artifact@v3
with:
name: docs
path: docs
12 changes: 0 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,6 @@ jobs:
nuget pack nuget/Auth0.OidcClient.WinForms.nuspec
nuget pack nuget/Auth0.OidcClient.WPF.nuspec
- name: Install DocFX
run: dotnet tool install -g docfx

- name: Build docs
run: ./tools/build-docs.sh
shell: bash

- uses: actions/upload-artifact@v3
with:
name: docs
path: docs

- uses: actions/upload-artifact@v3
with:
name: drop
Expand Down
4 changes: 2 additions & 2 deletions src/Auth0.OidcClient.Android/docs-source/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"bin/Release/**/Auth0.OidcClient.dll",
"bin/Release/**/Auth0.OidcClient.Core.dll"
],
"cwd": "../"
"src": "../"
}
],
"dest": "api",
Expand All @@ -26,7 +26,7 @@
"bin/Release/**/mscorlib.dll",
"bin/Release/**/System*.dll"
],
"cwd": "../"
"src": "../"
}
]

Expand Down
4 changes: 2 additions & 2 deletions src/Auth0.OidcClient.Android/docs-source/docfx.local.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"bin/Release/**/Auth0.OidcClient.dll",
"bin/Release/**/Auth0.OidcClient.Core.dll"
],
"cwd": "../"
"src": "../"
}
],
"dest": "api",
Expand All @@ -26,7 +26,7 @@
"bin/Release/**/mscorlib.dll",
"bin/Release/**/System*.dll"
],
"cwd": "../"
"src": "../"
}
]

Expand Down
2 changes: 1 addition & 1 deletion src/Auth0.OidcClient.UWP/docs-source/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"bin/Release/**/Auth0.OidcClient.dll",
"bin/Release/**/Auth0.OidcClient.Core.dll"
],
"cwd": "../"
"src": "../"
}
],
"dest": "api",
Expand Down
2 changes: 1 addition & 1 deletion src/Auth0.OidcClient.UWP/docs-source/docfx.local.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"bin/Release/**/Auth0.OidcClient.dll",
"bin/Release/**/Auth0.OidcClient.Core.dll"
],
"cwd": "../"
"src": "../"
}
],
"dest": "api",
Expand Down
2 changes: 1 addition & 1 deletion src/Auth0.OidcClient.WPF/docs-source/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"bin/Release/**/Auth0.OidcClient.dll",
"bin/Release/**/Auth0.OidcClient.Core.dll"
],
"cwd": "../"
"src": "../"
}
],
"dest": "api",
Expand Down
2 changes: 1 addition & 1 deletion src/Auth0.OidcClient.WPF/docs-source/docfx.local.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"bin/Release/**/Auth0.OidcClient.dll",
"bin/Release/**/Auth0.OidcClient.Core.dll"
],
"cwd": "../"
"src": "../"
}
],
"dest": "api",
Expand Down
2 changes: 1 addition & 1 deletion src/Auth0.OidcClient.WinForms/docs-source/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"bin/Release/**/Auth0.OidcClient.dll",
"bin/Release/**/Auth0.OidcClient.Core.dll"
],
"cwd": "../"
"src": "../"
}
],
"dest": "api",
Expand Down
2 changes: 1 addition & 1 deletion src/Auth0.OidcClient.WinForms/docs-source/docfx.local.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"bin/Release/**/Auth0.OidcClient.dll",
"bin/Release/**/Auth0.OidcClient.Core.dll"
],
"cwd": "../"
"src": "../"
}
],
"dest": "api",
Expand Down
2 changes: 1 addition & 1 deletion src/Auth0.OidcClient.iOS/docs-source/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"bin/Release/**/Auth0.OidcClient.dll",
"bin/Release/**/Auth0.OidcClient.Core.dll"
],
"cwd": "../"
"src": "../"
}
],
"dest": "api",
Expand Down
2 changes: 1 addition & 1 deletion src/Auth0.OidcClient.iOS/docs-source/docfx.local.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"bin/Release/**/Auth0.OidcClient.dll",
"bin/Release/**/Auth0.OidcClient.Core.dll"
],
"cwd": "../"
"src": "../"
}
],
"dest": "api",
Expand Down

0 comments on commit d928c33

Please sign in to comment.