From ee9b9b7b374985270f251c220c6a9064419d4ede Mon Sep 17 00:00:00 2001 From: Wilken Rivera Date: Mon, 13 Nov 2023 09:00:12 -0500 Subject: [PATCH] Allow packer-internal as project directory for struct-markdown command --- cmd/packer-sdc/internal/struct-markdown/struct_markdown.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/packer-sdc/internal/struct-markdown/struct_markdown.go b/cmd/packer-sdc/internal/struct-markdown/struct_markdown.go index 29a441ee4..966078d65 100644 --- a/cmd/packer-sdc/internal/struct-markdown/struct_markdown.go +++ b/cmd/packer-sdc/internal/struct-markdown/struct_markdown.go @@ -47,7 +47,7 @@ func (cmd *Command) Run(args []string) int { for dir := filepath.Dir(absFilePath); len(dir) > 0 && projectRoot == ""; dir = filepath.Dir(dir) { base := filepath.Base(dir) - if base == "packer" { + if base == "packer" || base == "packer-internal" { projectRoot = dir filePath, _ = filepath.Rel(projectRoot, absFilePath) docsFolder = filepath.Join("website", "content", "partials")