Skip to content

Commit f40c68e

Browse files
committed
[Env] Add publish docs script
1 parent 614ca1c commit f40c68e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

bin/publish-setDocs.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
OLD_VERSION=$1
3+
NEW_VERSION=$2
4+
HOME=$(pwd)
5+
6+
# shellcheck disable=SC2164
7+
cd "$HOME"/docs/
8+
9+
sed -i '' "s/${OLD_VERSION}/${NEW_VERSION}/g" mkdocs.yml
10+
11+
# shellcheck disable=SC2164
12+
cd "$HOME"

0 commit comments

Comments
 (0)