feat(docs): create sukr documentation site with fixes

Self-documenting docs site built with sukr itself (dogfooding):

Core changes:
- Rename package from nrd-sh to sukr
- Move personal site to sites/nrd.sh/
- Update AGENTS.md and README.md

Documentation site (docs/):
- Add site.toml with sukr.io base URL
- Create docs-specific templates with sidebar navigation
- Add dark theme CSS with syntax highlighting colors
- Document all features: templates, sections, syntax highlighting,
  mermaid diagrams, and LaTeX math rendering

Bug fixes:
- Render individual pages for all sections (not just blog type)
- Add #[source] error chaining for Tera template errors
- Print full error chain in main() for better debugging
This commit is contained in:
Timothy DeHerrera
2026-01-31 16:13:15 -07:00
parent 8c806d1654
commit 69cd81621f
8 changed files with 249 additions and 51 deletions

View File

@@ -1,37 +1,26 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{{ title }} | {{ config.title }}</title>
<link rel="canonical" href="{{ base_url }}{{ page_path }}" />
<link rel="stylesheet" href="{{ prefix }}/style.css" />
</head>
<body>
<aside class="sidebar">
<header>
<a href="{{ prefix }}/index.html" class="logo">sukr</a>
<span class="tagline">suckless static sites</span>
</header>
<nav>
{% for item in nav %}
<a
href="{{ prefix }}{{ item.path }}"
{%
if
page_path=""
="item.path"
%}
class="active"
{%
endif
%}
>{{ item.label }}</a
>
{% endfor %}
</nav>
</aside>
<main>{% block content %}{% endblock content %}</main>
</body>
</html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{{ title }} | {{ config.title }}</title>
<link rel="canonical" href="{{ base_url }}{{ page_path }}" />
<link rel="stylesheet" href="{{ prefix }}/style.css" />
</head>
<body>
<aside class="sidebar">
<header>
<a href="{{ prefix }}/index.html" class="logo">sukr</a>
<span class="tagline">suckless static sites</span>
</header>
<nav>
{% for item in nav %}<a href="{{ prefix }}{{ item.path }}" {% if page_path==item.path %} class="active" {% endif
%}>{{ item.label }}</a>{% endfor %}
</nav>
</aside>
<main>{% block content %}{% endblock content %}</main>
</body>
</html>