add documentation

This commit is contained in:
zyl 2024-11-12 17:51:12 -08:00
parent 772764ea91
commit 15511adfdf
Signed by: zyl
SSH key fingerprint: SHA256:uxxbSXbdroP/OnKBGnEDk5q7EKB2razvstC/KmzdXXs
11 changed files with 588 additions and 0 deletions

View file

@ -21,13 +21,16 @@
<a class="name" href="/">webdog</a>
</span>
<span class="spacer"></span>
<a href="/docs/">documentation</a> |
<a href="/blog/">blog</a> |
<a href="https://github.com/zyllian/webdog" rel="noopener noreferrer">github</a>
</header>
<div id="content">
{% block precontent %}{% endblock precontent %}
<main class="page">
{% block content %}{{ page | safe }}{% endblock content %}
</main>
{% block postcontent %}{% endblock postcontent %}
</div>
</body>

20
site/templates/docs.tera Normal file
View file

@ -0,0 +1,20 @@
{% extends "base.tera" %}
{% macro docLink(text, href, first=false) %}
{% if not first %}&bullet; {% endif %}
<a href="/docs/{{href}}">{{ text }}</a>
{% endmacro docLink %}
{% block content %}
<div class="docs-links">
{{ self::docLink(text="docs", href="", first=true) }}
{{ self::docLink(text="commands", href="commands") }}
{{ self::docLink(text="configuration", href="config") }}
{{ self::docLink(text="pages", href="pages") }}
{{ self::docLink(text="templates", href="templates") }}
{{ self::docLink(text="styling", href="styling") }}
{{ self::docLink(text="resources", href="resources") }}
{{ self::docLink(text="webdog assumptions", href="wd-assumptions") }}
</div>
{{ page | safe }}
{% endblock precontent %}