Commit 28491a7
committed
[Mono.Android] Add UpdateExternalDocumentation target
Fixes: dotnet#5200
Context: a7413a2
Context: xamarin/android-api-docs#23
Context: https://review.docs.microsoft.com/en-us/engineering/projects/reference/dotnet/mdoc
Add a new `UpdateExternalDocumentation` target which:
1. *Rebuilds* `src/Mono.Android` with
`$(IncludeAndroidJavadoc)`=True. This produces a
`Mono.Anroid.xml` file containing imported API-30 Javadoc.
This *also* produces the log file
`src/Mono.Android/UpdateExternalDocumentation-{TIME}.binlog`,
which contains the build output for the rebuild.
2. Runs `mdoc update --import Mono.Android.xml --use-docid`,
updating the [**mdoc**(5) documentation][0] within
`external/android-api-docs/docs/Mono.Android/en`
The `--use-docid` flag is needed for integration with the
documentation infrastructure.
Usage:
msbuild /t:UpdateExternalDocumentation src/Mono.Android/Mono.Android.csproj
This process takes ~60 minutes on my machine.
Note: This uses the [mdoc NuGet package][1].
[0]: http://docs.go-mono.com/?link=man%3amdoc(5)
[1]: https://www.nuget.org/packages/mdoc/1 parent 16e0aa2 commit 28491a7
2 files changed
+35
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
10 | 18 | | |
11 | 19 | | |
12 | 20 | | |
| |||
157 | 165 | | |
158 | 166 | | |
159 | 167 | | |
160 | | - | |
| 168 | + | |
161 | 169 | | |
162 | 170 | | |
163 | 171 | | |
| |||
260 | 268 | | |
261 | 269 | | |
262 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
263 | 296 | | |
0 commit comments