Skip to content

Commit 4644f24

Browse files
committed
updates
1 parent d4aa876 commit 4644f24

45 files changed

Lines changed: 23131 additions & 224 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎book.js‎

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ function playground_text(playground, hidden = true) {
449449
var sidebar = document.getElementById("sidebar");
450450
var sidebarLinks = document.querySelectorAll('#sidebar a');
451451
var sidebarToggleButton = document.getElementById("sidebar-toggle");
452+
var sidebarToggleAnchor = document.getElementById("sidebar-toggle-anchor");
452453
var sidebarResizeHandle = document.getElementById("sidebar-resize-handle");
453454
var firstContact = null;
454455

@@ -475,22 +476,16 @@ function playground_text(playground, hidden = true) {
475476
}
476477

477478
// Toggle sidebar
478-
sidebarToggleButton.addEventListener('click', function sidebarToggle() {
479-
if (body.classList.contains("sidebar-hidden")) {
479+
sidebarToggleAnchor.addEventListener('change', function sidebarToggle() {
480+
if (sidebarToggleAnchor.checked) {
480481
var current_width = parseInt(
481482
document.documentElement.style.getPropertyValue('--sidebar-width'), 10);
482483
if (current_width < 150) {
483484
document.documentElement.style.setProperty('--sidebar-width', '150px');
484485
}
485486
showSidebar();
486-
} else if (body.classList.contains("sidebar-visible")) {
487-
hideSidebar();
488487
} else {
489-
if (getComputedStyle(sidebar)['transform'] === 'none') {
490-
hideSidebar();
491-
} else {
492-
showSidebar();
493-
}
488+
hideSidebar();
494489
}
495490
});
496491

‎configuration.html‎

Lines changed: 225 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,225 @@
1+
<!DOCTYPE HTML>
2+
<html lang="en" class="light sidebar-visible" dir="ltr">
3+
<head>
4+
<!-- Book generated using mdBook -->
5+
<meta charset="UTF-8">
6+
<title>Configuration - Light Portal Documentation</title>
7+
8+
9+
<!-- Custom HTML head -->
10+
11+
<meta name="description" content="">
12+
<meta name="viewport" content="width=device-width, initial-scale=1">
13+
<meta name="theme-color" content="#ffffff">
14+
15+
<link rel="icon" href="favicon.svg">
16+
<link rel="shortcut icon" href="favicon.png">
17+
<link rel="stylesheet" href="css/variables.css">
18+
<link rel="stylesheet" href="css/general.css">
19+
<link rel="stylesheet" href="css/chrome.css">
20+
<link rel="stylesheet" href="css/print.css" media="print">
21+
22+
<!-- Fonts -->
23+
<link rel="stylesheet" href="FontAwesome/css/font-awesome.css">
24+
<link rel="stylesheet" href="fonts/fonts.css">
25+
26+
<!-- Highlight.js Stylesheets -->
27+
<link rel="stylesheet" href="highlight.css">
28+
<link rel="stylesheet" href="tomorrow-night.css">
29+
<link rel="stylesheet" href="ayu-highlight.css">
30+
31+
<!-- Custom theme stylesheets -->
32+
33+
34+
<!-- Provide site root to javascript -->
35+
<script>
36+
var path_to_root = "";
37+
var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "navy" : "light";
38+
</script>
39+
<!-- Start loading toc.js asap -->
40+
<script src="toc.js"></script>
41+
</head>
42+
<body>
43+
<div id="body-container">
44+
<!-- Work around some values being stored in localStorage wrapped in quotes -->
45+
<script>
46+
try {
47+
var theme = localStorage.getItem('mdbook-theme');
48+
var sidebar = localStorage.getItem('mdbook-sidebar');
49+
50+
if (theme.startsWith('"') && theme.endsWith('"')) {
51+
localStorage.setItem('mdbook-theme', theme.slice(1, theme.length - 1));
52+
}
53+
54+
if (sidebar.startsWith('"') && sidebar.endsWith('"')) {
55+
localStorage.setItem('mdbook-sidebar', sidebar.slice(1, sidebar.length - 1));
56+
}
57+
} catch (e) { }
58+
</script>
59+
60+
<!-- Set the theme before any content is loaded, prevents flash -->
61+
<script>
62+
var theme;
63+
try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { }
64+
if (theme === null || theme === undefined) { theme = default_theme; }
65+
const html = document.documentElement;
66+
html.classList.remove('light')
67+
html.classList.add(theme);
68+
html.classList.add("js");
69+
</script>
70+
71+
<input type="checkbox" id="sidebar-toggle-anchor" class="hidden">
72+
73+
<!-- Hide / unhide sidebar before it is displayed -->
74+
<script>
75+
var sidebar = null;
76+
var sidebar_toggle = document.getElementById("sidebar-toggle-anchor");
77+
if (document.body.clientWidth >= 1080) {
78+
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
79+
sidebar = sidebar || 'visible';
80+
} else {
81+
sidebar = 'hidden';
82+
}
83+
sidebar_toggle.checked = sidebar === 'visible';
84+
html.classList.remove('sidebar-visible');
85+
html.classList.add("sidebar-" + sidebar);
86+
</script>
87+
88+
<nav id="sidebar" class="sidebar" aria-label="Table of contents">
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>
94+
<div id="sidebar-resize-handle" class="sidebar-resize-handle">
95+
<div class="sidebar-resize-indicator"></div>
96+
</div>
97+
</nav>
98+
99+
<div id="page-wrapper" class="page-wrapper">
100+
101+
<div class="page">
102+
<div id="menu-bar-hover-placeholder"></div>
103+
<div id="menu-bar" class="menu-bar sticky">
104+
<div class="left-buttons">
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">
106+
<i class="fa fa-bars"></i>
107+
</label>
108+
<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">
109+
<i class="fa fa-paint-brush"></i>
110+
</button>
111+
<ul id="theme-list" class="theme-popup" aria-label="Themes" role="menu">
112+
<li role="none"><button role="menuitem" class="theme" id="light">Light</button></li>
113+
<li role="none"><button role="menuitem" class="theme" id="rust">Rust</button></li>
114+
<li role="none"><button role="menuitem" class="theme" id="coal">Coal</button></li>
115+
<li role="none"><button role="menuitem" class="theme" id="navy">Navy</button></li>
116+
<li role="none"><button role="menuitem" class="theme" id="ayu">Ayu</button></li>
117+
</ul>
118+
<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">
119+
<i class="fa fa-search"></i>
120+
</button>
121+
</div>
122+
123+
<h1 class="menu-title">Light Portal Documentation</h1>
124+
125+
<div class="right-buttons">
126+
<a href="print.html" title="Print this book" aria-label="Print this book">
127+
<i id="print-button" class="fa fa-print"></i>
128+
</a>
129+
130+
</div>
131+
</div>
132+
133+
<div id="search-wrapper" class="hidden">
134+
<form id="searchbar-outer" class="searchbar-outer">
135+
<input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
136+
</form>
137+
<div id="searchresults-outer" class="searchresults-outer hidden">
138+
<div id="searchresults-header" class="searchresults-header"></div>
139+
<ul id="searchresults">
140+
</ul>
141+
</div>
142+
</div>
143+
144+
<!-- Apply ARIA attributes after the sidebar and the sidebar toggle button are added to the DOM -->
145+
<script>
146+
document.getElementById('sidebar-toggle').setAttribute('aria-expanded', sidebar === 'visible');
147+
document.getElementById('sidebar').setAttribute('aria-hidden', sidebar !== 'visible');
148+
Array.from(document.querySelectorAll('#sidebar a')).forEach(function(link) {
149+
link.setAttribute('tabIndex', sidebar === 'visible' ? 0 : -1);
150+
});
151+
</script>
152+
153+
<div id="content" class="content">
154+
<main>
155+
<h1 id="configuration"><a class="header" href="#configuration">Configuration</a></h1>
156+
157+
</main>
158+
159+
<nav class="nav-wrapper" aria-label="Page navigation">
160+
<!-- Mobile navigation buttons -->
161+
<a rel="prev" href="implementation/services.html" class="mobile-nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left">
162+
<i class="fa fa-angle-left"></i>
163+
</a>
164+
165+
<a rel="next prefetch" href="config/light-gateway.html" class="mobile-nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
166+
<i class="fa fa-angle-right"></i>
167+
</a>
168+
169+
<div style="clear: both"></div>
170+
</nav>
171+
</div>
172+
</div>
173+
174+
<nav class="nav-wide-wrapper" aria-label="Page navigation">
175+
<a rel="prev" href="implementation/services.html" class="nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left">
176+
<i class="fa fa-angle-left"></i>
177+
</a>
178+
179+
<a rel="next prefetch" href="config/light-gateway.html" class="nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
180+
<i class="fa fa-angle-right"></i>
181+
</a>
182+
</nav>
183+
184+
</div>
185+
186+
<!-- Livereload script (if served using the cli tool) -->
187+
<script>
188+
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
189+
const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload";
190+
const socket = new WebSocket(wsAddress);
191+
socket.onmessage = function (event) {
192+
if (event.data === "reload") {
193+
socket.close();
194+
location.reload();
195+
}
196+
};
197+
198+
window.onbeforeunload = function() {
199+
socket.close();
200+
}
201+
</script>
202+
203+
204+
205+
<script>
206+
window.playground_copyable = true;
207+
</script>
208+
209+
210+
<script src="elasticlunr.min.js"></script>
211+
<script src="mark.min.js"></script>
212+
<script src="searcher.js"></script>
213+
214+
<script src="clipboard.min.js"></script>
215+
<script src="highlight.js"></script>
216+
<script src="book.js"></script>
217+
218+
<!-- Custom JS scripts -->
219+
<script src="mermaid.min.js"></script>
220+
<script src="mermaid-init.js"></script>
221+
222+
223+
</div>
224+
</body>
225+
</html>

‎css/chrome.css‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,11 +421,14 @@ ul#searchresults span.teaser em {
421421
color: var(--sidebar-fg);
422422
}
423423
.sidebar-iframe-inner {
424+
--padding: 10px;
425+
424426
background-color: var(--sidebar-bg);
425-
color: var(--sidebar-fg);
426-
padding: 10px 10px;
427+
padding: var(--padding);
427428
margin: 0;
428429
font-size: 1.4rem;
430+
color: var(--sidebar-fg);
431+
min-height: calc(100vh - var(--padding) * 2);
429432
}
430433
.sidebar-iframe-outer {
431434
border: none;

‎css/variables.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
--content-max-width: 750px;
1010
--menu-bar-height: 50px;
1111
--mono-font: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace;
12-
--code-font-size: 0.875em /* please adjust the ace font size accordingly in editor.js */
12+
--code-font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */
1313
}
1414

1515
/* Themes */

0 commit comments

Comments
 (0)