add documentation site with markdown rendering (M12)
This commit is contained in:
@@ -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/",
|
||||
|
||||
Reference in New Issue
Block a user