diff --git a/changelog/unreleased/prepare-release-fix.md b/changelog/unreleased/prepare-release-fix.md new file mode 100644 index 0000000000..7aa302f18f --- /dev/null +++ b/changelog/unreleased/prepare-release-fix.md @@ -0,0 +1,7 @@ +Bugfix: Use lower-case name for changelog directory + +When preparing a new release, the changelog entries need to be copied to the +changelog folder under docs. In a previous change, all these folders were made +to have lower case names, resulting in creation of a separate folder. + +https://github.com/cs3org/reva/pull/1025 diff --git a/docs/content/en/docs/Changelog/1.0.0/_index.md b/docs/content/en/docs/changelog/1.0.0/_index.md similarity index 100% rename from docs/content/en/docs/Changelog/1.0.0/_index.md rename to docs/content/en/docs/changelog/1.0.0/_index.md diff --git a/tools/prepare-release/main.go b/tools/prepare-release/main.go index bdba305a38..5e660537bf 100644 --- a/tools/prepare-release/main.go +++ b/tools/prepare-release/main.go @@ -113,8 +113,8 @@ func main() { run(cmd) // Generate changelog also in the documentation - if err := os.MkdirAll(fmt.Sprintf("docs/content/en/docs/Changelog/%s", *version), 0755); err != nil { - fmt.Fprintf(os.Stderr, "error creating docs/content/en/docs/Changelog/%s: %s", *version, err) + if err := os.MkdirAll(fmt.Sprintf("docs/content/en/docs/changelog/%s", *version), 0755); err != nil { + fmt.Fprintf(os.Stderr, "error creating docs/content/en/docs/changelog/%s: %s", *version, err) os.Exit(1) } @@ -136,7 +136,7 @@ description: > `, *version, *version, *version, date) releaseDocs += string(data) - if err := ioutil.WriteFile(fmt.Sprintf("docs/content/en/docs/Changelog/%s/_index.md", *version), []byte(releaseDocs), 0644); err != nil { + if err := ioutil.WriteFile(fmt.Sprintf("docs/content/en/docs/changelog/%s/_index.md", *version), []byte(releaseDocs), 0644); err != nil { fmt.Fprintf(os.Stderr, "error writing docs release file _index.md: %s", err) os.Exit(1) } @@ -146,7 +146,7 @@ description: > "CHANGELOG.md", "VERSION", "RELEASE_DATE", - "docs/content/en/docs/Changelog", + "docs/content/en/docs/changelog", ) if *commit {