|
1 | 1 | <!DOCTYPE HTML> |
2 | | -<html lang="en" class="light" dir="ltr"> |
| 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 | 6 | <title>NixOS specialArgs pattern - Fernglas Manual</title> |
7 | 7 |
|
8 | 8 |
|
9 | 9 | <!-- Custom HTML head --> |
10 | | - |
| 10 | + |
11 | 11 | <meta name="description" content=""> |
12 | 12 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
13 | 13 | <meta name="theme-color" content="#ffffff"> |
|
30 | 30 |
|
31 | 31 | <!-- Custom theme stylesheets --> |
32 | 32 |
|
33 | | - </head> |
34 | | - <body class="sidebar-visible no-js"> |
35 | | - <div id="body-container"> |
| 33 | + |
36 | 34 | <!-- Provide site root to javascript --> |
37 | 35 | <script> |
38 | 36 | var path_to_root = "../"; |
39 | 37 | var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "navy" : "light"; |
40 | 38 | </script> |
41 | | - |
| 39 | + <!-- Start loading toc.js asap --> |
| 40 | + <script src="../toc.js"></script> |
| 41 | + </head> |
| 42 | + <body> |
| 43 | + <div id="body-container"> |
42 | 44 | <!-- Work around some values being stored in localStorage wrapped in quotes --> |
43 | 45 | <script> |
44 | 46 | try { |
|
60 | 62 | var theme; |
61 | 63 | try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } |
62 | 64 | if (theme === null || theme === undefined) { theme = default_theme; } |
63 | | - var html = document.querySelector('html'); |
| 65 | + const html = document.documentElement; |
64 | 66 | html.classList.remove('light') |
65 | 67 | html.classList.add(theme); |
66 | | - var body = document.querySelector('body'); |
67 | | - body.classList.remove('no-js') |
68 | | - body.classList.add('js'); |
| 68 | + html.classList.add("js"); |
69 | 69 | </script> |
70 | 70 |
|
71 | 71 | <input type="checkbox" id="sidebar-toggle-anchor" class="hidden"> |
72 | 72 |
|
73 | 73 | <!-- Hide / unhide sidebar before it is displayed --> |
74 | 74 | <script> |
75 | | - var body = document.querySelector('body'); |
76 | 75 | var sidebar = null; |
77 | 76 | var sidebar_toggle = document.getElementById("sidebar-toggle-anchor"); |
78 | 77 | if (document.body.clientWidth >= 1080) { |
|
82 | 81 | sidebar = 'hidden'; |
83 | 82 | } |
84 | 83 | sidebar_toggle.checked = sidebar === 'visible'; |
85 | | - body.classList.remove('sidebar-visible'); |
86 | | - body.classList.add("sidebar-" + sidebar); |
| 84 | + html.classList.remove('sidebar-visible'); |
| 85 | + html.classList.add("sidebar-" + sidebar); |
87 | 86 | </script> |
88 | 87 |
|
89 | 88 | <nav id="sidebar" class="sidebar" aria-label="Table of contents"> |
90 | | - <div class="sidebar-scrollbox"> |
91 | | - <ol class="chapter"><li class="chapter-item expanded "><a href="../introduction.html"><strong aria-hidden="true">1.</strong> Introduction</a></li><li class="chapter-item expanded "><a href="../deployment/index.html"><strong aria-hidden="true">2.</strong> Deployment</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="../deployment/nixos.html"><strong aria-hidden="true">2.1.</strong> Using NixOS</a></li><li class="chapter-item expanded "><a href="../deployment/container.html"><strong aria-hidden="true">2.2.</strong> Using Containers / Docker</a></li><li class="chapter-item expanded "><a href="../deployment/manual/index.html"><strong aria-hidden="true">2.3.</strong> Manual Setup</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="../deployment/manual/backend.html"><strong aria-hidden="true">2.3.1.</strong> Backend</a></li><li class="chapter-item expanded "><a href="../deployment/manual/frontend.html"><strong aria-hidden="true">2.3.2.</strong> Frontend and Reverse Proxy</a></li></ol></li></ol></li><li class="chapter-item expanded "><a href="../configuration/index.html"><strong aria-hidden="true">3.</strong> Configuration</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="../configuration/bmp-junos.html"><strong aria-hidden="true">3.1.</strong> Junos using BMP</a></li><li class="chapter-item expanded "><a href="../configuration/bgp-bird2.html"><strong aria-hidden="true">3.2.</strong> bird2 using BGP</a></li><li class="chapter-item expanded "><a href="../configuration/routing-instances.html"><strong aria-hidden="true">3.3.</strong> VRF/Routing-Instances</a></li></ol></li><li class="chapter-item expanded "><a href="../appendix/index.html"><strong aria-hidden="true">4.</strong> Appendix</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="../appendix/nixos-specialArgs-pattern.html" class="active"><strong aria-hidden="true">4.1.</strong> NixOS specialArgs pattern</a></li></ol></li></ol> |
92 | | - </div> |
| 89 | + <!-- populated by js --> |
| 90 | + <mdbook-sidebar-scrollbox class="sidebar-scrollbox"></mdbook-sidebar-scrollbox> |
| 91 | + <noscript> |
| 92 | + <iframe class="sidebar-iframe-outer" src="../toc.html"></iframe> |
| 93 | + </noscript> |
93 | 94 | <div id="sidebar-resize-handle" class="sidebar-resize-handle"> |
94 | 95 | <div class="sidebar-resize-indicator"></div> |
95 | 96 | </div> |
96 | 97 | </nav> |
97 | 98 |
|
98 | | - <!-- Track and set sidebar scroll position --> |
99 | | - <script> |
100 | | - var sidebarScrollbox = document.querySelector('#sidebar .sidebar-scrollbox'); |
101 | | - sidebarScrollbox.addEventListener('click', function(e) { |
102 | | - if (e.target.tagName === 'A') { |
103 | | - sessionStorage.setItem('sidebar-scroll', sidebarScrollbox.scrollTop); |
104 | | - } |
105 | | - }, { passive: true }); |
106 | | - var sidebarScrollTop = sessionStorage.getItem('sidebar-scroll'); |
107 | | - sessionStorage.removeItem('sidebar-scroll'); |
108 | | - if (sidebarScrollTop) { |
109 | | - // preserve sidebar scroll position when navigating via links within sidebar |
110 | | - sidebarScrollbox.scrollTop = sidebarScrollTop; |
111 | | - } else { |
112 | | - // scroll sidebar to current active section when navigating via "next/previous chapter" buttons |
113 | | - var activeSection = document.querySelector('#sidebar .active'); |
114 | | - if (activeSection) { |
115 | | - activeSection.scrollIntoView({ block: 'center' }); |
116 | | - } |
117 | | - } |
118 | | - </script> |
119 | | - |
120 | 99 | <div id="page-wrapper" class="page-wrapper"> |
121 | 100 |
|
122 | 101 | <div class="page"> |
123 | | - <div id="menu-bar-hover-placeholder"></div> |
| 102 | + <div id="menu-bar-hover-placeholder"></div> |
124 | 103 | <div id="menu-bar" class="menu-bar sticky"> |
125 | 104 | <div class="left-buttons"> |
126 | 105 | <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"> |
|
0 commit comments