fork/helix
git clone https://git.julia.blue/fork/helix
1756ba44
24.07
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"></div> 116 </nav> 117 118 <!-- Track and set sidebar scroll position --> 119 <script> 120 var sidebarScrollbox = document.querySelector('#sidebar .sidebar-scrollbox'); 121 sidebarScrollbox.addEventListener('click', function(e) { 122 if (e.target.tagName === 'A') { 123 sessionStorage.setItem('sidebar-scroll', sidebarScrollbox.scrollTop); 124 } 125 }, { passive: true }); 126 var sidebarScrollTop = sessionStorage.getItem('sidebar-scroll'); 127 sessionStorage.removeItem('sidebar-scroll'); 128 if (sidebarScrollTop) { 129 // preserve sidebar scroll position when navigating via links within sidebar 130 sidebarScrollbox.scrollTop = sidebarScrollTop; 131 } else { 132 // scroll sidebar to current active section when navigating via "next/previous chapter" buttons 133 var activeSection = document.querySelector('#sidebar .active'); 134 if (activeSection) { 135 activeSection.scrollIntoView({ block: 'center' }); 136 } 137 } 138 </script> 139 140 <div id="page-wrapper" class="page-wrapper"> 141 142 <div class="page"> 143 {{> header}} 144 <div id="menu-bar-hover-placeholder"></div> 145 <div id="menu-bar" class="menu-bar sticky"> 146 <div class="left-buttons"> 147 <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"> 148 <i class="fa fa-bars"></i> 149 </label> 150 <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"> 151 <i class="fa fa-paint-brush"></i> 152 </button> 153 <ul id="theme-list" class="theme-popup" aria-label="Themes" role="menu"> 154 <li role="none"><button role="menuitem" class="theme" id="light">Light</button></li> 155 <li role="none"><button role="menuitem" class="theme" id="rust">Rust</button></li> 156 <li role="none"><button role="menuitem" class="theme" id="coal">Coal</button></li> 157 <li role="none"><button role="menuitem" class="theme" id="navy">Navy</button></li> 158 <li role="none"><button role="menuitem" class="theme" id="ayu">Ayu</button></li> 159 <li role="none"><button role="menuitem" class="theme" id="colibri">Colibri</button></li> 160 </ul> 161 {{#if search_enabled}} 162 <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"> 163 <i class="fa fa-search"></i> 164 </button> 165 {{/if}} 166 </div> 167 168 <h1 class="menu-title">{{ book_title }}</h1> 169 170 <div class="right-buttons"> 171 {{#if print_enable}} 172 <a href="{{ path_to_root }}print.html" title="Print this book" aria-label="Print this book"> 173 <i id="print-button" class="fa fa-print"></i> 174 </a> 175 {{/if}} 176 {{#if git_repository_url}} 177 <a href="{{git_repository_url}}" title="Git repository" aria-label="Git repository"> 178 <i id="git-repository-button" class="fa {{git_repository_icon}}"></i> 179 </a> 180 {{/if}} 181 {{#if git_repository_edit_url}} 182 <a href="{{git_repository_edit_url}}" title="Suggest an edit" aria-label="Suggest an edit"> 183 <i id="git-edit-button" class="fa fa-edit"></i> 184 </a> 185 {{/if}} 186 187 </div> 188 </div> 189 190 {{#if search_enabled}} 191 <div id="search-wrapper" class="hidden"> 192 <form id="searchbar-outer" class="searchbar-outer"> 193 <input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header"> 194 </form> 195 <div id="searchresults-outer" class="searchresults-outer hidden"> 196 <div id="searchresults-header" class="searchresults-header"></div> 197 <ul id="searchresults"> 198 </ul> 199 </div> 200 </div> 201 {{/if}} 202 203 <!-- Apply ARIA attributes after the sidebar and the sidebar toggle button are added to the DOM --> 204 <script> 205 document.getElementById('sidebar-toggle').setAttribute('aria-expanded', sidebar === 'visible'); 206 document.getElementById('sidebar').setAttribute('aria-hidden', sidebar !== 'visible'); 207 Array.from(document.querySelectorAll('#sidebar a')).forEach(function(link) { 208 link.setAttribute('tabIndex', sidebar === 'visible' ? 0 : -1); 209 }); 210 </script> 211 212 <div id="content" class="content"> 213 <main> 214 {{{ content }}} 215 </main> 216 217 <nav class="nav-wrapper" aria-label="Page navigation"> 218 <!-- Mobile navigation buttons --> 219 {{#previous}} 220 <a rel="prev" href="{{ path_to_root }}{{link}}" class="mobile-nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left"> 221 <i class="fa fa-angle-left"></i> 222 </a> 223 {{/previous}} 224 225 {{#next}} 226 <a rel="next prefetch" href="{{ path_to_root }}{{link}}" class="mobile-nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right"> 227 <i class="fa fa-angle-right"></i> 228 </a> 229 {{/next}} 230 231 <div style="clear: both"></div> 232 </nav> 233 </div> 234 </div> 235 236 <nav class="nav-wide-wrapper" aria-label="Page navigation"> 237 {{#previous}} 238 <a rel="prev" href="{{ path_to_root }}{{link}}" class="nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left"> 239 <i class="fa fa-angle-left"></i> 240 </a> 241 {{/previous}} 242 243 {{#next}} 244 <a rel="next prefetch" href="{{ path_to_root }}{{link}}" class="nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right"> 245 <i class="fa fa-angle-right"></i> 246 </a> 247 {{/next}} 248 </nav> 249 250 </div> 251 252 {{#if live_reload_endpoint}} 253 <!-- Livereload script (if served using the cli tool) --> 254 <script> 255 const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:'; 256 const wsAddress = wsProtocol + "//" + location.host + "/" + "{{{live_reload_endpoint}}}"; 257 const socket = new WebSocket(wsAddress); 258 socket.onmessage = function (event) { 259 if (event.data === "reload") { 260 socket.close(); 261 location.reload(); 262 } 263 }; 264 265 window.onbeforeunload = function() { 266 socket.close(); 267 } 268 </script> 269 {{/if}} 270 271 {{#if google_analytics}} 272 <!-- Google Analytics Tag --> 273 <script> 274 var localAddrs = ["localhost", "127.0.0.1", ""]; 275 276 // make sure we don't activate google analytics if the developer is 277 // inspecting the book locally... 278 if (localAddrs.indexOf(document.location.hostname) === -1) { 279 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 280 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), 281 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 282 })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); 283 284 ga('create', '{{google_analytics}}', 'auto'); 285 ga('send', 'pageview'); 286 } 287 </script> 288 {{/if}} 289 290 {{#if playground_line_numbers}} 291 <script> 292 window.playground_line_numbers = true; 293 </script> 294 {{/if}} 295 296 {{#if playground_copyable}} 297 <script> 298 window.playground_copyable = true; 299 </script> 300 {{/if}} 301 302 {{#if playground_js}} 303 <script src="{{ path_to_root }}ace.js"></script> 304 <script src="{{ path_to_root }}editor.js"></script> 305 <script src="{{ path_to_root }}mode-rust.js"></script> 306 <script src="{{ path_to_root }}theme-dawn.js"></script> 307 <script src="{{ path_to_root }}theme-tomorrow_night.js"></script> 308 {{/if}} 309 310 {{#if search_js}} 311 <script src="{{ path_to_root }}elasticlunr.min.js"></script> 312 <script src="{{ path_to_root }}mark.min.js"></script> 313 <script src="{{ path_to_root }}searcher.js"></script> 314 {{/if}} 315 316 <script src="{{ path_to_root }}clipboard.min.js"></script> 317 <script src="{{ path_to_root }}highlight.js"></script> 318 <script src="{{ path_to_root }}book.js"></script> 319 320 <!-- Custom JS scripts --> 321 {{#each additional_js}} 322 <script src="{{ ../path_to_root }}{{this}}"></script> 323 {{/each}} 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>