Skip to content

Commit

Permalink
Allow packer-internal as project directory for struct-markdown command
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilken Rivera committed Nov 13, 2023
1 parent 4fb8273 commit ee9b9b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/packer-sdc/internal/struct-markdown/struct_markdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit ee9b9b7

Please sign in to comment.