Commit 73476361e1

73476361e1e6bb5672680d169d876647fcd13847

parent: 8b4931ead5

Unsigned

Siriusmart <71584876+Siriusmart@users.noreply.github.com> · 2022-11-28 18:31 UTC

Non english character support

Layout: unified · split

Cargo.lock +24 −33
@@ -181,9 +181,9 @@ dependencies = [
181 181
182[[package]] 182[[package]]
183name = "crossbeam-epoch" 183name = "crossbeam-epoch"
184version = "0.9.12" 184version = "0.9.13"
185source = "registry+https://github.com/rust-lang/crates.io-index" 185source = "registry+https://github.com/rust-lang/crates.io-index"
186checksum = "96bf8df95e795db1a4aca2957ad884a2df35413b24bbeb3114422f3cc21498e8" 186checksum = "01a9af1f4c2ef74bb8aa1f7e19706bc72d03598c8a570bb5de72243c7a9d9d5a"
187dependencies = [ 187dependencies = [
188 "autocfg", 188 "autocfg",
189 "cfg-if", 189 "cfg-if",
@@ -194,9 +194,9 @@ dependencies = [
194 194
195[[package]] 195[[package]]
196name = "crossbeam-utils" 196name = "crossbeam-utils"
197version = "0.8.13" 197version = "0.8.14"
198source = "registry+https://github.com/rust-lang/crates.io-index" 198source = "registry+https://github.com/rust-lang/crates.io-index"
199checksum = "422f23e724af1240ec469ea1e834d87a4b59ce2efe2c6a96256b0c47e2fd86aa" 199checksum = "4fb766fa798726286dbbb842f174001dab8abc7b627a1dd86e0b7222a95d929f"
200dependencies = [ 200dependencies = [
201 "cfg-if", 201 "cfg-if",
202] 202]
@@ -351,7 +351,7 @@ dependencies = [
351 "flume", 351 "flume",
352 "half", 352 "half",
353 "lebe", 353 "lebe",
354 "miniz_oxide 0.6.2", 354 "miniz_oxide",
355 "smallvec", 355 "smallvec",
356 "threadpool", 356 "threadpool",
357] 357]
@@ -367,12 +367,12 @@ dependencies = [
367 367
368[[package]] 368[[package]]
369name = "flate2" 369name = "flate2"
370version = "1.0.24" 370version = "1.0.25"
371source = "registry+https://github.com/rust-lang/crates.io-index" 371source = "registry+https://github.com/rust-lang/crates.io-index"
372checksum = "f82b0f4c27ad9f8bfd1f3208d882da2b09c301bc1c828fd3a00d0216d2fbbff6" 372checksum = "a8a2db397cb1c8772f31494cb8917e48cd1e64f0fa7efac59fbd741a0a8ce841"
373dependencies = [ 373dependencies = [
374 "crc32fast", 374 "crc32fast",
375 "miniz_oxide 0.5.4", 375 "miniz_oxide",
376] 376]
377 377
378[[package]] 378[[package]]
@@ -824,15 +824,6 @@ version = "0.3.16"
824source = "registry+https://github.com/rust-lang/crates.io-index" 824source = "registry+https://github.com/rust-lang/crates.io-index"
825checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d" 825checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d"
826 826
827[[package]]
828name = "miniz_oxide"
829version = "0.5.4"
830source = "registry+https://github.com/rust-lang/crates.io-index"
831checksum = "96590ba8f175222643a85693f33d26e9c8a015f599c216509b1a6894af675d34"
832dependencies = [
833 "adler",
834]
835
836[[package]] 827[[package]]
837name = "miniz_oxide" 828name = "miniz_oxide"
838version = "0.6.2" 829version = "0.6.2"
@@ -929,9 +920,9 @@ checksum = "86f0b0d4bf799edbc74508c1e8bf170ff5f41238e5f8225603ca7caaae2b7860"
929 920
930[[package]] 921[[package]]
931name = "openssl" 922name = "openssl"
932version = "0.10.42" 923version = "0.10.43"
933source = "registry+https://github.com/rust-lang/crates.io-index" 924source = "registry+https://github.com/rust-lang/crates.io-index"
934checksum = "12fc0523e3bd51a692c8850d075d74dc062ccf251c0110668cbd921917118a13" 925checksum = "020433887e44c27ff16365eaa2d380547a94544ad509aff6eb5b6e3e0b27b376"
935dependencies = [ 926dependencies = [
936 "bitflags", 927 "bitflags",
937 "cfg-if", 928 "cfg-if",
@@ -961,9 +952,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf"
961 952
962[[package]] 953[[package]]
963name = "openssl-sys" 954name = "openssl-sys"
964version = "0.9.77" 955version = "0.9.78"
965source = "registry+https://github.com/rust-lang/crates.io-index" 956source = "registry+https://github.com/rust-lang/crates.io-index"
966checksum = "b03b84c3b2d099b81f0953422b4d4ad58761589d0229b5506356afca05a3670a" 957checksum = "07d5c8cb6e57b3a3612064d7b18b117912b4ce70955c2504d4b741c9e244b132"
967dependencies = [ 958dependencies = [
968 "autocfg", 959 "autocfg",
969 "cc", 960 "cc",
@@ -1048,7 +1039,7 @@ dependencies = [
1048 "bitflags", 1039 "bitflags",
1049 "crc32fast", 1040 "crc32fast",
1050 "flate2", 1041 "flate2",
1051 "miniz_oxide 0.6.2", 1042 "miniz_oxide",
1052] 1043]
1053 1044
1054[[package]] 1045[[package]]
@@ -1215,18 +1206,18 @@ dependencies = [
1215 1206
1216[[package]] 1207[[package]]
1217name = "serde" 1208name = "serde"
1218version = "1.0.147" 1209version = "1.0.148"
1219source = "registry+https://github.com/rust-lang/crates.io-index" 1210source = "registry+https://github.com/rust-lang/crates.io-index"
1220checksum = "d193d69bae983fc11a79df82342761dfbf28a99fc8d203dca4c3c1b590948965" 1211checksum = "e53f64bb4ba0191d6d0676e1b141ca55047d83b74f5607e6d8eb88126c52c2dc"
1221dependencies = [ 1212dependencies = [
1222 "serde_derive", 1213 "serde_derive",
1223] 1214]
1224 1215
1225[[package]] 1216[[package]]
1226name = "serde_derive" 1217name = "serde_derive"
1227version = "1.0.147" 1218version = "1.0.148"
1228source = "registry+https://github.com/rust-lang/crates.io-index" 1219source = "registry+https://github.com/rust-lang/crates.io-index"
1229checksum = "4f1d362ca8fc9c3e3a7484440752472d68a6caa98f1ab81d99b5dfe517cec852" 1220checksum = "a55492425aa53521babf6137309e7d34c20bbfbbfcfe2c7f3a047fd1f6b92c0c"
1230dependencies = [ 1221dependencies = [
1231 "proc-macro2", 1222 "proc-macro2",
1232 "quote", 1223 "quote",
@@ -1235,9 +1226,9 @@ dependencies = [
1235 1226
1236[[package]] 1227[[package]]
1237name = "serde_json" 1228name = "serde_json"
1238version = "1.0.88" 1229version = "1.0.89"
1239source = "registry+https://github.com/rust-lang/crates.io-index" 1230source = "registry+https://github.com/rust-lang/crates.io-index"
1240checksum = "8e8b3801309262e8184d9687fb697586833e939767aea0dda89f5a8e650e8bd7" 1231checksum = "020ff22c755c2ed3f8cf162dbb41a7268d934702f3ed3631656ea597e08fc3db"
1241dependencies = [ 1232dependencies = [
1242 "itoa", 1233 "itoa",
1243 "ryu", 1234 "ryu",
@@ -1353,9 +1344,9 @@ dependencies = [
1353 1344
1354[[package]] 1345[[package]]
1355name = "syn" 1346name = "syn"
1356version = "1.0.103" 1347version = "1.0.104"
1357source = "registry+https://github.com/rust-lang/crates.io-index" 1348source = "registry+https://github.com/rust-lang/crates.io-index"
1358checksum = "a864042229133ada95abf3b54fdc62ef5ccabe9515b64717bcb9a1919e59445d" 1349checksum = "4ae548ec36cf198c0ef7710d3c230987c2d6d7bd98ad6edc0274462724c585ce"
1359dependencies = [ 1350dependencies = [
1360 "proc-macro2", 1351 "proc-macro2",
1361 "quote", 1352 "quote",
@@ -1525,9 +1516,9 @@ dependencies = [
1525 1516
1526[[package]] 1517[[package]]
1527name = "tui-additions" 1518name = "tui-additions"
1528version = "0.1.9" 1519version = "0.1.10"
1529source = "registry+https://github.com/rust-lang/crates.io-index" 1520source = "registry+https://github.com/rust-lang/crates.io-index"
1530checksum = "19170ef3d86a5223daaa0bb449e71bdefe74676f5651ce8981e308915af64fa4" 1521checksum = "e7b8ddf761287fd6bc7d703bac577a2ad904a8f94ff3a66208cf435c668eae41"
1531dependencies = [ 1522dependencies = [
1532 "crossterm", 1523 "crossterm",
1533 "dyn-clone", 1524 "dyn-clone",
@@ -1879,7 +1870,7 @@ dependencies = [
1879 1870
1880[[package]] 1871[[package]]
1881name = "youtube-tui" 1872name = "youtube-tui"
1882version = "0.5.2" 1873version = "0.5.3"
1883dependencies = [ 1874dependencies = [
1884 "chrono", 1875 "chrono",
1885 "crossterm", 1876 "crossterm",
Cargo.toml +1 −1
@@ -1,6 +1,6 @@
1[package] 1[package]
2name = "youtube-tui" 2name = "youtube-tui"
3version = "0.5.2" 3version = "0.5.3"
4authors = ["Siriusmart <siriusmart@tuta.io>"] 4authors = ["Siriusmart <siriusmart@tuta.io>"]
5edition = "2021" 5edition = "2021"
6description = "An aesthetically pleasing YouTube TUI written in Rust" 6description = "An aesthetically pleasing YouTube TUI written in Rust"
README.md +2 −2
@@ -10,7 +10,7 @@
10 10
11Written in Rust, the **YouTube TUI** is a lightweight and user friendly TUI for browsing YouTube content from the terminal. 11Written in Rust, the **YouTube TUI** is a lightweight and user friendly TUI for browsing YouTube content from the terminal.
12 12
13![](./images/search-showcase.png) 13![](./docs/src/images/search-showcase.png)
14 14
15It is like an *app launcher*, it launches other programs to do the heavy lifting (for example, `mpv` for playing videos). 15It is like an *app launcher*, it launches other programs to do the heavy lifting (for example, `mpv` for playing videos).
16 16
@@ -43,7 +43,7 @@ The YouTube TUI does not work on its own, it is instead like a *TUI frontend* fo
43 43
44However, the programs to launch can be changed, and therefore the YouTube TUI <u>does not rely on any specific dependencies</u> to run. 44However, the programs to launch can be changed, and therefore the YouTube TUI <u>does not rely on any specific dependencies</u> to run.
45 45
46![](./images/custom-dependencies-showcase.png) 46![](./docs/src/images/custom-dependencies-showcase.png)
47 47
48## Powerful 48## Powerful
49 49
docs/src/changelogs.md +7 −1
@@ -1,6 +1,12 @@
1# Changelogs 1# Changelogs
2 2
3## v0.5.2 3## v0.5.3
4
5#### Fixed
6
7- Search bar could not handle non English characters (e.g. <a href="https://github.com/Siriusmart/youtube-tui/issues/14" target=_blank>Russian</a>)
8
9### v0.5.2
4 10
5#### Added 11#### Added
6 12
index.html added +250
@@ -0,0 +1,250 @@
1<!DOCTYPE HTML>
2<html lang="en" class="sidebar-visible no-js ayu">
3 <head>
4 <!-- Book generated using mdBook -->
5 <meta charset="UTF-8">
6 <title>Overview - YouTube TUI User Manual</title>
7 <!-- Custom HTML head -->
8 <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
9 <meta name="description" content="The user manual, documentation and contribution guide for YouTube TUI">
10 <meta name="viewport" content="width=device-width, initial-scale=1">
11 <meta name="theme-color" content="#ffffff" />
12
13 <link rel="icon" href="favicon.svg">
14 <link rel="shortcut icon" href="favicon.png">
15 <link rel="stylesheet" href="css/variables.css">
16 <link rel="stylesheet" href="css/general.css">
17 <link rel="stylesheet" href="css/chrome.css">
18 <link rel="stylesheet" href="css/print.css" media="print">
19 <!-- Fonts -->
20 <link rel="stylesheet" href="FontAwesome/css/font-awesome.css">
21 <link rel="stylesheet" href="fonts/fonts.css">
22 <!-- Highlight.js Stylesheets -->
23 <link rel="stylesheet" href="highlight.css">
24 <link rel="stylesheet" href="tomorrow-night.css">
25 <link rel="stylesheet" href="ayu-highlight.css">
26
27 <!-- Custom theme stylesheets -->
28 </head>
29 <body>
30 <!-- Provide site root to javascript -->
31 <script type="text/javascript">
32 var path_to_root = "";
33 var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "navy" : "ayu";
34 </script>
35
36 <!-- Work around some values being stored in localStorage wrapped in quotes -->
37 <script type="text/javascript">
38 try {
39 var theme = localStorage.getItem('mdbook-theme');
40 var sidebar = localStorage.getItem('mdbook-sidebar');
41
42 if (theme.startsWith('"') && theme.endsWith('"')) {
43 localStorage.setItem('mdbook-theme', theme.slice(1, theme.length - 1));
44 }
45
46 if (sidebar.startsWith('"') && sidebar.endsWith('"')) {
47 localStorage.setItem('mdbook-sidebar', sidebar.slice(1, sidebar.length - 1));
48 }
49 } catch (e) { }
50 </script>
51
52 <!-- Set the theme before any content is loaded, prevents flash -->
53 <script type="text/javascript">
54 var theme;
55 try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { }
56 if (theme === null || theme === undefined) { theme = default_theme; }
57 var html = document.querySelector('html');
58 html.classList.remove('no-js')
59 html.classList.remove('ayu')
60 html.classList.add(theme);
61 html.classList.add('js');
62 </script>
63
64 <!-- Hide / unhide sidebar before it is displayed -->
65 <script type="text/javascript">
66 var html = document.querySelector('html');
67 var sidebar = 'hidden';
68 if (document.body.clientWidth >= 1080) {
69 try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
70 sidebar = sidebar || 'visible';
71 }
72 html.classList.remove('sidebar-visible');
73 html.classList.add("sidebar-" + sidebar);
74 </script>
75
76 <nav id="sidebar" class="sidebar" aria-label="Table of contents">
77 <div class="sidebar-scrollbox">
78 <ol class="chapter"><li class="chapter-item expanded "><a href="../../index.html" class="active"><strong aria-hidden="true">1.</strong> Overview</a></li><li class="chapter-item expanded "><a href="installation.html"><strong aria-hidden="true">2.</strong> Installation</a></li><li class="chapter-item expanded "><a href="basic_usage.html"><strong aria-hidden="true">3.</strong> Basic usage</a></li><li class="chapter-item expanded affix "><li class="part-title">Customisation guide</li><li class="chapter-item expanded "><a href="config/index.html"><strong aria-hidden="true">4.</strong> Config files</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="config/main.html"><strong aria-hidden="true">4.1.</strong> main</a></li><li class="chapter-item expanded "><a href="config/commands.html"><strong aria-hidden="true">4.2.</strong> commands</a></li><li class="chapter-item expanded "><a href="config/keybindings.html"><strong aria-hidden="true">4.3.</strong> keybindings</a></li><li class="chapter-item expanded "><a href="config/pages.html"><strong aria-hidden="true">4.4.</strong> pages</a></li><li class="chapter-item expanded "><a href="config/appearance.html"><strong aria-hidden="true">4.5.</strong> appearance</a></li><li class="chapter-item expanded "><a href="config/search.html"><strong aria-hidden="true">4.6.</strong> search</a></li></ol></li><li class="chapter-item expanded "><li class="part-title">Contributing</li><li class="chapter-item expanded "><div><strong aria-hidden="true">5.</strong> How it works</div></li><li><ol class="section"><li class="chapter-item expanded "><div><strong aria-hidden="true">5.1.</strong> Framework</div></li><li class="chapter-item expanded "><div><strong aria-hidden="true">5.2.</strong> Invidious API</div></li><li class="chapter-item expanded "><div><strong aria-hidden="true">5.3.</strong> Individual items</div></li></ol></li><li class="chapter-item expanded "><div><strong aria-hidden="true">6.</strong> Contribution guide</div></li><li class="chapter-item expanded "><a href="changelogs.html"><strong aria-hidden="true">7.</strong> Changelogs</a></li><li class="chapter-item expanded "><a href="contributors.html"><strong aria-hidden="true">8.</strong> Contributors</a></li></ol>
79 </div>
80 <div id="sidebar-resize-handle" class="sidebar-resize-handle"></div>
81 </nav>
82
83 <div id="page-wrapper" class="page-wrapper">
84
85 <div class="page">
86 <div id="menu-bar-hover-placeholder"></div>
87 <div id="menu-bar" class="menu-bar sticky bordered">
88 <div class="left-buttons">
89 <button id="sidebar-toggle" class="icon-button" type="button" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
90 <i class="fa fa-bars"></i>
91 </button>
92 <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">
93 <i class="fa fa-paint-brush"></i>
94 </button>
95 <ul id="theme-list" class="theme-popup" aria-label="Themes" role="menu">
96 <li role="none"><button role="menuitem" class="theme" id="light">Light</button></li>
97 <li role="none"><button role="menuitem" class="theme" id="rust">Rust</button></li>
98 <li role="none"><button role="menuitem" class="theme" id="coal">Coal</button></li>
99 <li role="none"><button role="menuitem" class="theme" id="navy">Navy</button></li>
100 <li role="none"><button role="menuitem" class="theme" id="ayu">Ayu (default)</button></li>
101 </ul>
102 <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">
103 <i class="fa fa-search"></i>
104 </button>
105 </div>
106
107 <h1 class="menu-title">YouTube TUI User Manual</h1>
108
109 <div class="right-buttons">
110 <a href="print.html" title="Print this book" aria-label="Print this book">
111 <i id="print-button" class="fa fa-print"></i>
112 </a>
113 <a href="https://github.com/siriusmart/youtube-tui/tree/master/docs" title="Git repository" aria-label="Git repository">
114 <i id="git-repository-button" class="fa fa-github"></i>
115 </a>
116 <a href="https://github.com/siriusmart/youtube-tui/edit/master/docs/src/../../README.md" title="Suggest an edit" aria-label="Suggest an edit">
117 <i id="git-edit-button" class="fa fa-edit"></i>
118 </a>
119 </div>
120 </div>
121
122 <div id="search-wrapper" class="hidden">
123 <form id="searchbar-outer" class="searchbar-outer">
124 <input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
125 </form>
126 <div id="searchresults-outer" class="searchresults-outer hidden">
127 <div id="searchresults-header" class="searchresults-header"></div>
128 <ul id="searchresults">
129 </ul>
130 </div>
131 </div>
132 <!-- Apply ARIA attributes after the sidebar and the sidebar toggle button are added to the DOM -->
133 <script type="text/javascript">
134 document.getElementById('sidebar-toggle').setAttribute('aria-expanded', sidebar === 'visible');
135 document.getElementById('sidebar').setAttribute('aria-hidden', sidebar !== 'visible');
136 Array.from(document.querySelectorAll('#sidebar a')).forEach(function(link) {
137 link.setAttribute('tabIndex', sidebar === 'visible' ? 0 : -1);
138 });
139 </script>
140
141 <div id="content" class="content">
142 <main>
143 <p><img src="https://img.shields.io/github/languages/top/siriusmart/youtube-tui?label=rust" alt="" />
144<img src="https://shields.io/github/license/siriusmart/youtube-tui" alt="" />
145<a href="https://crates.io/crates/youtube-tui"><img src="https://img.shields.io/crates/d/youtube-tui?label=crates.io%20downloads" alt="" /></a>
146<a href="https://crates.io/crates/youtube-tui"><img src="https://img.shields.io/crates/v/youtube-tui?label=crates.io%20version" alt="" /></a>
147<img src="https://shields.io/github/stars/siriusmart/youtube-tui?style=social" alt="" /></p>
148<p><em><strong>Read more in the <a href="https://siriusmart.github.io/youtube-tui">user manual</a> (including installation gude and documentation).</strong></em></p>
149<h1 id="overview"><a class="header" href="#overview">Overview</a></h1>
150<p>Written in Rust, the <strong>YouTube TUI</strong> is a lightweight and user friendly TUI for browsing YouTube content from the terminal.</p>
151<p><img src="./docs/src/images/search-showcase.png" alt="" /></p>
152<p>It is like an <em>app launcher</em>, it launches other programs to do the heavy lifting (for example, <code>mpv</code> for playing videos).</p>
153<h2 id="customisable"><a class="header" href="#customisable">Customisable</a></h2>
154<p>The YouTube TUI can be customised through config files, they are located in <code>~/.config/youtube-tui</code> and are in the YAML format.</p>
155<p>Here's an example of the config file:</p>
156<pre><code class="language-yaml">invidious_instance: https://vid.puffyan.us
157max_watch_history: 50
158allow_unicode: false
159images: Sixels
160refresh_after_modifying_search_filters: true
161provider: YouTube
162env:
163 browser: firefox
164 video-player: mpv
165 youtube-downloader: yt-dlp
166 terminal-emulator: konsole -e
167
168</code></pre>
169<p>Anything from layouts to colours and keybindings can be customised, more on that later.</p>
170<h2 id="dependency-free"><a class="header" href="#dependency-free">Dependency-free</a></h2>
171<p>The YouTube TUI does not work on its own, it is instead like a <em>TUI frontend</em> for programs like <code>mpv</code> or <code>yt-dlp</code>/<code>youtube-dl</code>.</p>
172<p>However, the programs to launch can be changed, and therefore the YouTube TUI <u>does not rely on any specific dependencies</u> to run.</p>
173<p><img src="./images/custom-dependencies-showcase.png" alt="" /></p>
174<h2 id="powerful"><a class="header" href="#powerful">Powerful</a></h2>
175<p>The YouTube TUI allows you to browse YouTube with (almost) all of it's features, functions including:</p>
176<ul>
177<li>View popular/trending videos</li>
178<li>View information about channels, playlists and videos</li>
179<li>Use search filters to sort and filter search results</li>
180<li>Save browsing history</li>
181</ul>
182<h3 id="what-it-doesnt-have"><a class="header" href="#what-it-doesnt-have">What it doesn't have</a></h3>
183<ul>
184<li>Vim-like commands (first priority)</li>
185<li>Command line args (first priority)</li>
186<li>Bootleg Vimscript? (will implement)</li>
187<li>Channel search (will implement)</li>
188<li>Channel videos sorting (will implement)</li>
189<li>Subscriptions (will implement)</li>
190<li>Recommendations/comments (probably will not implement)</li>
191</ul>
192<h2 id="how-to-contribute"><a class="header" href="#how-to-contribute">How to contribute</a></h2>
193<p>You will need a <u>general knowledge</u> of the Rust programming language, and the ability to <em>understand my spaghetti</em>.</p>
194<ol>
195<li>Open an issue to make sure nobody else is working on the same feature</li>
196<li>Write code</li>
197<li>Open a pull request</li>
198<li>Get merged?</li>
199</ol>
200<p>Or just <em>fix that typo in README</em> -_-</p>
201
202 </main>
203
204 <nav class="nav-wrapper" aria-label="Page navigation">
205 <!-- Mobile navigation buttons -->
206 <a rel="next" href="installation.html" class="mobile-nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
207 <i class="fa fa-angle-right"></i>
208 </a>
209 <div style="clear: both"></div>
210 </nav>
211 </div>
212 </div>
213
214 <nav class="nav-wide-wrapper" aria-label="Page navigation">
215 <a rel="next" href="installation.html" class="nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
216 <i class="fa fa-angle-right"></i>
217 </a>
218 </nav>
219
220 </div>
221
222 <!-- Livereload script (if served using the cli tool) -->
223 <script type="text/javascript">
224 const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
225 const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload";
226 const socket = new WebSocket(wsAddress);
227 socket.onmessage = function (event) {
228 if (event.data === "reload") {
229 socket.close();
230 location.reload();
231 }
232 };
233
234 window.onbeforeunload = function() {
235 socket.close();
236 }
237 </script>
238 <script type="text/javascript">
239 window.playground_copyable = true;
240 </script>
241 <script src="elasticlunr.min.js" type="text/javascript" charset="utf-8"></script>
242 <script src="mark.min.js" type="text/javascript" charset="utf-8"></script>
243 <script src="searcher.js" type="text/javascript" charset="utf-8"></script>
244 <script src="clipboard.min.js" type="text/javascript" charset="utf-8"></script>
245 <script src="highlight.js" type="text/javascript" charset="utf-8"></script>
246 <script src="book.js" type="text/javascript" charset="utf-8"></script>
247
248 <!-- Custom JS scripts -->
249 </body>
250</html>
src/config/main.rs +1 −1
@@ -115,7 +115,7 @@ const fn image_index_default() -> usize {
115} 115}
116 116
117const fn allow_unicode_default() -> bool { 117const fn allow_unicode_default() -> bool {
118 false 118 true
119} 119}
120 120
121const fn refresh_after_modifying_search_filters_default() -> bool { 121const fn refresh_after_modifying_search_filters_default() -> bool {
src/items/singleitem.rs +2 −2
@@ -69,7 +69,7 @@ impl SingleVideoItem {
69 pub fn new(commands: &CommandsConfig, mainconfig: &MainConfig) -> Self { 69 pub fn new(commands: &CommandsConfig, mainconfig: &MainConfig) -> Self {
70 Self { 70 Self {
71 textlist: TextList::default() 71 textlist: TextList::default()
72 .items(&commands.video.iter().map(|command| &command.0).collect()) 72 .items(&commands.video.iter().map(|command| &command.0).collect::<Vec<_>>())
73 .unwrap(), 73 .unwrap(),
74 commands: commands 74 commands: commands
75 .video 75 .video
@@ -175,7 +175,7 @@ impl SinglePlaylistItem {
175 }); 175 });
176 Self { 176 Self {
177 commands_view: TextList::default() 177 commands_view: TextList::default()
178 .items(&commands.playlist.iter().map(|command| &command.0).collect()) 178 .items(&commands.playlist.iter().map(|command| &command.0).collect::<Vec<_>>())
179 .unwrap(), 179 .unwrap(),
180 videos_view: TextList::default() 180 videos_view: TextList::default()
181 .items(&{ 181 .items(&{