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. --- cmd/dashboard/main.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmd/dashboard') diff --git a/cmd/dashboard/main.go b/cmd/dashboard/main.go index eced067..72fe78e 100644 --- a/cmd/dashboard/main.go +++ b/cmd/dashboard/main.go @@ -308,6 +308,10 @@ func main() { r.Get("/api/boards", h.HandleGetBoards) r.Get("/api/shopping", h.HandleGetShoppingList) + // Docs -- read-only rendered view of docs/superpowers specs and plans + r.Get("/docs", h.HandleDocsIndex) + r.Get("/docs/{category}/{filename}", h.HandleDocsView) + // Tab routes for HTMX r.Get("/tabs/tasks", h.HandleTabTasks) r.Get("/tabs/planning", h.HandleTabPlanning) -- cgit v1.2.3