Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"clean": "rm -rf ./processed-docs ./processed-docs ./build",
"version::stables": "ts-node ./scripts/setStable.ts",
"serve": "serve build",
"version": "yarn build && docusaurus docs:version"
"version": "yarn version::stables && ./scripts/cut_version.sh"
},
"dependencies": {
"@docusaurus/core": "^3.0.1",
Expand Down
16 changes: 16 additions & 0 deletions docs/scripts/cut_version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -eu

cd $(dirname "$0")/..

VERSION=$1

# We assume that the new release tag has been made on github, so setStable.ts will add this to `versions.json`.
# We don't have a version of the docs for this release however (that's what we're doing right now!) so we need to remove it.
jq 'map(select(. != "'"$VERSION"'"))' versions.json > tmp.json && mv tmp.json versions.json

# We need to build the docs in order to perform all necessary preprocessing.
yarn build

# Finally cut the actual new docs version.
yarn docusaurus docs:version $VERSION