1<!doctype html>
2<html lang="en">
3<head>
4<meta charset="utf-8">
5<meta name="viewport" content="width=device-width, initial-scale=1">
6<meta name="color-scheme" content="light dark">
7<title>demo · example.test</title>
8<meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff">
9<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c">
10<meta name="apple-mobile-web-app-title" content="ermite">
11<link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg">
12<link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png">
13<link rel="manifest" href="/-/static/app/manifest.HASH.webmanifest">
14<link rel="preload" href="/-/static/fonts/atkinson-next.HASH.woff2" as="font" type="font/woff2" crossorigin>
15<link rel="stylesheet" href="/-/static/css/ermite.HASH.css">
16<meta name="htmx-config" content='{"history":false,"includeIndicatorCSS":false,"extensions":"sse, hx-live"}'>
17<script src="/-/static/js/htmx.min.HASH.js" defer>
18</script>
19<script src="/-/static/js/hx-live.min.HASH.js" defer>
20</script>
21<script src="/-/static/js/hx-sse.min.HASH.js" defer>
22</script>
23<script src="/-/static/js/ermite.HASH.js" defer>
24</script>
25<script src="/-/static/js/files.HASH.js" defer>
26</script>
27<script src="/-/static/js/passkey.HASH.js" defer>
28</script>
29<script src="/-/static/js/log.HASH.js" defer>
30</script>
31</head>
32<body data-ref="main" data-sha="SHA40" data-sel="" data-nav="" data-paths="/demo/paths/SHA40" data-blob="/demo/blob/main">
33<a class="skip" href="#main">skip to content</a>
34<header class="hdr">
35<div class="hdr-top">
36<a class="brand" href="/" data-g="h" aria-label="home" title="home (g h)">
37<span class="brand-mark" aria-hidden="true">
38</span>
39</a>
40<nav class="crumbs" aria-label="Path">
41<ol>
42<li>
43<a href="/demo" aria-current="page">demo</a>
44</li>
45</ol>
46</nav>
47<div class="hdr-acts">
48<a class="btn ref" href="/demo/refs" data-fire="refs" aria-keyshortcuts="b" title="switch branch or tag (b)">
49<span class="ico i-branch" aria-hidden="true">
50</span>
51<span class="ref-name">main</span>
52<span class="sha">SHA7</span>
53</a>
54<button type="button" class="btn search" data-js aria-haspopup="dialog" aria-controls="panel-cmd" aria-keyshortcuts="Control+K :" title="go to a section, ref, file or repo (ctrl k or :)" data-fire="cmd">
55<span class="ico i-search" aria-hidden="true">
56</span>
57<span class="search-label">Go to…</span>
58<kbd aria-hidden="true">ctrl k</kbd>
59</button>
60<button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app">
61<span class="ico i-download" aria-hidden="true">
62</span>
63</button>
64</div>
65</div>
66<nav class="tabs" aria-label="Sections">
67<ul>
68<li>
69<a href="/demo" data-key="s" aria-keyshortcuts="s" aria-current="page">Summary <kbd aria-hidden="true">s</kbd>
70</a>
71</li>
72<li>
73<a href="/demo/tree/main" data-key="t" aria-keyshortcuts="t">Files <kbd aria-hidden="true">t</kbd>
74</a>
75</li>
76<li>
77<a href="/demo/commits/main" data-key="c" aria-keyshortcuts="c">Commits <kbd aria-hidden="true">c</kbd>
78</a>
79</li>
80<li>
81<a href="/demo/refs" data-key="r" aria-keyshortcuts="r">Branches & tags <kbd aria-hidden="true">r</kbd>
82</a>
83</li>
84<li>
85<a href="/demo/merge-requests" data-key="m" aria-keyshortcuts="m">Merge requests <kbd aria-hidden="true">m</kbd>
86</a>
87</li>
88<li>
89<a href="/demo/actions" data-key="a" aria-keyshortcuts="a">Actions <kbd aria-hidden="true">a</kbd>
90</a>
91</li>
92</ul>
93</nav>
94</header>
95<div class="work has-rail">
96<section class="work-lede" aria-label="Description">
97<p class="lede">A demo repository</p>
98</section>
99<main id="main" tabindex="-1">
100<section class="card readme" aria-labelledby="readme-h">
101<h2 class="card-h" id="readme-h">
102<span class="ico i-file" aria-hidden="true">
103</span> README.md</h2>
104<article class="prose" aria-label="README.md" hx-ignore>
105<h1 id="md-demo">Demo</h1>
106<p>A small <em>demo</em> with a <a href="/demo/blob/main/docs/guide.md">guide</a> and <a href="https://example.org/x" rel="nofollow noopener noreferrer">the site</a>.</p>
107<h2 id="md-install">Install</h2>
108<pre>
109<code class="language-sh">go install example.org/demo@latest
110</code>
111</pre>
112<h2 id="md-usage">Usage</h2>
113<table>
114<thead>
115<tr>
116<th>a</th>
117<th align="right">b</th>
118</tr>
119</thead>
120<tbody>
121<tr>
122<td>1</td>
123<td align="right">2</td>
124</tr>
125</tbody>
126</table>
127</article>
128</section>
129</main>
130<aside class="rail" aria-label="Context">
131<section aria-labelledby="r-clone">
132<h2 id="r-clone">Clone</h2>
133<div class="clone" id="clone-demo">
134<div class="clone-line">
135<span class="mute" aria-hidden="true">$ </span>
136<code>git clone http://example.test/demo.git</code>
137<button type="button" class="btn copy" data-js data-label="Copy" aria-label="copy: git clone http://example.test/demo.git" hx-on:click="ermite.copy(this)">Copy</button>
138</div>
139</div>
140</section>
141<section aria-labelledby="r-facts">
142<h2 id="r-facts">About</h2>
143<dl class="kv">
144<dt>last push</dt>
145<dd id="last-push-demo">
146<time datetime="STAMP">AGO · STAMP</time>
147</dd>
148<dt>branch</dt>
149<dd>main · 2 branches</dd>
150<dt>created</dt>
151<dd>
152<time datetime="STAMP">STAMP</time>
153</dd>
154<dt>latest tag</dt>
155<dd class="latest-tag">
156<a class="tag-name" href="/demo/tree/v0.2.0" title="add main.go">
157<span class="ico i-tag" aria-hidden="true">
158</span>v0.2.0</a>
159<time class="dim" datetime="STAMP" title="STAMP">AGO</time>
160<a class="all-tags" href="/demo/refs">2 tags</a>
161</dd>
162</dl>
163</section>
164<section aria-labelledby="r-recent">
165<h2 id="r-recent">Recent commits <a href="/demo/commits/main">View all</a>
166</h2>
167<table class="list commits" aria-label="Commits">
168<tbody data-rows>
169<tr data-cursor>
170<td class="cur" aria-hidden="true">
171</td>
172<td class="c-sha mute">SHA7</td>
173<td class="c-subject">
174<a href="/demo/commit/SHA40">add main.go</a>
175<span class="pill">main</span>
176<span class="pill tag">
177<span class="sr">tag </span>v0.2.0</span>
178</td>
179<td class="c-ck">
180</td>
181<td class="c-who dim">T</td>
182<td class="c-when nowrap dim">
183<time datetime="STAMP" title="STAMP">AGO</time>
184</td>
185</tr>
186<tr>
187<td class="cur" aria-hidden="true">
188</td>
189<td class="c-sha mute">SHA7</td>
190<td class="c-subject">
191<a href="/demo/commit/SHA40">first commit</a>
192<span class="pill tag">
193<span class="sr">tag </span>v0.1.0</span>
194</td>
195<td class="c-ck">
196</td>
197<td class="c-who dim">T</td>
198<td class="c-when nowrap dim">
199<time datetime="STAMP" title="STAMP">AGO</time>
200</td>
201</tr>
202</tbody>
203</table>
204</section>
205<section id="recent-actions" aria-labelledby="r-actions" hidden>
206<h2 id="r-actions">Recent actions <a href="/demo/actions">View all</a>
207</h2>
208<ul class="rruns">
209</ul>
210</section>
211<section aria-labelledby="r-outline">
212<h2 id="r-outline">On this page</h2>
213<nav class="outline" aria-label="Outline">
214<a class="l1" href="#md-demo">Demo</a>
215<a class="l2" href="#md-install">Install</a>
216<a class="l2" href="#md-usage">Usage</a>
217</nav>
218</section>
219</aside>
220</div>
221<footer class="foot">
222<span>ermite devel</span>
223<a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a>
224<button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?">
225<kbd aria-hidden="true">?</kbd> keyboard shortcuts</button>
226</footer>
227<div class="hint" role="status" aria-live="polite">
228<span class="hint-nav" :text="document.body.dataset.nav || ''">
229</span>
230<span class="hint-sel" :text="document.body.dataset.sel ? document.body.dataset.sel + ' · y permalink' : ''">
231</span>
232<span class="hint-flash" :text="document.body.dataset.flash || ''">
233</span>
234<span class="hint-live" data-state="connecting" hx-sse:connect="/-/events?topic=repo%3Ademo&view=summary" hx-swap="none" :text="data.state === 'offline' ? 'live updates paused' : ''" hx-on="htmx:sse:after:connection -> ermiteLive.back();
235 htmx:sse:close, htmx:sse:error -> ermiteLive.lost();
236 htmx:sse:error -> ermiteLive.error(event.detail.status);
237 htmx:sse:before:connection -> ermiteLive.gate(event);
238 home-list, repo-last-push, refs-list, commits-head, mr-notice, ci-run, ci-job -> ermiteLive.swap(event.detail.data);
239 gap -> ermiteLive.reload()">
240</span>
241</div>
242<dialog id="panel-help" class="panel modal" aria-label="Keyboard shortcuts" hx-on:keydown="event.key === 'Escape' && (event.preventDefault(), this.close())" hx-on:click="event.target === this && this.close()">
243<div class="panel-head">
244<h2>Keyboard shortcuts</h2>
245<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
246<kbd>esc</kbd> close</button>
247</div>
248<div class="keys-pref">
249<label>
250<input type="checkbox" id="keys-off" aria-describedby="keys-note" hx-on:change="ermite.setKeysOff(this.checked)"> Turn off single-key shortcuts</label>
251<p id="keys-note" class="dim">Single-key shortcuts are on. ctrl k and esc work whatever this says.</p>
252</div>
253<dl class="keys">
254<div>
255<dt>
256<kbd>ctrl k</kbd>
257<kbd>:</kbd>
258</dt>
259<dd>go to a section, branch, tag, file or repository</dd>
260</div>
261<div>
262<dt>
263<kbd>?</kbd>
264</dt>
265<dd>this list</dd>
266</div>
267<div>
268<dt>
269<kbd>j</kbd>
270<kbd>k</kbd>
271</dt>
272<dd>move the row cursor down / up</dd>
273</div>
274<div>
275<dt>
276<kbd>enter</kbd>
277</dt>
278<dd>open the row under the cursor; on Files, a directory opens or closes in place</dd>
279</div>
280<div>
281<dt>
282<kbd>↑</kbd>
283<kbd>↓</kbd>
284<kbd>←</kbd>
285<kbd>→</kbd>
286<kbd>home</kbd>
287<kbd>end</kbd>
288</dt>
289<dd>in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file</dd>
290</div>
291<div>
292<dt>
293<kbd>l</kbd>
294<kbd>h</kbd>
295</dt>
296<dd>on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls</dd>
297</div>
298<div>
299<dt>
300<kbd>g g</kbd>
301<kbd>G</kbd>
302</dt>
303<dd>first / last row</dd>
304</div>
305<div>
306<dt>
307<kbd>/</kbd>
308</dt>
309<dd>filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)</dd>
310</div>
311<div>
312<dt>
313<kbd>b</kbd>
314</dt>
315<dd>switch branch or tag</dd>
316</div>
317<div>
318<dt>
319<kbd>s</kbd>
320<kbd>t</kbd>
321<kbd>c</kbd>
322<kbd>r</kbd>
323<kbd>m</kbd>
324</dt>
325<dd>tabs: summary, files, commits, branches & tags, merge requests</dd>
326</div>
327<div>
328<dt>
329<kbd>g h</kbd>
330</dt>
331<dd>home</dd>
332</div>
333<div>
334<dt>
335<kbd>y</kbd>
336</dt>
337<dd>copy a permalink pinned to the commit</dd>
338</div>
339<div>
340<dt>
341<kbd>d</kbd>
342<kbd>u</kbd>
343<kbd>x</kbd>
344</dt>
345<dd>diff: split / unified / collapse or expand all</dd>
346</div>
347<div>
348<dt>
349<kbd>e</kbd>
350<kbd>E</kbd>
351</dt>
352<dd>diff: the whole file in view / every file, with the lines the hunks hide</dd>
353</div>
354<div>
355<dt>
356<kbd>n</kbd>
357</dt>
358<dd>merge request: next note in the diff</dd>
359</div>
360<div>
361<dt>
362<kbd>esc</kbd>
363</dt>
364<dd>close a dialog, leave a field</dd>
365</div>
366</dl>
367</dialog>
368<dialog id="panel-refs" class="panel modal" aria-label="Switch ref" hx-on:keydown="event.key === 'Escape' && (event.preventDefault(), this.close())" hx-on:click="event.target === this && this.close()">
369<div class="panel-head">
370<label for="refs-filter" class="sr">filter branches and tags</label>
371<input id="refs-filter" type="search" placeholder="Switch branch or tag…" autocomplete="off" data-pick="#panel-refs li" hx-on:input="ermite.filter(this)">
372<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
373<kbd>esc</kbd>
374</button>
375</div>
376<div class="panel-cols" data-picklist>
377<section aria-label="Branches">
378<h2>Branches <span class="count">2</span>
379</h2>
380<ul>
381<li>
382<a href="/demo/tree/feature/x">
383<span class="mark" aria-hidden="true"> </span>feature/x</a>
384</li>
385<li>
386<a href="/demo/tree/main" aria-current="true">
387<span class="mark" aria-hidden="true">●</span>main</a>
388</li>
389</ul>
390</section>
391<section aria-label="Tags">
392<h2>Tags <span class="count">2</span>
393</h2>
394<ul>
395<li>
396<a href="/demo/tree/v0.1.0">
397<span class="mark" aria-hidden="true"> </span>v0.1.0</a>
398</li>
399<li>
400<a href="/demo/tree/v0.2.0">
401<span class="mark" aria-hidden="true"> </span>v0.2.0</a>
402</li>
403</ul>
404</section>
405</div>
406</dialog>
407<dialog id="panel-cmd" class="panel modal" aria-label="Go to" hx-on:close="ermiteFinder.paletteClose()" hx-on:keydown="event.key === 'Escape' && (event.preventDefault(), this.close())" hx-on:click="event.target === this && this.close()">
408<div class="panel-head">
409<label for="cmd-q" class="sr">go to</label>
410<input id="cmd-q" type="search" placeholder="Go to a section, branch, tag, file or repository…" autocomplete="off" spellcheck="false" role="combobox" aria-autocomplete="list" aria-expanded="true" aria-controls="cmd-list" aria-activedescendant="cmd-o0" hx-on:input="ermite.cmdFilter(this); ermiteFinder.palette(this)" hx-on:keydown="ermite.cmdKey(event)">
411<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
412<kbd>esc</kbd>
413</button>
414</div>
415<ul id="cmd-list" class="cmd-list" role="listbox" aria-label="Targets">
416<li id="cmd-o0" role="option" aria-selected="true" data-k="go home" data-cursor>
417<a href="/" tabindex="-1">
418<span class="lbl">home</span>
419<span class="k">go</span>
420</a>
421</li>
422<li id="cmd-o1" role="option" aria-selected="false" data-k="section summary">
423<a href="/demo" tabindex="-1">
424<span class="lbl">summary</span>
425<span class="k">section</span>
426</a>
427</li>
428<li id="cmd-o2" role="option" aria-selected="false" data-k="section files">
429<a href="/demo/tree/main" tabindex="-1">
430<span class="lbl">files</span>
431<span class="k">section</span>
432</a>
433</li>
434<li id="cmd-o3" role="option" aria-selected="false" data-k="section commits">
435<a href="/demo/commits/main" tabindex="-1">
436<span class="lbl">commits</span>
437<span class="k">section</span>
438</a>
439</li>
440<li id="cmd-o4" role="option" aria-selected="false" data-k="section branches & tags">
441<a href="/demo/refs" tabindex="-1">
442<span class="lbl">branches & tags</span>
443<span class="k">section</span>
444</a>
445</li>
446<li id="cmd-o5" role="option" aria-selected="false" data-k="section merge requests">
447<a href="/demo/merge-requests" tabindex="-1">
448<span class="lbl">merge requests</span>
449<span class="k">section</span>
450</a>
451</li>
452<li id="cmd-o6" role="option" aria-selected="false" data-k="section actions">
453<a href="/demo/actions" tabindex="-1">
454<span class="lbl">actions</span>
455<span class="k">section</span>
456</a>
457</li>
458<li id="cmd-o7" role="option" aria-selected="false" data-k="branch feature/x">
459<a href="/demo/tree/feature/x" tabindex="-1">
460<span class="lbl">feature/x</span>
461<span class="k">branch</span>
462</a>
463</li>
464<li id="cmd-o8" role="option" aria-selected="false" data-k="branch main">
465<a href="/demo/tree/main" tabindex="-1">
466<span class="lbl">main</span>
467<span class="k">branch</span>
468</a>
469</li>
470<li id="cmd-o9" role="option" aria-selected="false" data-k="tag v0.1.0">
471<a href="/demo/tree/v0.1.0" tabindex="-1">
472<span class="lbl">v0.1.0</span>
473<span class="k">tag</span>
474</a>
475</li>
476<li id="cmd-o10" role="option" aria-selected="false" data-k="tag v0.2.0">
477<a href="/demo/tree/v0.2.0" tabindex="-1">
478<span class="lbl">v0.2.0</span>
479<span class="k">tag</span>
480</a>
481</li>
482<li id="cmd-o11" role="option" aria-selected="false" data-k="repo quiet">
483<a href="/quiet" tabindex="-1">
484<span class="lbl">quiet</span>
485<span class="k">repo</span>
486</a>
487</li>
488<li id="cmd-o12" role="option" aria-selected="false" data-k="action turn single-key shortcuts on off keyboard">
489<a href="#" data-fire="keys" tabindex="-1">
490<span class="lbl">turn single-key shortcuts off</span>
491<span class="k">action</span>
492</a>
493</li>
494</ul>
495<p class="panel-foot">
496<span>
497<kbd>↑</kbd>
498<kbd>↓</kbd> move</span>
499<span>
500<kbd>enter</kbd> open</span>
501<span>
502<kbd>esc</kbd> close</span>
503</p>
504</dialog>
505<div id="keys" hidden hx-on="k-j from:body -> ermite.move(1);
506 k-k from:body -> ermite.move(-1);
507 k-top from:body -> ermite.edge(false);
508 k-bottom from:body -> ermite.edge(true);
509 k-open from:body -> ermite.open();
510 k-right from:body -> ermite.rail(true);
511 k-left from:body -> ermite.rail(false);
512 k-esc from:body -> ermite.closeDialogs();
513 k-help from:body -> ermite.dialog('panel-help');
514 k-refs from:body -> ermite.dialog('panel-refs', 'refs-filter');
515 k-cmd from:body -> ermite.dialog('panel-cmd', 'cmd-q'); ermiteFinder.load();
516 k-filter from:body -> ermite.focusFilter();
517 k-gh from:body -> ermite.go('.brand');
518 k-s from:body -> ermite.tab('s');
519 k-t from:body -> ermite.tab('t');
520 k-c from:body -> ermite.tab('c');
521 k-r from:body -> ermite.tab('r');
522 k-m from:body -> ermite.tab('m');
523 k-next from:body -> ermite.nextNote();
524 k-split from:body -> ermite.layout('split');
525 k-unified from:body -> ermite.layout('unified');
526 k-collapse from:body -> ermite.collapse();
527 k-expand from:body -> ermite.expandFile();
528 k-expandAll from:body -> ermite.expandAll();
529 k-permalink from:body -> ermite.permalink();
530 k-merge from:body -> window.ermiteMR?.openMerge();
531 k-read from:body -> window.ermiteMR?.markRead();
532 k-gf from:body -> window.ermiteMR?.focusFiles();
533 k-keys from:body -> ermite.toggleKeys()">
534</div>
535</body>
536</html>