fork/numbat
git clone https://git.julia.blue/fork/numbat
ae3e7f0
master
1<!DOCTYPE HTML> 2<html lang="{{ language }}" class="{{ default_theme }}" dir="{{ text_direction }}"> 3 <head> 4 <!-- Book generated using mdBook --> 5 <meta charset="UTF-8"> 6 <title>{{ title }}</title> 7 {{#if is_print }} 8 <meta name="robots" content="noindex"> 9 {{/if}} 10 {{#if base_url}} 11 <base href="{{ base_url }}"> 12 {{/if}} 13 14 15 <!-- Custom HTML head --> 16 {{> head}} 17 18 <meta name="description" content="{{ description }}"> 19 <meta name="viewport" content="width=device-width, initial-scale=1"> 20 <meta name="theme-color" content="#ffffff"> 21 22 {{#if favicon_svg}} 23 <link rel="icon" href="{{ path_to_root }}favicon.svg"> 24 {{/if}} 25 {{#if favicon_png}} 26 <link rel="shortcut icon" href="{{ path_to_root }}favicon.png"> 27 {{/if}} 28 <link rel="stylesheet" href="{{ path_to_root }}css/variables.css"> 29 <link rel="stylesheet" href="{{ path_to_root }}css/general.css"> 30 <link rel="stylesheet" href="{{ path_to_root }}css/chrome.css"> 31 {{#if print_enable}} 32 <link rel="stylesheet" href="{{ path_to_root }}css/print.css" media="print"> 33 {{/if}} 34 35 <!-- Fonts --> 36 <link rel="stylesheet" href="{{ path_to_root }}FontAwesome/css/font-awesome.css"> 37 {{#if copy_fonts}} 38 <link rel="stylesheet" href="{{ path_to_root }}fonts/fonts.css"> 39 {{/if}} 40 41 <!-- Highlight.js Stylesheets --> 42 <link rel="stylesheet" href="{{ path_to_root }}highlight.css"> 43 <link rel="stylesheet" href="{{ path_to_root }}tomorrow-night.css"> 44 <link rel="stylesheet" href="{{ path_to_root }}ayu-highlight.css"> 45 46 <!-- Custom theme stylesheets --> 47 {{#each additional_css}} 48 <link rel="stylesheet" href="{{ ../path_to_root }}{{ this }}"> 49 {{/each}} 50 51 {{#if mathjax_support}} 52 <!-- MathJax --> 53 <script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> 54 {{/if}} 55 </head> 56 <body class="sidebar-visible no-js"> 57 <div id="body-container"> 58 <!-- Provide site root to javascript --> 59 <script> 60 var path_to_root = "{{ path_to_root }}"; 61 var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "{{ preferred_dark_theme }}" : "{{ default_theme }}"; 62 </script> 63 64 <!-- Work around some values being stored in localStorage wrapped in quotes --> 65 <script> 66 try { 67 var theme = localStorage.getItem('mdbook-theme'); 68 var sidebar = localStorage.getItem('mdbook-sidebar'); 69 70 if (theme.startsWith('"') && theme.endsWith('"')) { 71 localStorage.setItem('mdbook-theme', theme.slice(1, theme.length - 1)); 72 } 73 74 if (sidebar.startsWith('"') && sidebar.endsWith('"')) { 75 localStorage.setItem('mdbook-sidebar', sidebar.slice(1, sidebar.length - 1)); 76 } 77 } catch (e) { } 78 </script> 79 80 <!-- Set the theme before any content is loaded, prevents flash --> 81 <script> 82 var theme; 83 try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } 84 if (theme === null || theme === undefined) { theme = default_theme; } 85 var html = document.querySelector('html'); 86 html.classList.remove('{{ default_theme }}') 87 html.classList.add(theme); 88 var body = document.querySelector('body'); 89 body.classList.remove('no-js') 90 body.classList.add('js'); 91 </script> 92 93 <input type="checkbox" id="sidebar-toggle-anchor" class="hidden"> 94 95 <!-- Hide / unhide sidebar before it is displayed --> 96 <script> 97 var body = document.querySelector('body'); 98 var sidebar = null; 99 var sidebar_toggle = document.getElementById("sidebar-toggle-anchor"); 100 if (document.body.clientWidth >= 1080) { 101 try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { } 102 sidebar = sidebar || 'visible'; 103 } else { 104 sidebar = 'hidden'; 105 } 106 sidebar_toggle.checked = sidebar === 'visible'; 107 body.classList.remove('sidebar-visible'); 108 body.classList.add("sidebar-" + sidebar); 109 </script> 110 111 <nav id="sidebar" class="sidebar" aria-label="Table of contents"> 112 <div class="sidebar-scrollbox"> 113 {{#toc}}{{/toc}} 114 </div> 115 <div id="sidebar-resize-handle" class="sidebar-resize-handle"> 116 <div class="sidebar-resize-indicator"></div> 117 </div> 118 </nav> 119 120 <!-- Track and set sidebar scroll position --> 121 <script> 122 var sidebarScrollbox = document.querySelector('#sidebar .sidebar-scrollbox'); 123 sidebarScrollbox.addEventListener('click', function(e) { 124 if (e.target.tagName === 'A') { 125 sessionStorage.setItem('sidebar-scroll', sidebarScrollbox.scrollTop); 126 } 127 }, { passive: true }); 128 var sidebarScrollTop = sessionStorage.getItem('sidebar-scroll'); 129 sessionStorage.removeItem('sidebar-scroll'); 130 if (sidebarScrollTop) { 131 // preserve sidebar scroll position when navigating via links within sidebar 132 sidebarScrollbox.scrollTop = sidebarScrollTop; 133 } else { 134 // scroll sidebar to current active section when navigating via "next/previous chapter" buttons 135 var activeSection = document.querySelector('#sidebar .active'); 136 if (activeSection) { 137 activeSection.scrollIntoView({ block: 'center' }); 138 } 139 } 140 </script> 141 142 <div id="page-wrapper" class="page-wrapper"> 143 144 <div class="page"> 145 {{> header}} 146 <div id="menu-bar-hover-placeholder"></div> 147 <div id="menu-bar" class="menu-bar sticky"> 148 <div class="left-buttons"> 149 <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"> 150 <i class="fa fa-bars"></i> 151 </label> 152 <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"> 153 <i class="fa fa-paint-brush"></i> 154 </button> 155 <ul id="theme-list" class="theme-popup" aria-label="Themes" role="menu"> 156 <li role="none"><button role="menuitem" class="theme" id="light">Light</button></li> 157 <li role="none"><button role="menuitem" class="theme" id="rust">Rust</button></li> 158 <li role="none"><button role="menuitem" class="theme" id="coal">Coal</button></li> 159 <li role="none"><button role="menuitem" class="theme" id="navy">Navy</button></li> 160 <li role="none"><button role="menuitem" class="theme" id="ayu">Ayu</button></li> 161 </ul> 162 {{#if search_enabled}} 163 <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"> 164 <i class="fa fa-search"></i> 165 </button> 166 {{/if}} 167 </div> 168 169 <h1 class="menu-title">{{ book_title }}</h1> 170 171 <div class="right-buttons"> 172 {{#if print_enable}} 173 <a href="{{ path_to_root }}print.html" title="Print this book" aria-label="Print this book"> 174 <i id="print-button" class="fa fa-print"></i> 175 </a> 176 {{/if}} 177 {{#if git_repository_url}} 178 <a href="{{git_repository_url}}" title="Git repository" aria-label="Git repository"> 179 <i id="git-repository-button" class="fa {{git_repository_icon}}"></i> 180 </a> 181 {{/if}} 182 {{#if git_repository_edit_url}} 183 <a href="{{git_repository_edit_url}}" title="Suggest an edit" aria-label="Suggest an edit"> 184 <i id="git-edit-button" class="fa fa-edit"></i> 185 </a> 186 {{/if}} 187 188 </div> 189 </div> 190 191 {{#if search_enabled}} 192 <div id="search-wrapper" class="hidden"> 193 <form id="searchbar-outer" class="searchbar-outer"> 194 <input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header"> 195 </form> 196 <div id="searchresults-outer" class="searchresults-outer hidden"> 197 <div id="searchresults-header" class="searchresults-header"></div> 198 <ul id="searchresults"> 199 </ul> 200 </div> 201 </div> 202 {{/if}} 203 204 <!-- Apply ARIA attributes after the sidebar and the sidebar toggle button are added to the DOM --> 205 <script> 206 document.getElementById('sidebar-toggle').setAttribute('aria-expanded', sidebar === 'visible'); 207 document.getElementById('sidebar').setAttribute('aria-hidden', sidebar !== 'visible'); 208 Array.from(document.querySelectorAll('#sidebar a')).forEach(function(link) { 209 link.setAttribute('tabIndex', sidebar === 'visible' ? 0 : -1); 210 }); 211 </script> 212 213 <div id="content" class="content"> 214 <main> 215 {{{ content }}} 216 </main> 217 218 <nav class="nav-wrapper" aria-label="Page navigation"> 219 <!-- Mobile navigation buttons --> 220 {{#previous}} 221 <a rel="prev" href="{{ path_to_root }}{{link}}" class="mobile-nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left"> 222 <i class="fa fa-angle-left"></i> 223 </a> 224 {{/previous}} 225 226 {{#next}} 227 <a rel="next prefetch" href="{{ path_to_root }}{{link}}" class="mobile-nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right"> 228 <i class="fa fa-angle-right"></i> 229 </a> 230 {{/next}} 231 232 <div style="clear: both"></div> 233 </nav> 234 </div> 235 </div> 236 237 <nav class="nav-wide-wrapper" aria-label="Page navigation"> 238 {{#previous}} 239 <a rel="prev" href="{{ path_to_root }}{{link}}" class="nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left"> 240 <i class="fa fa-angle-left"></i> 241 </a> 242 {{/previous}} 243 244 {{#next}} 245 <a rel="next prefetch" href="{{ path_to_root }}{{link}}" class="nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right"> 246 <i class="fa fa-angle-right"></i> 247 </a> 248 {{/next}} 249 </nav> 250 251 </div> 252 253 {{#if live_reload_endpoint}} 254 <!-- Livereload script (if served using the cli tool) --> 255 <script> 256 const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:'; 257 const wsAddress = wsProtocol + "//" + location.host + "/" + "{{{live_reload_endpoint}}}"; 258 const socket = new WebSocket(wsAddress); 259 socket.onmessage = function (event) { 260 if (event.data === "reload") { 261 socket.close(); 262 location.reload(); 263 } 264 }; 265 266 window.onbeforeunload = function() { 267 socket.close(); 268 } 269 </script> 270 {{/if}} 271 272 {{#if google_analytics}} 273 <!-- Google Analytics Tag --> 274 <script> 275 var localAddrs = ["localhost", "127.0.0.1", ""]; 276 277 // make sure we don't activate google analytics if the developer is 278 // inspecting the book locally... 279 if (localAddrs.indexOf(document.location.hostname) === -1) { 280 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 281 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), 282 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 283 })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); 284 285 ga('create', '{{google_analytics}}', 'auto'); 286 ga('send', 'pageview'); 287 } 288 </script> 289 {{/if}} 290 291 {{#if playground_line_numbers}} 292 <script> 293 window.playground_line_numbers = true; 294 </script> 295 {{/if}} 296 297 {{#if playground_copyable}} 298 <script> 299 window.playground_copyable = true; 300 </script> 301 {{/if}} 302 303 {{#if playground_js}} 304 <script src="{{ path_to_root }}ace.js"></script> 305 <script src="{{ path_to_root }}editor.js"></script> 306 <script src="{{ path_to_root }}mode-rust.js"></script> 307 <script src="{{ path_to_root }}theme-dawn.js"></script> 308 <script src="{{ path_to_root }}theme-tomorrow_night.js"></script> 309 {{/if}} 310 311 {{#if search_js}} 312 <script src="{{ path_to_root }}elasticlunr.min.js"></script> 313 <script src="{{ path_to_root }}mark.min.js"></script> 314 <script src="{{ path_to_root }}searcher.js"></script> 315 {{/if}} 316 317 <script src="{{ path_to_root }}clipboard.min.js"></script> 318 <script src="{{ path_to_root }}highlight.js"></script> 319 <!-- Custom JS scripts --> 320 {{#each additional_js}} 321 <script src="{{ ../path_to_root }}{{this}}"></script> 322 {{/each}} 323 <script src="{{ path_to_root }}book.js"></script> 324 325 {{#if is_print}} 326 {{#if mathjax_support}} 327 <script> 328 window.addEventListener('load', function() { 329 MathJax.Hub.Register.StartupHook('End', function() { 330 window.setTimeout(window.print, 100); 331 }); 332 }); 333 </script> 334 {{else}} 335 <script> 336 window.addEventListener('load', function() { 337 window.setTimeout(window.print, 100); 338 }); 339 </script> 340 {{/if}} 341 {{/if}} 342 343 </div> 344 </body> 345</html>