diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-05 14:47:52 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-05 16:59:25 +0800 |
commit | ab4f8ebdcbc13ab7556023a212e067d472d22069 (patch) | |
tree | a72e084c875a2a4382258fc60a1ae158a8246052 /resources.go | |
parent | Reduce unnecessary allocations when converting []byte to string (diff) | |
download | forge-ab4f8ebdcbc13ab7556023a212e067d472d22069.tar.gz forge-ab4f8ebdcbc13ab7556023a212e067d472d22069.tar.zst forge-ab4f8ebdcbc13ab7556023a212e067d472d22069.zip |
Remove man pages
They're better documented on the Web
Diffstat (limited to 'resources.go')
-rw-r--r-- | resources.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/resources.go b/resources.go index 85d4d7e..48e8ff4 100644 --- a/resources.go +++ b/resources.go @@ -22,7 +22,6 @@ var sourceHandler = http.StripPrefix( ) //go:embed templates/* static/* -//go:embed man/*.html man/*.txt man/*.css //go:embed hookc/hookc git2d/git2d var resourcesFS embed.FS @@ -72,10 +71,9 @@ func loadTemplates() (err error) { var ( staticHandler http.Handler - manHandler http.Handler ) -// This init sets up static and man handlers. The resulting handlers must be +// This init sets up static handlers. The resulting handlers must be // used in the HTTP router, and do nothing unless called from elsewhere. func init() { staticFS, err := fs.Sub(resourcesFS, "static") @@ -83,9 +81,4 @@ func init() { panic(err) } staticHandler = http.StripPrefix("/-/static/", http.FileServer(http.FS(staticFS))) - manFS, err := fs.Sub(resourcesFS, "man") - if err != nil { - panic(err) - } - manHandler = http.StripPrefix("/-/man/", http.FileServer(http.FS(manFS))) } |