Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions cmd/packer-sdc/internal/struct-markdown/struct_markdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,9 @@ func (cmd *Command) Run(args []string) int {
}
docsFolder = filepath.Join("content", "packer", latestVersion, "content", "partials")
break
} else {
projectRoot = dir
filePath, _ = filepath.Rel(projectRoot, absFilePath)
docsFolder = filepath.Join("website", "content", "partials")
break
}
// Packer repo without web-unified-docs: exit silently without generating docs
return 0
}
if base == "packer-plugin-sdk" {
projectRoot = dir
Expand All @@ -112,7 +109,7 @@ func (cmd *Command) Run(args []string) int {
}

if projectRoot == "" {
log.Fatal("Failed to guess project ROOT. If this is a Packer plugin project please make sure the root directory begins with`packer-plugin-*`")
log.Fatal("Failed to guess project ROOT. If this is a Packer plugin project please make sure the root directory begins with `packer-plugin-*`")
}

b, err := os.ReadFile(fname)
Expand Down
Loading