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