File tree Expand file tree Collapse file tree 4 files changed +77
-25
lines changed Expand file tree Collapse file tree 4 files changed +77
-25
lines changed Original file line number Diff line number Diff line change 1
- .demo-sidebar .demo-title {
2
- font-size : var (--pst-sidebar-header-font-size );
3
- font-weight : var (--pst-sidebar-header-font-weight );
4
- margin-bottom : 0.5rem ;
5
- }
6
-
1
+ /* index */
7
2
table .indextable tr .cap {
8
3
background-color : var (--pst-color-on-background ) !important ;
9
4
}
5
+
6
+ /* demo */
7
+ # demo-sidebar {
8
+ margin : 0 ;
9
+ }
10
+
11
+ # demo-sidebar .demo-app {
12
+ display : inline;
13
+ display : flex;
14
+ flex-direction : row;
15
+ align-items : baseline;
16
+ flex-wrap : wrap;
17
+ margin : 0.75rem 0.25rem 0 0.25rem ;
18
+ }
19
+
20
+ .demo-app > * {
21
+ flex : 1 auto;
22
+ white-space : nowrap;
23
+ }
24
+
25
+ # demo-sidebar .admonition-title ::after {
26
+ display : none;
27
+ }
28
+
29
+ # demo-sidebar .admonition-title {
30
+ padding-left : 0.75rem ;
31
+ }
Original file line number Diff line number Diff line change 1
- < div class ="demo-sidebar ">
2
- < p class ="demo-title " role ="heading " aria-level ="1 ">
3
- Try Jupyter Widgets < strong > Now</ strong >
1
+ < div id ="demo-sidebar " class ="admonition warning ">
2
+ < p class ="demo-title admonition-title " role ="heading " aria-level ="1 ">
3
+ < img src ="https://jupyterlite.readthedocs.io/en/latest/_static/icon.svg " width ="16 " />
4
+ Try Jupyter Widgets
4
5
</ p >
5
6
6
- < div class ="demo-app btn-group btn-group-toggle " data-toggle =" buttons ">
7
- < label class =" btn btn-secondary active ">
7
+ < div class ="demo-app ">
8
+ < label title =" Try Widgets in a multi-document UI ">
8
9
< input
9
10
type ="radio "
10
11
name ="demo-app "
11
12
autocomplete ="off "
12
13
checked
13
- title ="Lab "
14
14
value ="{{ pathto('try/lab/index') }}?path=Widget%20List.ipynb "
15
15
>
16
16
< i class ="fas fa-flask "> </ i > Lab
17
17
</ label >
18
- < label class =" btn btn-secondary ">
18
+ < label title =" Try Widgets in a single-document UI ">
19
19
< input
20
20
type ="radio "
21
21
name ="demo-app "
22
- title =" Notebook "
22
+ autocomplete =" off "
23
23
value ="{{ pathto('try/retro/index') }}?path=Widget%20List.ipynb "
24
24
>
25
25
< i class ="fas fa-book "> </ i > Notebook
26
26
</ label >
27
+ < a
28
+ href ="{{ pathto('try/lab/index') }}?path=Widget%20List.ipynb "
29
+ class ="btn btn-primary "
30
+ target ="_blank "
31
+ title ="Try Jupyter Widgets in your browser. "
32
+ id ="demo-button "
33
+ >
34
+ < i class ="fas fa-play "> </ i >
35
+ Try Now
36
+ </ a >
27
37
</ div >
28
38
29
- < a
30
- href ="{{ pathto('try/lab/index') }}?path=Widget%20List.ipynb "
31
- class ="btn btn-primary "
32
- target ="_blank "
33
- title ="Try Jupyter Widgets in your browser. "
34
- id ="demo-button "
35
- >
36
- < i class ="fas fa-play "> </ i >
37
- Try Now
38
- </ a >
39
39
40
40
< script > $ ( function ( ) {
41
41
$ ( '.demo-app input' ) . on ( 'change' , ( event ) => {
Original file line number Diff line number Diff line change
1
+ < style >
2
+ # bd-docs-nav .toctree-toggle ,
3
+ # bd-docs-nav .toctree-checkbox {
4
+ display : none;
5
+ }
6
+ # bd-docs-nav .toctree-l1 > a {
7
+ font-weight : bold;
8
+ }
9
+ </ style >
10
+
11
+ < nav class ="bd-links " id ="bd-docs-nav " aria-label ="{{ _('Documentation Contents') }} ">
12
+ < div class ="bd-toc-item navbar-nav ">
13
+ <!-- Specify a startdepth of 0 instead of default of 1 -->
14
+ {{ generate_toctree_html(
15
+ "sidebar",
16
+ startdepth=0,
17
+ show_nav_level=4,
18
+ maxdepth=4,
19
+ collapse=False,
20
+ includehidden=True,
21
+ titles_only=False
22
+ ) }}
23
+ </ div >
24
+ </ nav >
Original file line number Diff line number Diff line change @@ -181,10 +181,16 @@ def setup(app):
181
181
}
182
182
183
183
html_sidebars = {
184
+ "index" : [
185
+ "demo.html" ,
186
+ "search-field.html" ,
187
+ "sidebar-nav-bs-index.html" ,
188
+ "sidebar-ethical-ads.html" ,
189
+ ],
184
190
"**" : [
185
191
"search-field.html" ,
186
- "demo.html" ,
187
192
"sidebar-nav-bs.html" ,
193
+ "demo.html" ,
188
194
"sidebar-ethical-ads.html" ,
189
195
]
190
196
}
You can’t perform that action at this time.
0 commit comments