Commit 0e9daee
authored
Don't auto-link to non-text source files in cross-references (#1646)
## Summary
- RDoc's cross-reference system auto-links filenames like `array.c` when
encountered in documentation text, but non-text source files are not
meant to have their own documentation pages, so these links are always
broken (e.g.
https://docs.ruby-lang.org/en/master/extension_rdoc.html#class-library)
- Only suppress auto-linking in `ToHtmlCrossref#link`. Explicit
`rdoc-ref:` links to non-text files (enabled by #1376) continue to work1 parent 8e07d57 commit 0e9daee
File tree
2 files changed
+25
-0
lines changed- lib/rdoc/markup
- test/rdoc/markup
2 files changed
+25
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
162 | 168 | | |
163 | 169 | | |
164 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
390 | 409 | | |
391 | 410 | | |
392 | 411 | | |
| |||
0 commit comments