Commit 441c98d
authored
CI - Fix three separate test failures (a11y, Sphinx dev, Sphinx 7.3) (#2204)
Fixes #2199.
This should also:
- fix the a11y-tests CI check which is currently failing on all new PRs
- fix a warning that occurs whenever Sphinx >= 7.3 is used
- fix a warning that occurs when the latest/dev version of Sphinx is
used
### How to test
Run a contrast checker on the following preview build pages.
Check each page both in **light mode** and **dark mode**:
1. [Read the Docs - PR 2204 - Kitchen Sink -
Tables](https://pydata-sphinx-theme--2204.org.readthedocs.build/en/2204/examples/kitchen-sink/tables.html)
- specifically check "list tables"
2. [Read the Docs - PR 2204 - Kitchen Sink -
Admonitions](https://pydata-sphinx-theme--2204.org.readthedocs.build/en/2204/examples/kitchen-sink/admonitions.html)
- specifically check the following five admonitions: topic, version
added, version changed, deprecated and version removed
### Screenshots
The following two screenshots, one for light mode and one for dark mode,
show the topic admonition (with higher contrast link) above a regular
admonition to show the difference between the regular contrast link
color versus the higher contrast link color.
<img width="746" alt="light mode topic admonition shown next to normal
admonition"
src="https://github.com/user-attachments/assets/6725331f-c107-4345-a056-e21e395353f2"
/>
<img width="746" alt="dark mode topic admonition shown next to normal
admonition"
src="https://github.com/user-attachments/assets/9b4def23-5d68-4dc9-af10-47ad362f431e"
/>
<br/>
<br/>
The following two screenshots, one for light mode and one for dark mode,
show the four different version-related admonitions, which use higher
contrast links, below a warning admonition, which uses regular contrast.
<img width="746" alt="five light mode admonitions shown together, four
of which have higher contrast links"
src="https://github.com/user-attachments/assets/7ab7e1d2-cc05-4b23-a1bb-132eb2aa253f"
/>
<br/>
<br/>
Note that in the version changed admonition (dark mode), the link color
is even higher contrast (teal-300) than the other higher contrast links
(teal-400).
<img width="746" alt="five dark mode admonitions shown together, four of
which have higher contrast links"
src="https://github.com/user-attachments/assets/9941ead6-b038-4de0-b8c8-f92f716bd08c"
/>
<br/>
<br/>
The following two screenshots show the same table in light and dark mode
(all of the links use the higher contrast color).
<img width="746" alt="light mode table with links"
src="https://github.com/user-attachments/assets/22b087fe-facc-4cff-8fe9-6558edff29a8"
/>
<img width="746" alt="dark mode table with links"
src="https://github.com/user-attachments/assets/8796cda5-ebd9-4769-a689-03c2e3bd5870"
/>1 parent 400fdc1 commit 441c98d
File tree
20 files changed
+66
-14
lines changed- .github/workflows
- docs
- community
- src/pydata_sphinx_theme/assets/styles
- abstracts
- components
- content
- sections
- variables
- tests
- sites
- base
- breadcrumbs
- colors
- deprecated
- sidebars
- test_included_toc
- version_switcher
20 files changed
+66
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | | - | |
| 104 | + | |
106 | 105 | | |
107 | | - | |
108 | 106 | | |
109 | 107 | | |
110 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
5 | 10 | | |
6 | 11 | | |
7 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
373 | | - | |
374 | 372 | | |
375 | 373 | | |
376 | 374 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
29 | 36 | | |
30 | 37 | | |
31 | 38 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
| |||
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
36 | 49 | | |
37 | 50 | | |
38 | 51 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
303 | 307 | | |
304 | 308 | | |
305 | 309 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments