Skip to content

Commit 8bc560c

Browse files
committed
Include OpenAPI types in API Browser, fix docfx logo, enable Google Analytics
1 parent 1d42d68 commit 8bc560c

File tree

3 files changed

+21
-31
lines changed

3 files changed

+21
-31
lines changed

docs/build-dev.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ if (-Not $NoBuild -Or -Not (Test-Path -Path _site)) {
3535
VerifySuccessExitCode
3636

3737
Invoke-Expression ./generate-examples.ps1
38+
} else {
39+
Remove-Item _site/xrefmap.yml -ErrorAction Ignore
3840
}
3941

4042
dotnet tool restore

docs/docfx.json

Lines changed: 12 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "https://raw.githubusercontent.com/dotnet/docfx/main/schemas/docfx.schema.json",
23
"metadata": [
34
{
45
"properties": {
@@ -8,30 +9,21 @@
89
{
910
"files": [
1011
"**/JsonApiDotNetCore.csproj",
11-
"**/JsonApiDotNetCore.Annotations.csproj"
12+
"**/JsonApiDotNetCore.Annotations.csproj",
13+
"**/JsonApiDotNetCore.OpenApi.Swashbuckle.csproj",
14+
"**/JsonApiDotNetCore.OpenApi.Client.NSwag.csproj",
15+
"**/JsonApiDotNetCore.OpenApi.Client.Kiota"
1216
],
1317
"src": "../"
1418
}
1519
],
16-
"dest": "api",
17-
"disableGitFeatures": false
20+
"output": "api"
1821
}
1922
],
2023
"build": {
2124
"content": [
2225
{
23-
"files": [
24-
"api/**.yml",
25-
"api/index.md",
26-
"ext/openapi/index.md",
27-
"getting-started/**.md",
28-
"getting-started/**/toc.yml",
29-
"usage/**.md",
30-
"request-examples/**.md",
31-
"internals/**.md",
32-
"toc.yml",
33-
"*.md"
34-
],
26+
"files": "**.{md|yml}",
3527
"exclude": [
3628
"**/README.md"
3729
]
@@ -44,25 +36,14 @@
4436
]
4537
}
4638
],
47-
"overwrite": [
48-
{
49-
"exclude": [
50-
"obj/**",
51-
"_site/**"
52-
]
53-
}
54-
],
55-
"dest": "_site",
56-
"globalMetadataFiles": [],
57-
"fileMetadataFiles": [],
39+
"output": "_site",
5840
"template": [
5941
"default",
6042
"modern"
6143
],
62-
"postProcessors": [],
63-
"noLangKeyword": false,
64-
"keepFileLink": false,
65-
"cleanupCacheHistory": false,
66-
"disableGitFeatures": false
44+
"globalMetadata": {
45+
"_appLogoPath": "styles/img/favicon.png",
46+
"_googleAnalyticsTagId": "G-78GTGF1FM2"
47+
}
6748
}
6849
}

docs/home/index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@
3131
darkModeStyleSheet.disabled = true;
3232
}
3333
</script>
34+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-78GTGF1FM2"></script>
35+
<script>
36+
window.dataLayer = window.dataLayer || [];
37+
function gtag() { dataLayer.push(arguments); }
38+
gtag('js', new Date());
39+
gtag('config', 'G-78GTGF1FM2');
40+
</script>
3441
</head>
3542
<body>
3643
<div class="container-xl">

0 commit comments

Comments
 (0)