Skip to content

Commit

Permalink
version 8.3: reviewable steps (#2718)
Browse files Browse the repository at this point in the history
* chore: update cutNewVersions with new version numbers

* version: sidebars

* version: version manifests

* version: redirects

* chore: show/hide correct version banners, and customize the label for Optimize 3.11

* chore: redirects for content that moved between 8.2 and 8.3

* oops: swap the version numbers for 8.3 label

* fix: map new versions to each other so cross-instance shortcuts can be resolved
  • Loading branch information
pepopowitz authored Oct 9, 2023
1 parent 8c18df2 commit 9c036e9
Show file tree
Hide file tree
Showing 10 changed files with 4,952 additions and 545 deletions.
15 changes: 12 additions & 3 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,17 @@ module.exports = {
sidebarPath: require.resolve("./optimize_sidebars.js"),
editUrl: "https://github.com/camunda/camunda-docs/edit/main/",
versions: {
"3.11.0": {
label: "8.3 / 3.11.0",
},
"3.10.0": {
banner: "none",
},
"3.9.0": {
banner: "none",
},
"3.8.0": {
// surprising, yes, but true: 3.8 should show unsupported banner, but 3.7 should not.
"3.7.0": {
banner: "none",
},
},
Expand Down Expand Up @@ -239,10 +246,10 @@ module.exports = {
beforeDefaultRemarkPlugins: [versionedLinks],
// 👋 When cutting a new version, remove the banner for maintained versions by adding an entry. Remove the entry to versions >18 months old.
versions: {
8.1: {
8.2: {
banner: "none",
},
"8.0": {
8.1: {
banner: "none",
},
},
Expand All @@ -261,9 +268,11 @@ module.exports = {
"/docs/1.3/**",
"/docs/8.0/**",
"/docs/8.1/**",
"/docs/8.2/**",
"/optimize/3.7.0/**",
"/optimize/3.8.0/**",
"/optimize/3.9.0/**",
"/optimize/3.10.0/**",
"/optimize/next/**",
],
},
Expand Down
8 changes: 4 additions & 4 deletions hacks/cutNewVersions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
set -e

# Before running this script make sure these versions are correct!
NEW_DOCS_VERSION="8.2"
PREVIOUS_DOCS_VERSION="8.1"
NEW_OPTIMIZE_VERSION="3.10.0"
PREVIOUS_OPTIMIZE_VERSION="3.9.0"
NEW_DOCS_VERSION="8.3"
PREVIOUS_DOCS_VERSION="8.2"
NEW_OPTIMIZE_VERSION="3.11.0"
PREVIOUS_OPTIMIZE_VERSION="3.10.0"

echo "1/5 Creating version $NEW_DOCS_VERSION of main docs..."
npm run docusaurus docs:version $NEW_DOCS_VERSION
Expand Down
Loading

0 comments on commit 9c036e9

Please sign in to comment.