You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by dm...@apache.org on 2020/12/30 19:25:23 UTC
[ignite-website] branch master updated: added support for different
repo for version 3.x (#66)
This is an automated email from the ASF dual-hosted git repository.
dmagda pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite-website.git
The following commit(s) were added to refs/heads/master by this push:
new d51ec17 added support for different repo for version 3.x (#66)
d51ec17 is described below
commit d51ec1750a3c5242811dc0d639f30c3b0378da41
Author: Mauricio Stekl <ma...@stekl.org>
AuthorDate: Wed Dec 30 16:25:15 2020 -0300
added support for different repo for version 3.x (#66)
---
_docs/_sass/header.scss | 2 +-
_docs/build.sh | 11 +++++++++--
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/_docs/_sass/header.scss b/_docs/_sass/header.scss
index 6f2cd54..1ba6424 100644
--- a/_docs/_sass/header.scss
+++ b/_docs/_sass/header.scss
@@ -276,7 +276,7 @@ header {
-webkit-appearance: none;
appearance: none;
- option { direction: rtl; }
+
}
diff --git a/_docs/build.sh b/_docs/build.sh
index efc278c..1f0eb29 100755
--- a/_docs/build.sh
+++ b/_docs/build.sh
@@ -34,12 +34,18 @@ if [ -z "$version" ]; then
exit 1
fi
+# there are different repos for version 2 and 3.
+export repo_url="https://github.com/apache/ignite.git"
+if [[ "${version:0:1}" == "3" ]] ; then
+ repo_url="https://github.com/apache/ignite-3.git"
+fi
+
# clone Ignite repo locally to copy only the content for docs.
# @todo: is there a way to avoid cloning the entire branch and bring only the docs/ dir?
export tmp_dir=tmp
rm -rf $tmp_dir
mkdir $tmp_dir
-git -C $tmp_dir clone --single-branch --branch $branch https://github.com/apache/ignite.git docs_$version
+git -C $tmp_dir clone --single-branch --branch $branch $repo_url docs_$version
rm -rf _docs _data _plugins
cp -R $tmp_dir/docs_$version/docs/_docs _docs
cp -R $tmp_dir/docs_$version/docs/_data/ _data
@@ -73,7 +79,8 @@ if [ "$action" = "build" ]; then
cat <(echo "$version") "$versions_filename" > ../docs/available-versions.new
mv ../docs/available-versions.new "$versions_filename"
else
- if ! [ -z "$tail -c 1 <"$versions_filename")" ]; then #just in case the file doesn't end with an EOL already
+ #just in case the file doesn't end with an EOL already
+ if [ -z "$tail -c 1 <"$versions_filename")" ]; then
echo "" >> "$versions_filename"
fi