Skip to content

Commit c00efa9

Browse files
dotMortenMorten Nielsenprathameshnarkhede
authored
Fix Documentation build (#677)
* Fix Documentation build * Update docs/docfx.json Co-authored-by: Prathamesh Narkhede <[email protected]> * Apply suggestions from code review Co-authored-by: Prathamesh Narkhede <[email protected]> * Fix toolkit repo urls --------- Co-authored-by: Morten Nielsen <[email protected]> Co-authored-by: Prathamesh Narkhede <[email protected]>
1 parent a157a9e commit c00efa9

File tree

7 files changed

+29
-19
lines changed

7 files changed

+29
-19
lines changed

.github/workflows/ghpages.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ jobs:
2323
env:
2424
DOCFXVERSION: 2.59.4
2525

26+
- name: Download .NET xrefmap
27+
run: |
28+
mkdir output
29+
Invoke-WebRequest -Uri "https://github.com/dotnet/docfx/raw/main/.xrefmap.json" -OutFile "output/dotnet.xrefmap.json"
30+
2631
- name: Build Documentation
2732
env:
2833
DOCFX_SOURCE_BRANCH_NAME: main

docs/BuildDoc.cmd

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ IF NOT EXIST "%DocFxFolder%\v%DocFXVersion%\docfx.exe" (
1111
powershell -ExecutionPolicy ByPass -command "Expand-Archive -LiteralPath '%DocFxFolder%\docfx_v%DocFXVersion%.zip' -DestinationPath '%DocFxFolder%\v%DocFXVersion%'"
1212
DEL "%DocFxFolder%\docfx_v%DocFXVersion%.zip" /Q
1313
)
14+
IF NOT EXIST "../Output/dotnet.xrefmap.json" (
15+
powershell -ExecutionPolicy ByPass -command "Invoke-WebRequest -Uri "https://github.com/dotnet/docfx/raw/main/.xrefmap.json" -OutFile '../Output/dotnet.xrefmap.json'"
16+
)
17+
1418
REM Build the output site (HTML) from the generated metadata and input files (uses configuration in docfx.json in this folder)
1519
%DocFxFolder%\v%DocFXVersion%\docfx.exe %~dp0\docfx.json
1620
ECHO Fixing API Reference Links
@@ -23,4 +27,4 @@ REM cd %~dp0..\Output\docs_site
2327
REM git init
2428
REM git add .
2529
REM git commit -m "Update doc"
26-
REM git push --force https://github.com/Esri/arcgis-toolkit-dotnet.git main:gh-pages
30+
REM git push --force https://github.com/Esri/arcgis-maps-sdk-dotnet-toolkit.git main:gh-pages

docs/FixApiRefLinks.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function FixApiLinks([string]$path)
77
foreach ($file in $files)
88
{
99
$content = Get-Content -Path $file
10-
$newContent = $content -replace "../(android|ios|uwp|netcore|netstd|netfx)/", ''
10+
$newContent = $content -replace "../(android|ios|uwp|netwin|netstd|netfx)/", ''
1111
$newContent | Set-Content -Path $file
1212
}
1313
}

docs/api/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
**Select your platform:**
44

55
- [.NET Framework (WPF)](netfx/index.md)
6-
- [.NET 6 (WPF, WinUI, MAUI WinUI)](net6/index.html)
6+
- [.NET Windows (WPF, WinUI, MAUI WinUI)](netwin/index.md)
77
- [UWP](uwp/index.md)
88
- [MAUI Android](android/index.md)
99
- [MAUI iOS](ios/index.md)
File renamed without changes.

docs/docfx.json

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"src" : "../src/"
2828
}
2929
],
30-
"dest": "../output/docs/api/net6",
31-
"properties": { "TargetFramework": "net6.0-windows10.0.19041.0" },
30+
"dest": "../Output/docs/api/netwin",
31+
"properties": { "TargetFramework": "net9.0-windows10.0.19041.0" },
3232
"disableGitFeatures": false,
3333
"disableDefaultFilter": false
3434
},
@@ -44,8 +44,8 @@
4444
"src" : "../src/"
4545
}
4646
],
47-
"dest": "../output/docs/api/android",
48-
"properties": { "TargetFramework": "net6.0-android" },
47+
"dest": "../Output/docs/api/android",
48+
"properties": { "TargetFramework": "net9.0-android" },
4949
"filter": "filterConfig.yml",
5050
"disableGitFeatures": false,
5151
"disableDefaultFilter": false
@@ -62,8 +62,8 @@
6262
"src" : "../src/"
6363
}
6464
],
65-
"dest": "../output/docs/api/ios",
66-
"properties": { "TargetFramework": "net6.0-ios" },
65+
"dest": "../Output/docs/api/ios",
66+
"properties": { "TargetFramework": "net9.0-ios" },
6767
"disableGitFeatures": false,
6868
"disableDefaultFilter": false
6969
},
@@ -125,7 +125,7 @@
125125
"_appLogoPath": "images/logo.png",
126126
"_gitContribute": {
127127
"branch": "main",
128-
"apiSpecFolder": "docs/apidoc"
128+
"apiSpecFolder": "docs/api"
129129
}
130130
},
131131
"dest": "../Output/docs_site",
@@ -134,14 +134,15 @@
134134
"template": [
135135
"default", "template-override"
136136
],
137-
"xrefService": [
138-
"https://xref.docs.microsoft.com/query?uid={uid}",
139-
"https://omds.xaml.dev/xrefmap/net.xrefmap.json",
140-
"https://omds.xaml.dev/xrefmap/netstandard.xrefmap.json",
141-
"https://omds.xaml.dev/xrefmap/netwin.xrefmap.json",
142-
"https://omds.xaml.dev/xrefmap/netios.xrefmap.json",
143-
"https://omds.xaml.dev/xrefmap/netandroid.xrefmap.json",
144-
"https://omds.xaml.dev/xrefmap/netuwp.xrefmap.json",
137+
"xref": [
138+
"../Output/dotnet.xrefmap.json",
139+
"https://developers.arcgis.com/net/api-reference/net.xrefmap.yml",
140+
"https://developers.arcgis.com/net/api-reference/netfx.xrefmap.yml",
141+
"https://developers.arcgis.com/net/api-reference/netstandard.xrefmap.yml",
142+
"https://developers.arcgis.com/net/api-reference/netwin.xrefmap.yml",
143+
"https://developers.arcgis.com/net/api-reference/ios.xrefmap.yml",
144+
"https://developers.arcgis.com/net/api-reference/android.xrefmap.yml",
145+
"https://developers.arcgis.com/net/api-reference/uwp.xrefmap.yml",
145146
],
146147
"postProcessors": [],
147148
"markdownEngineName": "markdig",

docs/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
- name: API Reference
66
href: api/index.md
77
- name: GitHub
8-
href: https://github.com/Esri/arcgis-toolkit-dotnet
8+
href: https://github.com/Esri/arcgis-maps-sdk-dotnet-toolkit

0 commit comments

Comments
 (0)