File tree Expand file tree Collapse file tree 10 files changed +23
-16
lines changed
theme/sphinx_book_theme/components Expand file tree Collapse file tree 10 files changed +23
-16
lines changed Original file line number Diff line number Diff line change 63
63
pytest --durations=10 --cov=sphinx_book_theme --cov-report=xml --cov-report=term-missing
64
64
65
65
# Only upload to codecov on pull requests so that we don't trigger rate limit blocks
66
+ # Disabled for now with false &&
66
67
- name : Upload to Codecov
67
- if : matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9 && matrix.sphinx == '~=7.0' && github.repository == 'executablebooks/sphinx-book-theme' && github.event_name == 'pull_request'
68
+ if : false && matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9 && matrix.sphinx == '~=7.0' && github.repository == 'executablebooks/sphinx-book-theme' && github.event_name == 'pull_request'
68
69
69
70
with :
70
71
name : ebp-sbt-pytests-py3.7
@@ -111,7 +112,7 @@ jobs:
111
112
text = Path("./warnings.txt").read_text().strip()
112
113
expected_warning_patterns = [r"kitchen\-sink", r"urllib/parse\.py", r"Glyph 10024 .*? missing from current font"]
113
114
print("\n=== Sphinx Warnings ===\n\n" + text) # Print just for reference so we can look at the logs
114
- unexpected = [l for l in text.splitlines() if not any(re.search(p, ii ) for p in expected_warning_patterns)]
115
+ unexpected = [l for l in text.splitlines() if not any(re.search(p, l ) for p in expected_warning_patterns)]
115
116
assert len(unexpected) == 0, unexpected
116
117
117
118
- name : Audit with Lighthouse
Original file line number Diff line number Diff line change 187
187
"http://someurl/release" , # This is a fake link
188
188
"https://doi.org" , # These don't resolve properly and cause SSL issues
189
189
]
190
-
190
+ linkcheck_exclude_documents = [ "changelog" ]
191
191
192
192
# -- Download latest theme elements page from PyData -----------------------------
193
193
Original file line number Diff line number Diff line change @@ -301,8 +301,10 @@ An admonition with a sidenote defined in the admonition[^snam1] and another defi
301
301
These aren't theme-specific, but we still show below to make sure they work.
302
302
303
303
::::{note} Here's a note!
304
- :::{tip} And a tip!
305
- :::
304
+
305
+ ``` {tip} And a tip!
306
+ ```
307
+
306
308
::::
307
309
308
310
## MyST Markdown elements
Original file line number Diff line number Diff line change @@ -81,11 +81,13 @@ doc = [
81
81
test = [
82
82
" beautifulsoup4" ,
83
83
" coverage" ,
84
+ " defusedxml" ,
84
85
" myst-nb" ,
85
86
" pytest" ,
86
87
" pytest-cov" ,
87
88
" pytest-regressions" ,
88
89
" sphinx_thebe" ,
90
+ " pydata-sphinx-theme>=0.15.2"
89
91
]
90
92
91
93
[project .entry-points ]
Original file line number Diff line number Diff line change 15
15
* Sidebar toggle over-rides for PST
16
16
*/
17
17
// Primary toggle is always visible
18
- label .sidebar-toggle.primary-toggle {
18
+ button .sidebar-toggle.primary-toggle {
19
19
@media (min-width : $breakpoint-md ) {
20
20
display : inline-block ;
21
21
}
@@ -25,7 +25,7 @@ label.sidebar-toggle.primary-toggle {
25
25
}
26
26
27
27
// Secondary toggle mimics behavior of "persistent header" div of PST
28
- label .sidebar-toggle.secondary-toggle {
28
+ button .sidebar-toggle.secondary-toggle {
29
29
@media (min-width : $breakpoint-lg ) {
30
30
display : none ;
31
31
}
Original file line number Diff line number Diff line change 4
4
5
5
// Turn these off because we'll show it in the article header
6
6
// The primary sidebar toggle
7
- label .sidebar-toggle {
7
+ button .sidebar-toggle {
8
8
display : none ;
9
9
}
10
10
}
Original file line number Diff line number Diff line change 36
36
// It is shown by default, and hidden with a click.
37
37
// Mobile behavior is defined in the pydata sphinx theme
38
38
@media (min-width : $breakpoint-lg ) {
39
- input #__primary :checked ~ .bd-container .bd-sidebar-primary {
39
+ input #pst-primary-sidebar-checkbox :checked
40
+ ~ .bd-container
41
+ .bd-sidebar-primary {
40
42
margin-left : - $sidebar-primary-width-widescreen ;
41
43
visibility : hidden ;
42
44
opacity : 0 ;
Original file line number Diff line number Diff line change 1
- < label class ="sidebar-toggle primary-toggle btn btn-sm " for =" __primary " title ="Toggle primary sidebar " data-bs-placement ="bottom " data-bs-toggle ="tooltip ">
1
+ < button class ="sidebar-toggle primary-toggle btn btn-sm " title ="Toggle primary sidebar " data-bs-placement ="bottom " data-bs-toggle ="tooltip ">
2
2
< span class ="fa-solid fa-bars "> </ span >
3
- </ label >
3
+ </ button >
Original file line number Diff line number Diff line change 1
1
{# The in-page Table of Contents -#}
2
2
{% set page_toc = generate_toc_html() -%}
3
3
{% if page_toc -%}
4
- < label class ="sidebar-toggle secondary-toggle btn btn-sm " for =" __secondary " title ="Toggle secondary sidebar " data-bs-placement ="bottom " data-bs-toggle ="tooltip ">
4
+ < button class ="sidebar-toggle secondary-toggle btn btn-sm " title ="Toggle secondary sidebar " data-bs-placement ="bottom " data-bs-toggle ="tooltip ">
5
5
< span class ="fa-solid fa-list "> </ span >
6
- </ label >
6
+ </ button >
7
7
{%- endif %}
Original file line number Diff line number Diff line change 1
- < div class ="bd-header-article ">
1
+ < div class ="bd-header-article d-print-none ">
2
2
< div class ="header-article-items header-article__inner ">
3
3
< div class ="header-article-items__start ">
4
4
< div class ="header-article-item ">
5
- < label class ="sidebar-toggle primary-toggle btn btn-sm " data-bs-placement ="bottom " data-bs-toggle ="tooltip " for =" __primary " title ="Toggle primary sidebar ">
5
+ < button class ="sidebar-toggle primary-toggle btn btn-sm " data-bs-placement ="bottom " data-bs-toggle ="tooltip " title ="Toggle primary sidebar ">
6
6
< span class ="fa-solid fa-bars ">
7
7
</ span >
8
- </ label >
8
+ </ button >
9
9
</ div >
10
10
</ div >
11
11
< div class ="header-article-items__end ">
You can’t perform that action at this time.
0 commit comments