From d1c1671a54b34b285e5ad7821809ae4a1dacf317 Mon Sep 17 00:00:00 2001 From: divolgin Date: Fri, 30 Jan 2026 16:34:57 -0800 Subject: [PATCH] Fix CLI docs generation --- dagger/docs.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dagger/docs.go b/dagger/docs.go index d9c7f68f0..35d248606 100644 --- a/dagger/docs.go +++ b/dagger/docs.go @@ -196,22 +196,22 @@ func replaceFilenamesInSidebar(sidebarContent string, newDocFilenames []string) continue } - if strings.Contains(line, `'reference/replicated'`) { // CLI root command that is also generated. + if strings.Contains(line, `"reference/replicated"`) { // CLI root command that is also generated. continue } - if strings.Contains(line, `label: 'Replicated CLI'`) { - newDocLines = append(newDocLines, ` label: 'Replicated CLI', // This label is generated. Do not edit.`) + if strings.Contains(line, `label: "Replicated CLI"`) { + newDocLines = append(newDocLines, ` label: "Replicated CLI", // This label is generated. Do not edit.`) foundCLILabel = true continue } if foundCLILabel && !wroteNewList && strings.Contains(line, `items: [`) { newDocLines = append(newDocLines, ` items: [ // This list is generated. Do not edit.`) - // 'reference/replicated-cli-installing' is a special file that's not a CLI doc and should at the top of the list - newDocLines = append(newDocLines, ` 'reference/replicated-cli-installing',`) + // "reference/replicated-cli-installing" is a special file that's not a CLI doc and should at the top of the list + newDocLines = append(newDocLines, ` "reference/replicated-cli-installing",`) for _, newDocFilename := range newDocFilenames { - newDocLines = append(newDocLines, fmt.Sprintf(` 'reference/%s',`, strings.TrimSuffix(newDocFilename, filepath.Ext(newDocFilename)))) + newDocLines = append(newDocLines, fmt.Sprintf(` "reference/%s",`, strings.TrimSuffix(newDocFilename, filepath.Ext(newDocFilename)))) } wroteNewList = true continue