Skip to content

Commit f474f6f

Browse files
committed
Include jQuery 3.6.1 to fix the lack of RTD injection
Also includes a fix for the font-size in the RTD injection.
1 parent 8dec15e commit f474f6f

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

doc/css/extra.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
.hidden-warning {
22
display: none
33
}
4+
5+
/* The Read the Docs flyout is formatted with a font-size that is 90% of the
6+
body's. Material for MkDocs has a body font-size that is 0.5rem. This body
7+
font-size will result in the flyout having a font-size of 0.7rem, consistent
8+
with the font-size of other elements in the theme.
9+
*/
10+
body {
11+
font-size: 0.777778rem;
12+
}

mkdocs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ extra_css:
1717
- css/extra.css
1818
extra_javascript:
1919
- js/searchhack.js
20+
# Read the Docs requires JQuery for its JavaScript code to inject the flyout
21+
# menu. Material for MkDocs does not come with JQuery.
22+
- 'https://code.jquery.com/jquery-3.6.1.min.js'
2023

2124
nav:
2225
- Home: README.md

0 commit comments

Comments
 (0)