From 865a0c92eb8a9b5c4a55ccd163a39b8ed20910cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Delafond?= Date: Mon, 30 Dec 2024 11:07:49 +0100 Subject: [PATCH] Rediff patches --- debian/patches/0001-disable-swagger.patch | 34 ++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/debian/patches/0001-disable-swagger.patch b/debian/patches/0001-disable-swagger.patch index bdfb5a09..e3f73797 100644 --- a/debian/patches/0001-disable-swagger.patch +++ b/debian/patches/0001-disable-swagger.patch @@ -11,7 +11,9 @@ This can be enabled once the following modules make it into Debian: api/router.go | 22 +++++++++++----------- docs/index.go | 10 ---------- docs/index.go.disabled | 10 ++++++++++ - 3 files changed, 21 insertions(+), 21 deletions(-) + man/aptly.1 | 3 ++- + man/aptly.1.ronn.tmpl | 3 ++- + 5 files changed, 25 insertions(+), 23 deletions(-) delete mode 100644 docs/index.go create mode 100644 docs/index.go.disabled @@ -87,3 +89,33 @@ index 0000000..ca4c914 + +//go:embed docs.html +var DocsHTML []byte +diff --git a/man/aptly.1 b/man/aptly.1 +index bd6ad22..11ed990 100644 +--- a/man/aptly.1 ++++ b/man/aptly.1 +@@ -111,8 +111,9 @@ The legacy json configuration is still supported (and also supports comments): + // Enable metrics for Prometheus client + "enableMetricsEndpoint": false, + ++ // Not implemented in this version\. + // Enable API documentation on /docs +- "enableSwaggerEndpoint": false, ++ //"enableSwaggerEndpoint": false, + + // OBSOLETE: use via url param ?_async=true + "AsyncAPI": false, +diff --git a/man/aptly.1.ronn.tmpl b/man/aptly.1.ronn.tmpl +index 203cc7f..ed2c87c 100644 +--- a/man/aptly.1.ronn.tmpl ++++ b/man/aptly.1.ronn.tmpl +@@ -100,8 +100,9 @@ The legacy json configuration is still supported (and also supports comments): + // Enable metrics for Prometheus client + "enableMetricsEndpoint": false, + ++ // Not implemented in this version. + // Enable API documentation on /docs +- "enableSwaggerEndpoint": false, ++ //"enableSwaggerEndpoint": false, + + // OBSOLETE: use via url param ?_async=true + "AsyncAPI": false,