File tree 5 files changed +59
-8
lines changed
5 files changed +59
-8
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ content:
13
13
sources :
14
14
- url : https://github.com/stackabletech/documentation.git
15
15
branches : main
16
+ tags : docs/*
16
17
17
18
- url : https://github.com/stackabletech/stackablectl.git
18
19
branches : main
Original file line number Diff line number Diff line change 1
1
name : home
2
- version : master
2
+ version : " nightly "
3
3
title : Stackable Documentation
4
4
nav :
5
5
- modules/ROOT/nav.adoc
8
8
- modules/reference/nav.adoc
9
9
- modules/operators/nav.adoc
10
10
- modules/contributor/nav.adoc
11
- - modules/ROOT/nav2.adoc
11
+ - modules/ROOT/nav2.adoc
12
+ prerelease : true
Original file line number Diff line number Diff line change 13
13
content :
14
14
sources :
15
15
- url : ./
16
+ tags : docs/*
16
17
branches : HEAD
17
18
18
19
- url : https://github.com/stackabletech/stackablectl.git
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ # Creates two commits:
5
+ # - the first commit with the new version and tagged
6
+ # - the second commit bumped back to nightly
7
+
8
+ if [ ! $# -eq 1 ]
9
+ then
10
+ echo " Version required. I.e.: ./script.sh 22.06"
11
+ exit 1
12
+ fi
13
+
14
+ if [ ! -z " $( git status --porcelain) " ]; then
15
+ echo " There are uncommitted changes, please resolve before running this script."
16
+ exit 1
17
+ fi
18
+
19
+ export new_version=" $1 "
20
+
21
+ docs_dir=" $( dirname " $0 " ) /.."
22
+ antora_file=$docs_dir /antora.yml
23
+
24
+ branch_name=" version-bump-$new_version "
25
+
26
+ git checkout -b " $branch_name "
27
+
28
+
29
+ echo " Updating $antora_file to version $new_version "
30
+ yq eval --inplace ' .version = strenv(new_version)' $antora_file
31
+ yq eval --inplace ' .prerelease = false' $antora_file
32
+
33
+ echo " Committing ..."
34
+ git add " $antora_file "
35
+ git commit -m " Set version $new_version "
36
+ git tag -a " docs/$new_version " -m " Documentation for release $new_version "
37
+
38
+ echo " Updating $antora_file to nightly"
39
+ yq eval --inplace ' .version = "nightly"' $antora_file
40
+ yq eval --inplace ' .prerelease = true' $antora_file
41
+
42
+ echo " Committing..."
43
+ git add " $antora_file "
44
+ git commit -m " Bumped back to nightly"
45
+
46
+ echo " "
47
+ echo " Done! Please push manually:"
48
+ echo " git push --set-upstream origin $branch_name "
Original file line number Diff line number Diff line change 1
- <a class =" navbar-sub-item" href =" {{{ relativize " /home/index.html" }}} " >Home</a >
2
- <a class =" navbar-sub-item" href =" {{{ relativize " /home/getting_started.html" }}} " >Getting Started</a >
3
- <a class =" navbar-sub-item" href =" {{{ relativize " /home/concepts/index.html" }}} " >Concepts</a >
4
- <a class =" navbar-sub-item" href =" {{{ relativize " /home/tutorials/end-to-end_data_pipeline_example.html" }}} " >Tutorials</a >
1
+ <a class =" navbar-sub-item" href =" {{{ relativize " /home/stable/ index.html" }}} " >Home</a >
2
+ <a class =" navbar-sub-item" href =" {{{ relativize " /home/stable/ getting_started.html" }}} " >Getting Started</a >
3
+ <a class =" navbar-sub-item" href =" {{{ relativize " /home/stable/ concepts/index.html" }}} " >Concepts</a >
4
+ <a class =" navbar-sub-item" href =" {{{ relativize " /home/stable/ tutorials/end-to-end_data_pipeline_example.html" }}} " >Tutorials</a >
5
5
<a class =" navbar-sub-item" href =" {{{ relativize " /stackablectl/stable/index.html" }}} " >stackablectl</a >
6
6
<div class =" navbar-sub-item drop-down" >
7
7
Operators
8
8
<div class =" drop-down-content" >
9
- <a class =" drop-down-item" href =" {{{ relativize " /home/operators/index.html" }}} " >Overview</a >
9
+ <a class =" drop-down-item" href =" {{{ relativize " /home/stable/ operators/index.html" }}} " >Overview</a >
10
10
<a class =" drop-down-item" href =" {{{ relativize " /airflow/stable/index.html" }}} " >Apache Airflow</a >
11
11
<a class =" drop-down-item" href =" {{{ relativize " /druid/stable/index.html" }}} " >Apache Druid</a >
12
12
<a class =" drop-down-item" href =" {{{ relativize " /hbase/stable/index.html" }}} " >Apache HBase</a >
23
23
<a class =" drop-down-item" href =" {{{ relativize " /secret-operator/stable/index.html" }}} " >Secret</a >
24
24
</div >
25
25
</div >
26
- <a class =" navbar-sub-item" href =" {{{ relativize " /home/contributor/index.html" }}} " >Contribute</a >
26
+ <a class =" navbar-sub-item" href =" {{{ relativize " /home/stable/ contributor/index.html" }}} " >Contribute</a >
You can’t perform that action at this time.
0 commit comments