add documentation site with markdown rendering (M12)

This commit is contained in:
2026-01-18 22:07:35 +01:00
parent 94a573f218
commit 8cb3cf769d
14 changed files with 4847 additions and 0 deletions

View File

@@ -219,6 +219,15 @@ func NewRouter(cfg *config.Config, db *database.DB) http.Handler {
})
}
// Documentation site
docsHandler, err := web.NewDocsHandler()
if err != nil {
log.Printf("Warning: Failed to initialize docs handler: %v", err)
} else {
r.Handle("/docs", docsHandler)
r.Handle("/docs/*", docsHandler)
}
// Static file servers for packages and assets
// Downloads - serve package files with proper headers
r.Handle("/downloads/*", http.StripPrefix("/downloads/",