mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-08 05:50:47 +00:00
docs: improve swagger
- use markdown files in swagger - automate version, use swager.conf template - embed swagger ui index.html as docs.html
This commit is contained in:
+7
-1
@@ -1,3 +1,9 @@
|
||||
package docs
|
||||
|
||||
import _ "github.com/swaggo/swag" // make sure swag is in go.mod
|
||||
import (
|
||||
_ "embed"
|
||||
_ "github.com/swaggo/swag" // make sure swag is in go.mod
|
||||
)
|
||||
|
||||
//go:embed docs.html
|
||||
var DocsHTML []byte
|
||||
|
||||
Reference in New Issue
Block a user