From 9a7f19270c50def47be5dc1a9b30d8655d7098c9 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Tue, 14 Jul 2026 18:13:22 +0000 Subject: 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. --- web/templates/docs-index.html | 29 +++++++++++++++++++++++++++++ web/templates/docs-view.html | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 web/templates/docs-index.html create mode 100644 web/templates/docs-view.html (limited to 'web/templates') 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 @@ + + + + + + Docs + + + +
+ ← Dashboard +

Docs

+ {{range .Categories}} +
+

{{.Name}}

+ {{if .Entries}} +
    + {{range .Entries}} +
  • {{.Name}}
  • + {{end}} +
+ {{else}} +

No files yet.

+ {{end}} +
+ {{end}} +
+ + diff --git a/web/templates/docs-view.html b/web/templates/docs-view.html new file mode 100644 index 0000000..396e846 --- /dev/null +++ b/web/templates/docs-view.html @@ -0,0 +1,36 @@ + + + + + + {{.Title}} + + + + +
+ ← Docs +
+ {{.Body}} +
+
+ + -- cgit v1.2.3