File tree 3 files changed +14
-8
lines changed
3 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,10 @@ def read(
79
79
# pygments 2.11.0 introduces a whitespace tag
80
80
for pygment_whitespace in doc_div .select ("pre > span.w" ):
81
81
pygment_whitespace .replace_with (pygment_whitespace .text )
82
+ # something changed in sphinx 8 (or new docutils) to introduce this, although I couldn't find the actual commit,
83
+ # but in any case, it's not important for the regression test
84
+ for clearer_div in doc_div .findAll ("div" , {"class" : "clearer" }):
85
+ clearer_div .decompose ()
82
86
text = doc_div .prettify ()
83
87
# changed in sphinx 7.2
84
88
text = text .replace ('"Link to this' , '"Permalink to this' )
Original file line number Diff line number Diff line change @@ -178,6 +178,8 @@ def test_references_singlehtml(
178
178
# changed in sphinx 7.3
179
179
'="#document-index' : '="index.html#document-index' ,
180
180
'="#document-other' : '="index.html#document-other' ,
181
+ # change in sphinx 8
182
+ 'href="index.html#' : 'href="#' ,
181
183
},
182
184
)
183
185
Original file line number Diff line number Diff line change 29
29
</ a >
30
30
</ h3 >
31
31
< p >
32
- < a class ="reference internal " href ="index.html #document-other/other2 ">
32
+ < a class ="reference internal " href ="#document-other/other2 ">
33
33
< span class ="doc ">
34
34
Other 2 Title
35
35
</ span >
36
36
</ a >
37
37
</ p >
38
38
< p >
39
- < a class ="reference internal " href ="index.html #document-other/other2 ">
39
+ < a class ="reference internal " href ="#document-other/other2 ">
40
40
< span class ="doc ">
41
41
Other 2 Title
42
42
</ span >
43
43
</ a >
44
44
</ p >
45
45
< p >
46
- < a class ="reference internal " href ="index.html #document-other/other2 ">
46
+ < a class ="reference internal " href ="#document-other/other2 ">
47
47
< span class ="std std-doc ">
48
48
Other 2 Title
49
49
</ span >
50
50
</ a >
51
51
</ p >
52
52
< p >
53
- < a class ="reference internal " href ="index.html #title ">
53
+ < a class ="reference internal " href ="#title ">
54
54
< span class ="std std-ref ">
55
55
Title
56
56
</ span >
71
71
</ section >
72
72
</ div >
73
73
< p >
74
- < a class ="reference internal " href ="index.html #document-other/other ">
74
+ < a class ="reference internal " href ="#document-other/other ">
75
75
< span class ="doc ">
76
76
Other Title
77
77
</ span >
78
78
</ a >
79
79
</ p >
80
80
< p >
81
- < a class ="reference internal " href ="index.html #document-other/other ">
81
+ < a class ="reference internal " href ="#document-other/other ">
82
82
< span class ="doc ">
83
83
Other Title
84
84
</ span >
85
85
</ a >
86
86
</ p >
87
87
< p >
88
- < a class ="reference internal " href ="index.html #document-other/other ">
88
+ < a class ="reference internal " href ="#document-other/other ">
89
89
< span class ="std std-doc ">
90
90
Other Title
91
91
</ span >
99
99
</ a >
100
100
</ p >
101
101
< p >
102
- < a class ="reference internal " href ="index.html #other-title ">
102
+ < a class ="reference internal " href ="#other-title ">
103
103
< span class ="std std-ref ">
104
104
Other Title
105
105
</ span >
You can’t perform that action at this time.
0 commit comments