Skip to content

Commit 79e2ef7

Browse files
committed
Fix github doc generation
1 parent b339a88 commit 79e2ef7

File tree

5 files changed

+15
-2
lines changed

5 files changed

+15
-2
lines changed

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ indent_style = space
3838
# JSON files
3939
[*.json]
4040
indent_size = 2
41+
indent_style = space
4142

4243
[*.ps1]
4344
indent_style = space

.github/workflows/docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
- name: ⚙ Install prerequisites
3131
run: ./init.ps1 -UpgradePrerequisites
3232

33+
- name: 🏗️ Build analyzers
34+
run: dotnet build -c release tools/analyzers.proj
35+
3336
- run: dotnet docfx docfx/docfx.json
3437
name: 📚 Generate documentation
3538

.github/workflows/docs_validate.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
./init.ps1 -UpgradePrerequisites
2626
dotnet --info
2727
shell: pwsh
28+
- name: 🏗️ Build analyzers
29+
run: dotnet build -c release tools/analyzers.proj
2830
- name: 📚 Verify docfx build
2931
run: dotnet docfx docfx/docfx.json --warningsAsErrors --disableGitFeatures
3032
if: runner.os == 'Linux'

global.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"allowPrerelease": false
66
},
77
"msbuild-sdks": {
8-
"Microsoft.Build.NoTargets": "3.7.56"
8+
"Microsoft.Build.NoTargets": "3.7.56",
9+
"Microsoft.Build.Traversal": "4.1.82"
910
}
10-
}
11+
}

tools/analyzers.proj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<Project Sdk="Microsoft.Build.Traversal">
2+
<ItemGroup>
3+
<ProjectReference Include="$(RepoRootPath)src\Microsoft.ServiceHub.Analyzers.CodeFixes\Microsoft.ServiceHub.Analyzers.CodeFixes.csproj" />
4+
<ProjectReference Include="$(RepoRootPath)src\Microsoft.ServiceHub.Analyzers.CSharp\Microsoft.ServiceHub.Analyzers.CSharp.csproj" />
5+
</ItemGroup>
6+
</Project>

0 commit comments

Comments
 (0)