Commit 59accac
committed
[BUGFIX] Make links to special objects prefixable
If we have both an anchor like '.. _demo:' and
a confval of the same name we would get duplicate id's and the links to those two elements could not be distinguished. Sphinx solves this by prefixing all confval links with "confval-".
Therefore, I introduce the possibility of prefixing links to distinguished linkable objects.
related #924
releases: main, 1.01 parent fb690b3 commit 59accac
File tree
229 files changed
+5745
-5305
lines changed- packages
- guides-restructured-text
- resources/template/html/body/directive
- src/RestructuredText
- Directives
- Nodes
- TextRoles
- guides/src
- Compiler/NodeTransformers
- Meta
- Nodes
- Inline
- ReferenceResolvers
- tests/Integration
- tests-full
- bootstrap
- bootstrap-default-subpages-max-1/expected
- bootstrap-default-subpages-max-2/expected
- bootstrap-default-subpages-max-3/expected
- bootstrap-default-subpages/expected
- bootstrap-index/expected
- index/expected
- tests
- anchor
- anchor-link-in-list/expected
- anchor-ref-title-equals-title/expected
- anchor-title-overriden-by-ref-title/expected
- anchor-to-page/expected
- anchor-to-section-relative/expected
- anchor-to-section/expected
- anchor-to-title-on-another-page/expected
- anchor-to-title/expected
- anchor-whitespace/expected
- anchor-within-text/expected
- body-elements
- block-quotes/expected
- citation
- citation-page/expected
- citation-same-page/expected
- citation-unknown/expected
- footnote
- footnote-list/expected
- footnote-named/expected
- footnote-numbered/expected
- footnotes-on-document/expected
- horizontal-line/expected
- line-blocks/expected
- bootstrap
- bootstrap-admonition/expected
- bootstrap-tabs/expected
- class
- class-directive-non-block/expected
- class-directive-sections/expected
- class-directive/expected
- class-in-list/expected
- class-option-directive/expected
- code
- code-block-emphasize/expected
- code-block-empty/expected
- code-block-hightlight/expected
- code-block-lineno/expected
- code-block-with-underscore/expected
- code-with-caption-inline-styles/expected
- code-with-caption-plain/expected
- code-with-underscore/expected
- code-with-whitespace/expected
- literal-block-default-language-php/expected
- literalinclude-with-caption/expected
- literalincludeLineNos/expected
- literalinclude/expected
- parsed-literal-block/expected
- comments
- comment-ends-in-markup/expected
- comment-multiline/expected
- comment-nested/expected
- configuration
- config-project/expected
- config-simple/expected
- confval
- confval-name/expected
- confval-warning
- expected
- input
- directives
- directive-configuration-block/expected
- directive-glossary/expected
- directive-math/expected
- directive-only/expected
- directive-topic/expected
- directive-unkown/expected
- directive-wrap/expected
- include/expected
- role-directive/expected
- sectionauthor/expected
- variables-replace/expected
- youtube/expected
- graphs
- plantuml-external/expected
- Plantuml
- plantuml-inline/expected
- hyperlink-to-anchor/expected
- hyperlink-to-email/expected
- hyperlink-to-page/expected
- subpages
- images
- figure-relative/expected
- subfolder
- image-absolute/expected
- subfolder
- image-relative/expected
- subfolder
- image-target/expected
- include-parts/expected
- index-html-only/expected
- inline-combinations/expected
- input-file/expected
- interlink
- interlink-inventory-not-found/expected
- interlink-inventory-page-unknown/expected
- interlink-inventory-reference-unknown/expected
- interlink-inventory-unknown/expected
- interlink-ref-inventory-unknown/expected
- interlink-to-doc-in-path/expected
- interlink-to-index/expected
- intersphinx-link/expected
- intersphinx-numeric/expected
- last-rendered/expected
- latex
- latex-confval/expected
- latex-index/expected
- lists
- big-numbers/expected
- definition-lists/expected
- field-list-empty-lines/expected
- list-warning/expected
- list-with-code/expected
- lists-hlist/expected
- lists-nested/expected
- numbered-lists/expected
- markdown
- blockquote-md/expected
- code-md/expected
- emphasis-md/expected
- html-inline-md/expected
- html-md/expected
- image-empty-alt-md/expected
- image-md/expected
- index-md/expected
- inline-code-md/expected
- link-md/expected
- link-page-md/expected
- subpages
- lists-md/expected
- readme-md/expected
- sections-md/expected
- meta
- config-file/expected
- meta-data/expected
- meta-title-by-directive/expected
- orphan-without-title/expected
- project-meta-global/expected
- project-meta/expected
- project-title-override-warning/expected
- project-title/expected
- settings/expected
- variables-from-project/expected
- version-from-guides-xml/expected
- numeral-rst/expected
- option/expected
- references
- reference-level-3-relative/expected
- level-1-1/level-2-1
- level-1-2
- reference-level-3/expected
- level-1-1/level-2-1
- level-1-2
- reference-without-space/expected
- sections/expected
- tables
- list-table-directive/expected
- simple-table-error1/expected
- simple-table-with-variable/expected
- table-csv-table-with-content/expected
- table-csv-table-with-header/expected
- table-csv-table-with-markup/expected
- table-csv-table/expected
- table-directive/expected
- text-with-pipe/expected
- toctree
- toctree-caption/expected
- toctree-entry-not-found/expected
- toctree-external-linktargets/expected
- toctree-glob-level-1/expected
- toctree-glob-level-2/expected
- subfolder2
- subfolder
- toctree-glob-level-3/expected
- toctree-level-2/expected
- subfolder2
- subfolder
- toctree-level-3-maxdepth-1/expected
- toctree-level-3-maxdepth-2/expected
- toctree-level-3/expected
- toctree-maxdepth/expected
- toctree-no-duplicates/expected
- toctree-not-included/expected
- toctree-simple/expected
- toctree-titlesonly/expected
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
229 files changed
+5745
-5305
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
63 | 69 | | |
64 | 70 | | |
65 | 71 | | |
| |||
85 | 91 | | |
86 | 92 | | |
87 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
88 | 99 | | |
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | | - | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
49 | 57 | | |
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | | - | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
100 | 106 | | |
101 | 107 | | |
102 | 108 | | |
103 | 109 | | |
104 | 110 | | |
105 | 111 | | |
106 | 112 | | |
| 113 | + | |
107 | 114 | | |
108 | 115 | | |
109 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
66 | 72 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
66 | 72 | | |
67 | 73 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
0 commit comments