Skip to content

Commit

Permalink
Update release.go to auto-patch paths
Browse files Browse the repository at this point in the history
  • Loading branch information
leaanthony committed Aug 8, 2022
1 parent fb7f84a commit 62526a3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion v2/tools/release/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,15 @@ func main() {
s.ECHO("Removing old version: " + oldestVersion)
s.CD("versioned_docs")
s.RMDIR("version-" + oldestVersion)
s.CD("../versioned_sidebars")
s.CD("version-" + newVersion + "/gettingstarted")
s.REPLACEALL("firstproject.mdx", s.Sub{
"../../src/components/frameworktabs": "../../../src/components/frameworktabs",
})
s.REPLACEALL("installation.mdx", s.Sub{
"../../src/components/tabinstall": "../../../src/components/tabinstall",
})

s.CD("../../../versioned_sidebars")
s.RM("version-" + oldestVersion + "-sidebars.json")

}

0 comments on commit 62526a3

Please sign in to comment.