Skip to content

Commit bf2dfd4

Browse files
authored
DOC Fix code syntax highlighting accessibility errors (scikit-learn#34376)
1 parent fa7edde commit bf2dfd4

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
# check_switcher may be set to False if docbuild pipeline fails. See
258258
# https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/version-dropdown.html#configure-switcher-json-url
259259
"check_switcher": True,
260-
"pygments_light_style": "tango",
260+
"pygments_light_style": "sas",
261261
"pygments_dark_style": "monokai",
262262
"logo": {
263263
"alt_text": "scikit-learn homepage",

doc/scss/custom.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88

99
/* Global */
1010

11+
/* Needed to override the pydata sphinx theme's default */
12+
html[data-theme="light"] .highlight pre {
13+
background: #fff;
14+
}
15+
1116
code.literal {
1217
border: 0;
1318
}

0 commit comments

Comments
 (0)