Skip to content

Commit a66ccab

Browse files
committed
Fix rendering of external groups in READMEs
Documentations rendering was looking for fields in the built directory, there the external fields have been already resolved and they don't include the external key. For legacy reasons, elastic-package only renders groups in READMEs when they are external, so these fields were not being rendered.
1 parent d38ab6c commit a66ccab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/docs/readme.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func UpdateReadmes(repositoryRoot *os.Root, packageRoot, packageBuildRoot string
131131
func updateReadme(fileName, linksFilePath, packageRoot, packageBuildRoot string) (string, error) {
132132
logger.Debugf("Update the %s file", fileName)
133133

134-
rendered, shouldBeRendered, err := generateReadme(fileName, linksFilePath, packageRoot, packageBuildRoot)
134+
rendered, shouldBeRendered, err := generateReadme(fileName, linksFilePath, packageBuildRoot, packageRoot)
135135
if err != nil {
136136
return "", err
137137
}

0 commit comments

Comments
 (0)