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</dl>
151</section>
152<section aria-labelledby="r-tag">
153<h2 id="r-tag">Tags <span class="count">2</span>
154<a href="/demo/refs">View all</a>
155</h2>
156<div class="latest-tag">
157<a class="tag-name" href="/demo/tree/v0.2.0">
158<span class="ico i-tag" aria-hidden="true">
159</span>v0.2.0</a>
160<span class="pill">latest</span>
161<time class="dim" datetime="STAMP" title="STAMP">AGO</time>
162<p class="tag-sub dim">add main.go</p>
163</div>
164</section>
165<section aria-labelledby="r-recent">
166<h2 id="r-recent">Recent commits <a href="/demo/commits/main">View all</a>
167</h2>
168<table class="list commits" aria-label="Commits">
169<tbody data-rows>
170<tr data-cursor>
171<td class="cur" aria-hidden="true">
172</td>
173<td class="c-sha mute">SHA7</td>
174<td class="c-subject">
175<a href="/demo/commit/SHA40">add main.go</a>
176<span class="pill">main</span>
177<span class="pill tag">
178<span class="sr">tag </span>v0.2.0</span>
179</td>
180<td class="c-ck">
181</td>
182<td class="c-who dim">T</td>
183<td class="c-when nowrap dim">
184<time datetime="STAMP" title="STAMP">AGO</time>
185</td>
186</tr>
187<tr>
188<td class="cur" aria-hidden="true">
189</td>
190<td class="c-sha mute">SHA7</td>
191<td class="c-subject">
192<a href="/demo/commit/SHA40">first commit</a>
193<span class="pill tag">
194<span class="sr">tag </span>v0.1.0</span>
195</td>
196<td class="c-ck">
197</td>
198<td class="c-who dim">T</td>
199<td class="c-when nowrap dim">
200<time datetime="STAMP" title="STAMP">AGO</time>
201</td>
202</tr>
203</tbody>
204</table>
205</section>
206<section id="recent-actions" aria-labelledby="r-actions" hidden>
207<h2 id="r-actions">Recent actions <a href="/demo/actions">View all</a>
208</h2>
209<ul class="rruns">
210</ul>
211</section>
212<section aria-labelledby="r-outline">
213<h2 id="r-outline">On this page</h2>
214<nav class="outline" aria-label="Outline">
215<a class="l1" href="#md-demo">Demo</a>
216<a class="l2" href="#md-install">Install</a>
217<a class="l2" href="#md-usage">Usage</a>
218</nav>
219</section>
220</aside>
221</div>
222<footer class="foot">
223<span>ermite devel</span>
224<a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a>
225<button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?">
226<kbd aria-hidden="true">?</kbd> keyboard shortcuts</button>
227</footer>
228<div class="hint" role="status" aria-live="polite">
229<span class="hint-nav" :text="document.body.dataset.nav || ''">
230</span>
231<span class="hint-sel" :text="document.body.dataset.sel ? document.body.dataset.sel + ' · y permalink' : ''">
232</span>
233<span class="hint-flash" :text="document.body.dataset.flash || ''">
234</span>
235<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();
236 htmx:sse:close, htmx:sse:error -> ermiteLive.lost();
237 htmx:sse:error -> ermiteLive.error(event.detail.status);
238 htmx:sse:before:connection -> ermiteLive.gate(event);
239 home-list, repo-last-push, refs-list, commits-head, mr-notice, ci-run, ci-job -> ermiteLive.swap(event.detail.data);
240 gap -> ermiteLive.reload()">
241</span>
242</div>
243<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()">
244<div class="panel-head">
245<h2>Keyboard shortcuts</h2>
246<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
247<kbd>esc</kbd> close</button>
248</div>
249<dl class="keys">
250<div>
251<dt>
252<kbd>ctrl k</kbd>
253<kbd>:</kbd>
254</dt>
255<dd>go to a section, branch, tag, file or repository</dd>
256</div>
257<div>
258<dt>
259<kbd>?</kbd>
260</dt>
261<dd>this list</dd>
262</div>
263<div>
264<dt>
265<kbd>j</kbd>
266<kbd>k</kbd>
267</dt>
268<dd>move the row cursor down / up</dd>
269</div>
270<div>
271<dt>
272<kbd>enter</kbd>
273</dt>
274<dd>open the row under the cursor</dd>
275</div>
276<div>
277<dt>
278<kbd>l</kbd>
279<kbd>h</kbd>
280</dt>
281<dd>into the side panel (on a merge request, its files) / back to the content; there j k move between its controls</dd>
282</div>
283<div>
284<dt>
285<kbd>g g</kbd>
286<kbd>G</kbd>
287</dt>
288<dd>first / last row</dd>
289</div>
290<div>
291<dt>
292<kbd>/</kbd>
293</dt>
294<dd>filter the list; on Files, find a file in the repository</dd>
295</div>
296<div>
297<dt>
298<kbd>b</kbd>
299</dt>
300<dd>switch branch or tag</dd>
301</div>
302<div>
303<dt>
304<kbd>s</kbd>
305<kbd>t</kbd>
306<kbd>c</kbd>
307<kbd>r</kbd>
308<kbd>m</kbd>
309</dt>
310<dd>tabs: summary, files, commits, branches & tags, merge requests</dd>
311</div>
312<div>
313<dt>
314<kbd>g h</kbd>
315</dt>
316<dd>home</dd>
317</div>
318<div>
319<dt>
320<kbd>y</kbd>
321</dt>
322<dd>copy a permalink pinned to the commit</dd>
323</div>
324<div>
325<dt>
326<kbd>d</kbd>
327<kbd>u</kbd>
328<kbd>x</kbd>
329</dt>
330<dd>diff: split / unified / collapse or expand all</dd>
331</div>
332<div>
333<dt>
334<kbd>n</kbd>
335</dt>
336<dd>merge request: next note in the diff</dd>
337</div>
338<div>
339<dt>
340<kbd>esc</kbd>
341</dt>
342<dd>close a dialog, leave a field</dd>
343</div>
344</dl>
345</dialog>
346<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()">
347<div class="panel-head">
348<label for="refs-filter" class="sr">filter branches and tags</label>
349<input id="refs-filter" type="search" placeholder="Switch branch or tag…" autocomplete="off" data-pick="#panel-refs li" hx-on:input="ermite.filter(this)">
350<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
351<kbd>esc</kbd>
352</button>
353</div>
354<div class="panel-cols" data-picklist>
355<section aria-label="Branches">
356<h2>Branches <span class="count">2</span>
357</h2>
358<ul>
359<li>
360<a href="/demo/tree/feature/x">
361<span class="mark" aria-hidden="true"> </span>feature/x</a>
362</li>
363<li>
364<a href="/demo/tree/main" aria-current="true">
365<span class="mark" aria-hidden="true">●</span>main</a>
366</li>
367</ul>
368</section>
369<section aria-label="Tags">
370<h2>Tags <span class="count">2</span>
371</h2>
372<ul>
373<li>
374<a href="/demo/tree/v0.1.0">
375<span class="mark" aria-hidden="true"> </span>v0.1.0</a>
376</li>
377<li>
378<a href="/demo/tree/v0.2.0">
379<span class="mark" aria-hidden="true"> </span>v0.2.0</a>
380</li>
381</ul>
382</section>
383</div>
384</dialog>
385<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()">
386<div class="panel-head">
387<label for="cmd-q" class="sr">go to</label>
388<input id="cmd-q" type="search" placeholder="Go to a section, branch, tag, file or repository…" autocomplete="off" spellcheck="false" aria-controls="cmd-list" hx-on:input="ermite.cmdFilter(this); ermiteFinder.palette(this)" hx-on:keydown="ermite.cmdKey(event)">
389<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
390<kbd>esc</kbd>
391</button>
392</div>
393<ul id="cmd-list" class="cmd-list" aria-label="Targets">
394<li data-k="go home" data-cursor>
395<a href="/" tabindex="-1">
396<span class="lbl">home</span>
397<span class="k">go</span>
398</a>
399</li>
400<li data-k="section summary">
401<a href="/demo" tabindex="-1">
402<span class="lbl">summary</span>
403<span class="k">section</span>
404</a>
405</li>
406<li data-k="section files">
407<a href="/demo/tree/main" tabindex="-1">
408<span class="lbl">files</span>
409<span class="k">section</span>
410</a>
411</li>
412<li data-k="section commits">
413<a href="/demo/commits/main" tabindex="-1">
414<span class="lbl">commits</span>
415<span class="k">section</span>
416</a>
417</li>
418<li data-k="section branches & tags">
419<a href="/demo/refs" tabindex="-1">
420<span class="lbl">branches & tags</span>
421<span class="k">section</span>
422</a>
423</li>
424<li data-k="section merge requests">
425<a href="/demo/merge-requests" tabindex="-1">
426<span class="lbl">merge requests</span>
427<span class="k">section</span>
428</a>
429</li>
430<li data-k="section actions">
431<a href="/demo/actions" tabindex="-1">
432<span class="lbl">actions</span>
433<span class="k">section</span>
434</a>
435</li>
436<li data-k="branch feature/x">
437<a href="/demo/tree/feature/x" tabindex="-1">
438<span class="lbl">feature/x</span>
439<span class="k">branch</span>
440</a>
441</li>
442<li data-k="branch main">
443<a href="/demo/tree/main" tabindex="-1">
444<span class="lbl">main</span>
445<span class="k">branch</span>
446</a>
447</li>
448<li data-k="tag v0.1.0">
449<a href="/demo/tree/v0.1.0" tabindex="-1">
450<span class="lbl">v0.1.0</span>
451<span class="k">tag</span>
452</a>
453</li>
454<li data-k="tag v0.2.0">
455<a href="/demo/tree/v0.2.0" tabindex="-1">
456<span class="lbl">v0.2.0</span>
457<span class="k">tag</span>
458</a>
459</li>
460<li data-k="repo quiet">
461<a href="/quiet" tabindex="-1">
462<span class="lbl">quiet</span>
463<span class="k">repo</span>
464</a>
465</li>
466</ul>
467<p class="panel-foot">
468<span>
469<kbd>↑</kbd>
470<kbd>↓</kbd> move</span>
471<span>
472<kbd>enter</kbd> open</span>
473<span>
474<kbd>esc</kbd> close</span>
475</p>
476</dialog>
477<div id="keys" hidden hx-on="k-j from:body -> ermite.move(1);
478 k-k from:body -> ermite.move(-1);
479 k-top from:body -> ermite.edge(false);
480 k-bottom from:body -> ermite.edge(true);
481 k-open from:body -> ermite.open();
482 k-right from:body -> ermite.rail(true);
483 k-left from:body -> ermite.rail(false);
484 k-esc from:body -> ermite.closeDialogs();
485 k-help from:body -> ermite.dialog('panel-help');
486 k-refs from:body -> ermite.dialog('panel-refs', 'refs-filter');
487 k-cmd from:body -> ermite.dialog('panel-cmd', 'cmd-q'); ermiteFinder.load();
488 k-filter from:body -> ermite.focusFilter();
489 k-gh from:body -> ermite.go('.brand');
490 k-s from:body -> ermite.tab('s');
491 k-t from:body -> ermite.tab('t');
492 k-c from:body -> ermite.tab('c');
493 k-r from:body -> ermite.tab('r');
494 k-m from:body -> ermite.tab('m');
495 k-next from:body -> ermite.nextNote();
496 k-split from:body -> ermite.layout('split');
497 k-unified from:body -> ermite.layout('unified');
498 k-collapse from:body -> ermite.collapse();
499 k-permalink from:body -> ermite.permalink();
500 k-merge from:body -> window.ermiteMR?.openMerge();
501 k-read from:body -> window.ermiteMR?.markRead();
502 k-gf from:body -> window.ermiteMR?.focusFiles()">
503</div>
504</body>
505</html>