feat: legacy import — packs, examples, lab, themes, docs, lineage

Import from agentic-semantic-web/ into restructured repo:
- 7 packs (apache, caddy, flask, hugo, nginx, pandoc, python)
- shared error pages (403-503)
- 17 lab experiments (boilerplate, charts, misc)
- 31 example pages (charts, components, content, layout, vault)
- 2 themes (garden, trentuna stub)
- 4 docs (llms.txt, vocabulary, philosophy, agent-directive)
- lineage.md (Pico/Open Props/Charts.css history)
- Hugo mounts for lab/ and examples/

All agentic.css references updated to asw.css.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ludo 2026-04-11 16:57:39 +02:00
parent e9895cf90d
commit 86464f3e21
Signed by: ludo
GPG key ID: F6E479DEFAB84D6E
100 changed files with 14700 additions and 4 deletions

View file

@ -0,0 +1,73 @@
# ASW — Agentic Semantic Web site
# Self-contained server block. Proxied from trentuna at /asw/.
# Future: point asw.trentuna.com directly at port 8044.
server {
listen 8044;
listen [::]:8044;
server_name _;
root /home/exedev/projects/agentic-semantic-web;
index index.html;
ssi on;
error_page 403 /errors/403.html;
error_page 404 /errors/404.html;
error_page 500 /errors/500.html;
error_page 502 /errors/502.html;
error_page 503 /errors/503.html;
location /errors/ {
alias /home/exedev/projects/agentic-semantic-web/errors/;
internal;
}
# Block source/build files — not for public consumption
location ~ ^/(src|content|templates|node_modules|packs|dist)(/?$|/) {
return 404;
}
location ~ \.(sh|lua|lock)$ {
return 404;
}
# docs/ — directory listing with ASW styling injected into autoindex responses.
# Target patterns unique to nginx autoindex output:
# - '<head><title>Index of' — only in autoindex, never in hand-crafted HTML
# - '<body bgcolor="white">' — only in autoindex
# Hand-crafted HTML pages in /docs/ are NOT affected.
location /docs/ {
autoindex on;
try_files $uri $uri/ =404;
sub_filter '<head><title>Index of' '<head>
<link rel="stylesheet" href="/asw.css">
<meta name="color-scheme" content="dark">
<style>
body{padding:2rem;max-inline-size:64ch}
h1{font-size:1rem;font-weight:500;color:var(--text-2);margin-block-end:1.5rem}
a{color:var(--blue-3);text-decoration:none}a:hover{text-decoration:underline}
pre{font-family:var(--font-mono,"JetBrains Mono",monospace);line-height:1.8}
hr{border:none;border-block-start:1px solid var(--stone-7)}
</style>
<title>Index of';
sub_filter '<body bgcolor="white">' '<body>';
sub_filter_once on;
}
# lab/ — now has index.html; subdirs with autoindex still styled via sub_filter
location /lab/ {
try_files $uri $uri/ =404;
}
# Hugo demo — ASW-Hugo pack showcase (serves lab/hugo-demo/public/)
location /hugo-demo/ {
alias /home/exedev/projects/agentic-semantic-web/lab/hugo-demo/public/;
index index.html;
try_files $uri $uri/ =404;
}
location / {
try_files $uri $uri/ =404;
}
}