Improve doc navigation
This commit is contained in:
parent
9ed527779e
commit
a01eb69296
2 changed files with 37 additions and 7 deletions
|
|
@ -485,3 +485,10 @@ label input {
|
|||
.debug-toggle-label {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
div nav {
|
||||
text-align: right;
|
||||
}
|
||||
div.tutnav p {
|
||||
text-align: center;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,10 +2,33 @@
|
|||
<head id="head">
|
||||
</head>
|
||||
<body id="body">
|
||||
<h1 :text="$page.title"></h1>
|
||||
<div :html="$page.content()"></div>
|
||||
<hr>
|
||||
<p>If you find anything that could be better, because it does not reflect
|
||||
what happens with flow or can be explain better, don't hesitate to
|
||||
<a href="$page.custom.getOr('githubedit', 'https://github.com/neurocyte/flow-website/')">improve me</a>.</p>
|
||||
<h1 :text="$page.title"></h1>
|
||||
<div :html="$page.content()"></div>
|
||||
|
||||
<div class="tutnav">
|
||||
<p>
|
||||
<ctx :if="$page.custom.get?('prevurl')">← <a href="$page.custom.get('prevurl')" :text="$page.custom.get('prevtext')"></a></ctx>
|
||||
<ctx :if="$page.custom.get?('topurl')">
|
||||
; <a href="$page.custom.get('topurl')" :text="$page.custom.get('toptext')"></a>
|
||||
;
|
||||
</ctx>
|
||||
<ctx :if="$page.custom.has('nexturl')"><a href="$page.custom.get('nexturl')" :text="$page.custom.get('nexttext')"></a></ctx>
|
||||
<ctx :if="$page.custom.has('nexturl').not()">
|
||||
<ctx :if="$page.custom.has('codepath')"><a href="$page.custom.get('codepath').prefix('https://github.com/neurocyte/flow/tree/master/')">Code</a></ctx>
|
||||
<ctx :if="$page.custom.has('codepath').not()"><a href="https://github.com/neurocyte/flow">Code</a>
|
||||
→</ctx>
|
||||
</ctx>→
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<nav id="menu" class="nav">
|
||||
<ctx about="$site.page('')">🗃 <a href="$ctx.about.link()">home</a></ctx>
|
||||
<ctx :if="$site.page('devlog').subpages().first?()">🖆 <a href="$if.link()">devlog</a></ctx>
|
||||
<ctx about="$site.page('community')">🗣 <a href="https://discord.com/invite/4wvteUPphx">discord</a></ctx>
|
||||
<ctx :if="$page.custom.get?('codepath')">🍴 <a href="$page.custom.get('codepath').prefix('https://github.com/neurocyte/flow/tree/master/')">code</a></ctx>
|
||||
<ctx :if="$page.custom.has('codepath').not()">🍴 <a href="https://github.com/neurocyte/flow">code</a></ctx>
|
||||
<ctx about="$site.page('community')">✎ <a href="$page.custom.getOr('githubedit', 'https://github.com/neurocyte/flow-website/')">fix</a></ctx>
|
||||
</nav>
|
||||
</div>
|
||||
</body>
|
||||
Loading…
Add table
Add a link
Reference in a new issue