File: 0003-Add-an-option-to-generate-the-manual-pages.patch

package info (click to toggle)
docker-buildx 0.19.3%2Bds1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,852 kB
  • sloc: sh: 318; makefile: 73
file content (27 lines) | stat: -rw-r--r-- 757 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Nicolas Peugnet <nicolas.peugnet@lip6.fr>
Date: Tue, 18 Feb 2025 18:41:00 +0100
Subject: Add an option to generate the manual pages

For an unknown reason, Docker authors disabled the manual pages
generation from their docs generator. This patch allows to use it.

Forwarded: not-needed
---
 docs/generate.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/docs/generate.go b/docs/generate.go
index 0cd0033..343f521 100644
--- a/docs/generate.go
+++ b/docs/generate.go
@@ -75,6 +75,10 @@ func gen(opts *options) error {
 
 	for _, format := range opts.formats {
 		switch format {
+		case "man":
+			if err = c.GenManTree(cmd); err != nil {
+				return err
+			}
 		case "md":
 			if err = c.GenMarkdownTree(cmd); err != nil {
 				return err