From 9571833cdf800cc8d554fa737a92f7d7c5b3ef2b Mon Sep 17 00:00:00 2001 From: Bozhidara Hristova Date: Fri, 27 Feb 2026 10:19:33 +0200 Subject: [PATCH] Rename README.md files in file tree to index.md --- pkg/manifest/manifest.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/manifest/manifest.go b/pkg/manifest/manifest.go index 5d0a687e..907ec789 100644 --- a/pkg/manifest/manifest.go +++ b/pkg/manifest/manifest.go @@ -325,6 +325,10 @@ func constructNodeTree(files []string, node *Node, parent *Node) (bool, error) { return changed, err } fileName := path.Base(file) + // Rename README.md files to index.md + if strings.EqualFold(fileName, "README.md") { + fileName = "index.md" + } filePath, err := link.Build(node.Path, path.Dir(file)) if err != nil { return changed, err