Commit 0b59059
fix: preserve XML doc references in generated stdlib pages and add tests
Fix _parse_xml_doc to use inner XML content instead of text-only
extraction, so <see cref>, <paramref>, and <c> tags are properly
converted to markdown backtick/italic notation in generated docs.
Previously these were silently dropped, leaving blank references.
Add 85 pytest tests for generate_stdlib_docs.py covering name mangling
(20 tests), type mapping (17), generic arg splitting (5), XML doc
parsing (12), parameter parsing (7), C# file parsing (9), and markdown
rendering (8). Regenerate all 35 stdlib pages with the fix.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent f65d4bf commit 0b59059
30 files changed
Lines changed: 1050 additions & 459 deletions
File tree
- build_tools
- tests
- docs/stdlib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
230 | 238 | | |
231 | 239 | | |
232 | 240 | | |
233 | | - | |
234 | | - | |
235 | | - | |
| 241 | + | |
236 | 242 | | |
237 | 243 | | |
238 | 244 | | |
239 | 245 | | |
240 | 246 | | |
241 | | - | |
242 | | - | |
243 | | - | |
| 247 | + | |
244 | 248 | | |
245 | 249 | | |
246 | 250 | | |
247 | 251 | | |
248 | 252 | | |
249 | 253 | | |
250 | 254 | | |
251 | | - | |
252 | | - | |
253 | | - | |
| 255 | + | |
254 | 256 | | |
255 | 257 | | |
256 | 258 | | |
| |||
264 | 266 | | |
265 | 267 | | |
266 | 268 | | |
267 | | - | |
268 | | - | |
269 | | - | |
| 269 | + | |
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
276 | | - | |
277 | | - | |
| 275 | + | |
278 | 276 | | |
279 | 277 | | |
280 | 278 | | |
| |||
283 | 281 | | |
284 | 282 | | |
285 | 283 | | |
286 | | - | |
287 | | - | |
288 | | - | |
| 284 | + | |
289 | 285 | | |
290 | 286 | | |
291 | 287 | | |
| |||
0 commit comments