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>g g</kbd>
279<kbd>G</kbd>
280</dt>
281<dd>first / last row</dd>
282</div>
283<div>
284<dt>
285<kbd>/</kbd>
286</dt>
287<dd>filter the list; on Files, find a file in the repository</dd>
288</div>
289<div>
290<dt>
291<kbd>b</kbd>
292</dt>
293<dd>switch branch or tag</dd>
294</div>
295<div>
296<dt>
297<kbd>s</kbd>
298<kbd>t</kbd>
299<kbd>c</kbd>
300<kbd>r</kbd>
301<kbd>m</kbd>
302</dt>
303<dd>tabs: summary, files, commits, branches & tags, merge requests</dd>
304</div>
305<div>
306<dt>
307<kbd>g h</kbd>
308</dt>
309<dd>home</dd>
310</div>
311<div>
312<dt>
313<kbd>y</kbd>
314</dt>
315<dd>copy a permalink pinned to the commit</dd>
316</div>
317<div>
318<dt>
319<kbd>d</kbd>
320<kbd>u</kbd>
321<kbd>x</kbd>
322</dt>
323<dd>diff: split / unified / collapse or expand all</dd>
324</div>
325<div>
326<dt>
327<kbd>n</kbd>
328</dt>
329<dd>merge request: next note in the diff</dd>
330</div>
331<div>
332<dt>
333<kbd>esc</kbd>
334</dt>
335<dd>close a dialog, leave a field</dd>
336</div>
337</dl>
338</dialog>
339<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()">
340<div class="panel-head">
341<label for="refs-filter" class="sr">filter branches and tags</label>
342<input id="refs-filter" type="search" placeholder="Switch branch or tag…" autocomplete="off" data-pick="#panel-refs li" hx-on:input="ermite.filter(this)">
343<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
344<kbd>esc</kbd>
345</button>
346</div>
347<div class="panel-cols" data-picklist>
348<section aria-label="Branches">
349<h2>Branches <span class="count">2</span>
350</h2>
351<ul>
352<li>
353<a href="/demo/tree/feature/x">
354<span class="mark" aria-hidden="true"> </span>feature/x</a>
355</li>
356<li>
357<a href="/demo/tree/main" aria-current="true">
358<span class="mark" aria-hidden="true">●</span>main</a>
359</li>
360</ul>
361</section>
362<section aria-label="Tags">
363<h2>Tags <span class="count">2</span>
364</h2>
365<ul>
366<li>
367<a href="/demo/tree/v0.1.0">
368<span class="mark" aria-hidden="true"> </span>v0.1.0</a>
369</li>
370<li>
371<a href="/demo/tree/v0.2.0">
372<span class="mark" aria-hidden="true"> </span>v0.2.0</a>
373</li>
374</ul>
375</section>
376</div>
377</dialog>
378<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()">
379<div class="panel-head">
380<label for="cmd-q" class="sr">go to</label>
381<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)">
382<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
383<kbd>esc</kbd>
384</button>
385</div>
386<ul id="cmd-list" class="cmd-list" aria-label="Targets">
387<li data-k="go home" data-cursor>
388<a href="/" tabindex="-1">
389<span class="lbl">home</span>
390<span class="k">go</span>
391</a>
392</li>
393<li data-k="section summary">
394<a href="/demo" tabindex="-1">
395<span class="lbl">summary</span>
396<span class="k">section</span>
397</a>
398</li>
399<li data-k="section files">
400<a href="/demo/tree/main" tabindex="-1">
401<span class="lbl">files</span>
402<span class="k">section</span>
403</a>
404</li>
405<li data-k="section commits">
406<a href="/demo/commits/main" tabindex="-1">
407<span class="lbl">commits</span>
408<span class="k">section</span>
409</a>
410</li>
411<li data-k="section branches & tags">
412<a href="/demo/refs" tabindex="-1">
413<span class="lbl">branches & tags</span>
414<span class="k">section</span>
415</a>
416</li>
417<li data-k="section merge requests">
418<a href="/demo/merge-requests" tabindex="-1">
419<span class="lbl">merge requests</span>
420<span class="k">section</span>
421</a>
422</li>
423<li data-k="section actions">
424<a href="/demo/actions" tabindex="-1">
425<span class="lbl">actions</span>
426<span class="k">section</span>
427</a>
428</li>
429<li data-k="branch feature/x">
430<a href="/demo/tree/feature/x" tabindex="-1">
431<span class="lbl">feature/x</span>
432<span class="k">branch</span>
433</a>
434</li>
435<li data-k="branch main">
436<a href="/demo/tree/main" tabindex="-1">
437<span class="lbl">main</span>
438<span class="k">branch</span>
439</a>
440</li>
441<li data-k="tag v0.1.0">
442<a href="/demo/tree/v0.1.0" tabindex="-1">
443<span class="lbl">v0.1.0</span>
444<span class="k">tag</span>
445</a>
446</li>
447<li data-k="tag v0.2.0">
448<a href="/demo/tree/v0.2.0" tabindex="-1">
449<span class="lbl">v0.2.0</span>
450<span class="k">tag</span>
451</a>
452</li>
453<li data-k="repo quiet">
454<a href="/quiet" tabindex="-1">
455<span class="lbl">quiet</span>
456<span class="k">repo</span>
457</a>
458</li>
459</ul>
460<p class="panel-foot">
461<span>
462<kbd>↑</kbd>
463<kbd>↓</kbd> move</span>
464<span>
465<kbd>enter</kbd> open</span>
466<span>
467<kbd>esc</kbd> close</span>
468</p>
469</dialog>
470<div id="keys" hidden hx-on="k-j from:body -> ermite.move(1);
471 k-k from:body -> ermite.move(-1);
472 k-top from:body -> ermite.edge(false);
473 k-bottom from:body -> ermite.edge(true);
474 k-open from:body -> ermite.open();
475 k-esc from:body -> ermite.closeDialogs();
476 k-help from:body -> ermite.dialog('panel-help');
477 k-refs from:body -> ermite.dialog('panel-refs', 'refs-filter');
478 k-cmd from:body -> ermite.dialog('panel-cmd', 'cmd-q'); ermiteFinder.load();
479 k-filter from:body -> ermite.focusFilter();
480 k-gh from:body -> ermite.go('.brand');
481 k-s from:body -> ermite.tab('s');
482 k-t from:body -> ermite.tab('t');
483 k-c from:body -> ermite.tab('c');
484 k-r from:body -> ermite.tab('r');
485 k-m from:body -> ermite.tab('m');
486 k-next from:body -> ermite.nextNote();
487 k-split from:body -> ermite.layout('split');
488 k-unified from:body -> ermite.layout('unified');
489 k-collapse from:body -> ermite.collapse();
490 k-permalink from:body -> ermite.permalink()">
491</div>
492</body>
493</html>