Skip to content

Commit

Permalink
packer-sdc/struct-markdown: Allow packer-internal as project director…
Browse files Browse the repository at this point in the history
…y for testing purposes

This change is being made to allow the invocation of struct-markdown to work against the internal
Packer testing repo. The purpose of the repo is to allow for automated testing against unreleased versions of
the Packer SDK.
  • Loading branch information
nywilken committed Nov 13, 2023
1 parent 4fb8273 commit c6d974b
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
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 c6d974b

Please sign in to comment.