diff --git a/api/router.go b/api/router.go
index 35f0f36f8..aaf6e7fba 100644
--- a/api/router.go
+++ b/api/router.go
@@ -69,9 +69,9 @@ func Router(c *ctx.AptlyContext) http.Handler {
router.Use(gin.Recovery(), gin.ErrorLogger())
if c.Config().EnableSwaggerEndpoint {
- router.GET("docs.html", func(c *gin.Context) {
- c.Data(http.StatusOK, "text/html; charset=utf-8", docs.DocsHTML)
- })
+ router.GET("docs.html", func(c *gin.Context) {
+ c.Data(http.StatusOK, "text/html; charset=utf-8", docs.DocsHTML)
+ })
router.Use(redirectSwagger)
url := ginSwagger.URL("/docs/doc.json")
router.GET("/docs/*any", ginSwagger.WrapHandler(swaggerFiles.Handler, url))
diff --git a/docs/Database.md b/docs/Database.md
new file mode 100644
index 000000000..8786b3ff5
--- /dev/null
+++ b/docs/Database.md
@@ -0,0 +1 @@
+# Aptly Database Operations
diff --git a/docs/Status.md b/docs/Status.md
index 72162d961..e19de2dbc 100644
--- a/docs/Status.md
+++ b/docs/Status.md
@@ -1,5 +1,10 @@
-
-## Aptly Status Information
-
+# Aptly Status Information
+
-asd wer
+## Something
+
+Very interesting ... asd wer
+
+
+
+
diff --git a/docs/docs.html b/docs/docs.html
index b614a2e59..b1f156deb 100644
--- a/docs/docs.html
+++ b/docs/docs.html
@@ -24,6 +24,25 @@
margin:0;
background: #fafafa;
}
+
+ .opblock-summary-description {
+ flex: 0 0 auto !important;
+ margin-left: auto !important;
+ margin-right: 2em;
+ font-weight: bold;
+ font-size: 15pt !important;
+ }
+
+ .opblock-tag-section > .opblock-tag > a {
+ color: grey !important;
+ align-self: flex-end;
+ font-size: 14pt;
+ width: 7em;
+ }
+
+ .swagger-ui .opblock-tag-section:not(.is-open) .opblock-tag .markdown > div {
+ display: none;
+ }
@@ -78,15 +97,15 @@
persistAuthorization: false ,
presets: [
SwaggerUIBundle.presets.apis,
- SwaggerUIStandalonePreset
+ SwaggerUIStandalonePreset.slice(1) // remote topbar
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
- layout: "StandaloneLayout",
+ layout: "StandaloneLayout",
docExpansion: "list",
deepLinking: true ,
- defaultModelsExpandDepth: 1
+ defaultModelsExpandDepth: 5
})
const defaultClientId = "";
diff --git a/main.go b/main.go
index d3c3c3a37..5485e5a2a 100644
--- a/main.go
+++ b/main.go
@@ -20,6 +20,9 @@ var Version string
// @contact.name Aptly
// @contact.url http://github.com/aptly-dev/aptly
+// @Tag.name Database
+// @Tag.description.markdown
+
// @Tag.name Status
// @Tag.description.markdown