File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 63
63
64
64
# grab mdbook
65
65
# we hardcode linux/amd64 since rust uses a different naming scheme and it's a pain to tran
66
- echo " downloading mdBook-v0.4.34 -${arch} -${target} .${ext} "
66
+ echo " downloading mdBook-v0.4.40 -${arch} -${target} .${ext} "
67
67
set -x
68
- curl -sL -o /tmp/mdbook.${ext} https://github.com/rust-lang/mdBook/releases/download/v0.4.34 /mdBook-v0.4.34 -${arch} -${target} .${ext}
68
+ curl -sL -o /tmp/mdbook.${ext} https://github.com/rust-lang/mdBook/releases/download/v0.4.40 /mdBook-v0.4.40 -${arch} -${target} .${ext}
69
69
${cmd} /tmp/mdbook.${ext}
70
70
chmod +x /tmp/mdbook
71
71
Original file line number Diff line number Diff line change 1
1
.menu-title img {
2
2
vertical-align : bottom;
3
3
}
4
+
5
+ # sidebar-toggle-anchor : checked .page-wrapper {
6
+ margin-inline-start : calc (var (--sidebar-width ) + var (--sidebar-resize-indicator-width ));
7
+ }
Original file line number Diff line number Diff line change 83
83
html .classList .add (' js' );
84
84
</script >
85
85
86
+ <input type =" checkbox" id =" sidebar-toggle-anchor" class =" hidden" >
86
87
<!-- Hide / unhide sidebar before it is displayed -->
87
88
<script type =" text/javascript" >
88
89
var html = document .querySelector (' html' );
89
90
var sidebar = ' hidden' ;
91
+ var sidebar_toggle = document .getElementById (" sidebar-toggle-anchor" );
90
92
if (document .body .clientWidth >= 1080 ) {
91
93
try { sidebar = localStorage .getItem (' mdbook-sidebar' ); } catch (e) { }
92
94
sidebar = sidebar || ' visible' ;
93
95
}
96
+ sidebar_toggle .checked = sidebar === ' visible' ;
94
97
html .classList .remove (' sidebar-visible' );
95
98
html .classList .add (" sidebar-" + sidebar);
96
99
</script >
108
111
<div id =" menu-bar-hover-placeholder" ></div >
109
112
<div id =" menu-bar" class =" menu-bar sticky bordered" >
110
113
<div class =" left-buttons" >
111
- <button id =" sidebar-toggle" class =" icon-button" type = " button " title =" Toggle Table of Contents" aria-label =" Toggle Table of Contents" aria-controls =" sidebar" >
114
+ <label id =" sidebar-toggle" class =" icon-button" for = " sidebar-toggle-anchor " title =" Toggle Table of Contents" aria-label =" Toggle Table of Contents" aria-controls =" sidebar" >
112
115
<i class =" fa fa-bars" ></i >
113
- </button >
116
+ </label >
114
117
<button id =" theme-toggle" class =" icon-button" type =" button" title =" Change theme" aria-label =" Change theme" aria-haspopup =" true" aria-expanded =" false" aria-controls =" theme-list" >
115
118
<i class =" fa fa-paint-brush" ></i >
116
119
</button >
You can’t perform that action at this time.
0 commit comments