Skip to content

Commit d459616

Browse files
dgageotArthurFlag
authored andcommitted
Fix the docs generation
Signed-off-by: David Gageot <[email protected]>
1 parent 49dca16 commit d459616

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.dockerignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
!/go.mod
55
!/go.sum
66
!/.golangci.yml
7-
!/vendor
7+
!/vendor
8+
!/docs

docs/generator/generate.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
package main
22

33
import (
4+
"context"
45
"log"
56
"os"
67
"strings"
78

89
clidocstool "github.com/docker/cli-docs-tool"
910
"github.com/docker/cli/cli/command"
10-
"github.com/docker/mcp-gateway/cmd/docker-mcp"
1111
"github.com/pkg/errors"
1212
"github.com/spf13/cobra"
1313
"github.com/spf13/pflag"
14+
15+
"github.com/docker/mcp-gateway/cmd/docker-mcp/commands"
1416
)
1517

1618
const defaultSourcePath = "/reference/"
@@ -33,7 +35,7 @@ func gen(opts *options) error {
3335
DisableAutoGenTag: true,
3436
}
3537

36-
cmd.AddCommand(commands.NewRootCmd(dockerCLI))
38+
cmd.AddCommand(commands.Root(context.TODO(), "", dockerCLI))
3739

3840
c, err := clidocstool.New(clidocstool.Options{
3941
Root: cmd,
@@ -104,4 +106,4 @@ func fixUpExperimentalCLI(cmd *cobra.Command) {
104106
for _, c := range cmd.Commands() {
105107
fixUpExperimentalCLI(c)
106108
}
107-
}
109+
}

0 commit comments

Comments
 (0)