summaryrefslogtreecommitdiff
path: root/internal/config/config.go
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-07-14 18:13:22 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-07-16 02:44:02 +0000
commit9a7f19270c50def47be5dc1a9b30d8655d7098c9 (patch)
tree889533960475b82491644496d3af57bba167ca25 /internal/config/config.go
parent7cf03d3559d25377699c78085c6d722ba0aebae5 (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 'internal/config/config.go')
-rw-r--r--internal/config/config.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/config/config.go b/internal/config/config.go
index f4baeef..e6bc19a 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -26,6 +26,7 @@ type Config struct {
MigrationDir string
TemplateDir string
StaticDir string
+ DocsDir string // root of superpowers spec/plan docs, served read-only at /docs
// Server
Port string
@@ -72,6 +73,7 @@ func Load() (*Config, error) {
MigrationDir: getEnvWithDefault("MIGRATION_DIR", "migrations"),
TemplateDir: getEnvWithDefault("TEMPLATE_DIR", "web/templates"),
StaticDir: getEnvWithDefault("STATIC_DIR", "web/static"),
+ DocsDir: getEnvWithDefault("DOCS_DIR", "docs/superpowers"),
// Server
Port: getEnvWithDefault("PORT", "8080"),