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 */
72table .indextable tr .cap {
83 background-color : var (--pst-color-on-background ) !important ;
94}
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
45 </ p >
56
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 ">
89 < input
910 type ="radio "
1011 name ="demo-app "
1112 autocomplete ="off "
1213 checked
13- title ="Lab "
1414 value ="{{ pathto('try/lab/index') }}?path=Widget%20List.ipynb "
1515 >
1616 < i class ="fas fa-flask "> </ i > Lab
1717 </ label >
18- < label class =" btn btn-secondary ">
18+ < label title =" Try Widgets in a single-document UI ">
1919 < input
2020 type ="radio "
2121 name ="demo-app "
22- title =" Notebook "
22+ autocomplete =" off "
2323 value ="{{ pathto('try/retro/index') }}?path=Widget%20List.ipynb "
2424 >
2525 < i class ="fas fa-book "> </ i > Notebook
2626 </ 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 >
2737 </ div >
2838
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 >
3939
4040 < script > $ ( function ( ) {
4141 $ ( '.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):
181181}
182182
183183html_sidebars = {
184+ "index" : [
185+ "demo.html" ,
186+ "search-field.html" ,
187+ "sidebar-nav-bs-index.html" ,
188+ "sidebar-ethical-ads.html" ,
189+ ],
184190 "**" : [
185191 "search-field.html" ,
186- "demo.html" ,
187192 "sidebar-nav-bs.html" ,
193+ "demo.html" ,
188194 "sidebar-ethical-ads.html" ,
189195 ]
190196}
You can’t perform that action at this time.
0 commit comments