diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-07-14 18:13:22 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-07-16 02:44:02 +0000 |
| commit | 9a7f19270c50def47be5dc1a9b30d8655d7098c9 (patch) | |
| tree | 889533960475b82491644496d3af57bba167ca25 /web/templates/docs-index.html | |
| parent | 7cf03d3559d25377699c78085c6d722ba0aebae5 (diff) | |
feat: add authenticated /docs viewer for superpowers specs/plans
Renders docs/superpowers/{specs,plans}/*.md to HTML via goldmark,
served from doot's own web server behind the existing session auth
instead of as raw files. DOCS_DIR is configurable (defaults to
docs/superpowers relative to the working directory) so the deployed
server can point straight at the working repo and stay live-synced
with no separate copy/deploy step for new docs.
Diffstat (limited to 'web/templates/docs-index.html')
| -rw-r--r-- | web/templates/docs-index.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/web/templates/docs-index.html b/web/templates/docs-index.html new file mode 100644 index 0000000..c041a3f --- /dev/null +++ b/web/templates/docs-index.html @@ -0,0 +1,29 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>Docs</title> + <link rel="stylesheet" href="/static/css/output.css"> +</head> +<body class="min-h-screen bg-gray-900 text-slate-200 p-4"> + <div class="max-w-2xl mx-auto pt-6"> + <a href="/" class="text-sm text-slate-400 hover:text-slate-200 mb-4 inline-block">← Dashboard</a> + <h1 class="font-semibold text-xl mb-6">Docs</h1> + {{range .Categories}} + <div class="bg-gray-800 rounded-xl p-5 mb-4"> + <h2 class="font-semibold text-base mb-3 capitalize text-slate-100">{{.Name}}</h2> + {{if .Entries}} + <ul class="space-y-1"> + {{range .Entries}} + <li><a href="{{.URL}}" class="text-sm text-blue-400 hover:text-blue-300">{{.Name}}</a></li> + {{end}} + </ul> + {{else}} + <p class="text-sm text-slate-500">No files yet.</p> + {{end}} + </div> + {{end}} + </div> +</body> +</html> |
