1
1
<!DOCTYPE HTML>
2
- < html lang ="en " class ="sidebar-visible no-js light ">
2
+ < html lang ="en " class ="light sidebar-visible" dir =" ltr ">
3
3
< head >
4
4
<!-- Book generated using mdBook -->
5
5
< meta charset ="UTF-8 ">
6
- < title > Introduction - RustPython docs</ title >
7
-
6
+ < title > Page not found - RustPython docs</ title >
7
+ < base href ="/ ">
8
+
9
+
10
+ <!-- Custom HTML head -->
8
11
9
- < meta content ="text/html; charset=utf-8 " http-equiv ="Content-Type ">
10
12
< meta name ="description " content ="">
11
13
< meta name ="viewport " content ="width=device-width, initial-scale=1 ">
12
- < meta name ="theme-color " content ="#ffffff " / >
14
+ < meta name ="theme-color " content ="#ffffff ">
13
15
16
+ < link rel ="icon " href ="favicon.svg ">
14
17
< link rel ="shortcut icon " href ="favicon.png ">
15
18
< link rel ="stylesheet " href ="css/variables.css ">
16
19
< link rel ="stylesheet " href ="css/general.css ">
19
22
20
23
<!-- Fonts -->
21
24
< link rel ="stylesheet " href ="FontAwesome/css/font-awesome.css ">
22
- < link href ="https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800 " rel ="stylesheet " type ="text/css ">
23
- < link href ="https://fonts.googleapis.com/css?family=Source+Code+Pro:500 " rel ="stylesheet " type ="text/css ">
25
+ < link rel ="stylesheet " href ="fonts/fonts.css ">
24
26
25
27
<!-- Highlight.js Stylesheets -->
26
- < link rel ="stylesheet " href ="highlight.css ">
27
- < link rel ="stylesheet " href ="tomorrow-night.css ">
28
- < link rel ="stylesheet " href ="ayu-highlight.css ">
28
+ < link rel ="stylesheet " id =" highlight-css " href ="highlight.css ">
29
+ < link rel ="stylesheet " id =" tomorrow-night-css " href ="tomorrow-night.css ">
30
+ < link rel ="stylesheet " id =" ayu-highlight-css " href ="ayu-highlight.css ">
29
31
30
32
<!-- Custom theme stylesheets -->
31
-
32
33
33
-
34
+
35
+ <!-- Provide site root and default themes to javascript -->
36
+ < script >
37
+ const path_to_root = "" ;
38
+ const default_light_theme = "light" ;
39
+ const default_dark_theme = "navy" ;
40
+ </ script >
41
+ <!-- Start loading toc.js asap -->
42
+ < script src ="toc.js "> </ script >
34
43
</ head >
35
44
< body >
36
- <!-- Provide site root to javascript -->
37
- < script type ="text/javascript ">
38
- var path_to_root = "" ;
39
- var default_theme = window . matchMedia ( "(prefers-color-scheme: dark)" ) . matches ? "light" : "light" ;
40
- </ script >
41
-
45
+ < div id ="body-container ">
42
46
<!-- Work around some values being stored in localStorage wrapped in quotes -->
43
- < script type =" text/javascript " >
47
+ < script >
44
48
try {
45
- var theme = localStorage . getItem ( 'mdbook-theme' ) ;
46
- var sidebar = localStorage . getItem ( 'mdbook-sidebar' ) ;
49
+ let theme = localStorage . getItem ( 'mdbook-theme' ) ;
50
+ let sidebar = localStorage . getItem ( 'mdbook-sidebar' ) ;
47
51
48
52
if ( theme . startsWith ( '"' ) && theme . endsWith ( '"' ) ) {
49
53
localStorage . setItem ( 'mdbook-theme' , theme . slice ( 1 , theme . length - 1 ) ) ;
56
60
</ script >
57
61
58
62
<!-- Set the theme before any content is loaded, prevents flash -->
59
- < script type ="text/javascript ">
60
- var theme ;
63
+ < script >
64
+ const default_theme = window . matchMedia ( "(prefers-color-scheme: dark)" ) . matches ? default_dark_theme : default_light_theme ;
65
+ let theme ;
61
66
try { theme = localStorage . getItem ( 'mdbook-theme' ) ; } catch ( e ) { }
62
67
if ( theme === null || theme === undefined ) { theme = default_theme ; }
63
- var html = document . querySelector ( 'html' ) ;
64
- html . classList . remove ( 'no-js' )
68
+ const html = document . documentElement ;
65
69
html . classList . remove ( 'light' )
66
70
html . classList . add ( theme ) ;
67
- html . classList . add ( 'js' ) ;
71
+ html . classList . add ( "js" ) ;
68
72
</ script >
69
73
74
+ < input type ="checkbox " id ="sidebar-toggle-anchor " class ="hidden ">
75
+
70
76
<!-- Hide / unhide sidebar before it is displayed -->
71
- < script type =" text/javascript " >
72
- var html = document . querySelector ( 'html' ) ;
73
- var sidebar = 'hidden' ;
77
+ < script >
78
+ let sidebar = null ;
79
+ const sidebar_toggle = document . getElementById ( "sidebar-toggle-anchor" ) ;
74
80
if ( document . body . clientWidth >= 1080 ) {
75
81
try { sidebar = localStorage . getItem ( 'mdbook-sidebar' ) ; } catch ( e ) { }
76
82
sidebar = sidebar || 'visible' ;
83
+ } else {
84
+ sidebar = 'hidden' ;
77
85
}
86
+ sidebar_toggle . checked = sidebar === 'visible' ;
78
87
html . classList . remove ( 'sidebar-visible' ) ;
79
88
html . classList . add ( "sidebar-" + sidebar ) ;
80
89
</ script >
81
90
82
91
< nav id ="sidebar " class ="sidebar " aria-label ="Table of contents ">
83
- < div id ="sidebar-scrollbox " class ="sidebar-scrollbox ">
84
- < ol class ="chapter "> < li class ="expanded "> < a href ="intro.html " class ="active "> < strong aria-hidden ="true "> 1.</ strong > Introduction</ a > </ li > < li class ="expanded "> < a href ="writing_functions.html "> < strong aria-hidden ="true "> 2.</ strong > Writing Functions</ a > </ li > </ ol >
92
+ <!-- populated by js -->
93
+ < mdbook-sidebar-scrollbox class ="sidebar-scrollbox "> </ mdbook-sidebar-scrollbox >
94
+ < noscript >
95
+ < iframe class ="sidebar-iframe-outer " src ="toc.html "> </ iframe >
96
+ </ noscript >
97
+ < div id ="sidebar-resize-handle " class ="sidebar-resize-handle ">
98
+ < div class ="sidebar-resize-indicator "> </ div >
85
99
</ div >
86
- < div id ="sidebar-resize-handle " class ="sidebar-resize-handle "> </ div >
87
100
</ nav >
88
101
89
102
< div id ="page-wrapper " class ="page-wrapper ">
90
103
91
104
< div class ="page ">
92
-
93
105
< div id ="menu-bar-hover-placeholder "> </ div >
94
- < div id ="menu-bar " class ="menu-bar sticky bordered ">
106
+ < div id ="menu-bar " class ="menu-bar sticky ">
95
107
< div class ="left-buttons ">
96
- < button id ="sidebar-toggle " class ="icon-button " type =" button " title ="Toggle Table of Contents " aria-label ="Toggle Table of Contents " aria-controls ="sidebar ">
108
+ < 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 ">
97
109
< i class ="fa fa-bars "> </ i >
98
- </ button >
110
+ </ label >
99
111
< 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 ">
100
112
< i class ="fa fa-paint-brush "> </ i >
101
113
</ button >
102
114
< ul id ="theme-list " class ="theme-popup " aria-label ="Themes " role ="menu ">
103
- < li role ="none "> < button role ="menuitem " class ="theme " id ="light "> Light (default)</ button > </ li >
115
+ < li role ="none "> < button role ="menuitem " class ="theme " id ="default_theme "> Auto</ button > </ li >
116
+ < li role ="none "> < button role ="menuitem " class ="theme " id ="light "> Light</ button > </ li >
104
117
< li role ="none "> < button role ="menuitem " class ="theme " id ="rust "> Rust</ button > </ li >
105
118
< li role ="none "> < button role ="menuitem " class ="theme " id ="coal "> Coal</ button > </ li >
106
119
< li role ="none "> < button role ="menuitem " class ="theme " id ="navy "> Navy</ button > </ li >
107
120
< li role ="none "> < button role ="menuitem " class ="theme " id ="ayu "> Ayu</ button > </ li >
108
121
</ ul >
109
-
110
122
< button id ="search-toggle " class ="icon-button " type ="button " title ="Search. (Shortkey: s) " aria-label ="Toggle Searchbar " aria-expanded ="false " aria-keyshortcuts ="S " aria-controls ="searchbar ">
111
123
< i class ="fa fa-search "> </ i >
112
124
</ button >
113
-
114
125
</ div >
115
126
116
127
< h1 class ="menu-title "> RustPython docs</ h1 >
@@ -119,25 +130,23 @@ <h1 class="menu-title">RustPython docs</h1>
119
130
< a href ="print.html " title ="Print this book " aria-label ="Print this book ">
120
131
< i id ="print-button " class ="fa fa-print "> </ i >
121
132
</ a >
122
-
133
+
123
134
</ div >
124
135
</ div >
125
136
126
-
127
137
< div id ="search-wrapper " class ="hidden ">
128
138
< form id ="searchbar-outer " class ="searchbar-outer ">
129
- < input type ="search " name =" search " id ="searchbar " name ="searchbar " placeholder ="Search this book ... " aria-controls ="searchresults-outer " aria-describedby ="searchresults-header ">
139
+ < input type ="search " id ="searchbar " name ="searchbar " placeholder ="Search this book ... " aria-controls ="searchresults-outer " aria-describedby ="searchresults-header ">
130
140
</ form >
131
141
< div id ="searchresults-outer " class ="searchresults-outer hidden ">
132
142
< div id ="searchresults-header " class ="searchresults-header "> </ div >
133
143
< ul id ="searchresults ">
134
144
</ ul >
135
145
</ div >
136
146
</ div >
137
-
138
147
139
148
<!-- Apply ARIA attributes after the sidebar and the sidebar toggle button are added to the DOM -->
140
- < script type =" text/javascript " >
149
+ < script >
141
150
document . getElementById ( 'sidebar-toggle' ) . setAttribute ( 'aria-expanded' , sidebar === 'visible' ) ;
142
151
document . getElementById ( 'sidebar' ) . setAttribute ( 'aria-hidden' , sidebar !== 'visible' ) ;
143
152
Array . from ( document . querySelectorAll ( '#sidebar a' ) ) . forEach ( function ( link ) {
@@ -147,66 +156,45 @@ <h1 class="menu-title">RustPython docs</h1>
147
156
148
157
< div id ="content " class ="content ">
149
158
< main >
150
- < h1 > < a class ="header " href ="#rustpython-docs " id =" rustpython-docs " > RustPython Docs </ a > </ h1 >
151
- < h3 > < a class =" header " href =" #feel-free-to-browse-the-table-of-contents-on-the-right " id =" feel-free-to-browse-the-table-of-contents-on-the-right " > Feel free to browse the table of contents on the right </ a > </ h3 >
159
+ < h1 id =" document-not-found-404 " > < a class ="header " href ="#document-not-found-404 " > Document not found (404) </ a > </ h1 >
160
+ < p > This URL is invalid, sorry. Please use the navigation bar or search to continue. </ p >
152
161
153
162
</ main >
154
163
155
164
< nav class ="nav-wrapper " aria-label ="Page navigation ">
156
165
<!-- Mobile navigation buttons -->
157
-
158
166
159
-
160
- < a rel ="next " href ="writing_functions.html " class ="mobile-nav-chapters next " title ="Next chapter " aria-label ="Next chapter " aria-keyshortcuts ="Right ">
161
- < i class ="fa fa-angle-right "> </ i >
162
- </ a >
163
-
164
167
165
168
< div style ="clear: both "> </ div >
166
169
</ nav >
167
170
</ div >
168
171
</ div >
169
172
170
173
< nav class ="nav-wide-wrapper " aria-label ="Page navigation ">
171
-
172
174
173
-
174
- < a rel ="next " href ="writing_functions.html " class ="nav-chapters next " title ="Next chapter " aria-label ="Next chapter " aria-keyshortcuts ="Right ">
175
- < i class ="fa fa-angle-right "> </ i >
176
- </ a >
177
-
178
175
</ nav >
179
176
180
177
</ div >
181
178
182
-
183
179
184
-
185
180
186
-
187
-
188
-
189
- < script type ="text/javascript ">
190
- window . playpen_copyable = true ;
181
+
182
+ < script >
183
+ window . playground_copyable = true ;
191
184
</ script >
192
-
193
185
194
-
195
186
196
-
197
- < script src ="elasticlunr.min.js " type ="text/javascript " charset ="utf-8 "> </ script >
198
- < script src ="mark.min.js " type ="text/javascript " charset ="utf-8 "> </ script >
199
- < script src ="searcher.js " type ="text/javascript " charset ="utf-8 "> </ script >
200
-
187
+ < script src ="elasticlunr.min.js "> </ script >
188
+ < script src ="mark.min.js "> </ script >
189
+ < script src ="searcher.js "> </ script >
201
190
202
- < script src ="clipboard.min.js " type =" text/javascript " charset =" utf-8 " > </ script >
203
- < script src ="highlight.js " type =" text/javascript " charset =" utf-8 " > </ script >
204
- < script src ="book.js " type =" text/javascript " charset =" utf-8 " > </ script >
191
+ < script src ="clipboard.min.js "> </ script >
192
+ < script src ="highlight.js "> </ script >
193
+ < script src ="book.js "> </ script >
205
194
206
195
<!-- Custom JS scripts -->
207
-
208
196
209
-
210
197
198
+ </ div >
211
199
</ body >
212
200
</ html >
0 commit comments