This is an automated email from the ASF dual-hosted git repository.
sk0x50 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 2e9d2a6345 IGNITE--18929 Require explicit target for AI3 doc build.
Fixes #156
2e9d2a6345 is described below
commit 2e9d2a63459c2c6f93698dd5dc21580bdee690d1
Author: Igor Gusev <[email protected]>
AuthorDate: Tue Mar 7 11:01:38 2023 +0200
IGNITE--18929 Require explicit target for AI3 doc build. Fixes #156
Signed-off-by: Slava Koptilin <[email protected]>
---
_docs/build.sh | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
diff --git a/_docs/build.sh b/_docs/build.sh
index 4af63d0dbd..5f562d3cd7 100755
--- a/_docs/build.sh
+++ b/_docs/build.sh
@@ -6,6 +6,9 @@ export action=build
export versions_filename="../docs/available-versions.txt"
+# Usage example
+# ./build.sh --repo='https://github.com/apache/ignite-3.git'
--version=3.0.0-beta --github-branch=IGNITE-16942 --ignite3
+
while [ "$#" -gt 0 ]; do
case "$1" in
--version=*)
@@ -20,6 +23,12 @@ while [ "$#" -gt 0 ]; do
--serve)
action=serve
;;
+ --ignite3)
+ target=ignite3
+ ;;
+ --repo=*)
+ repo="${1#*=}"
+ ;;
*)
printf "***********************************************************\n"
printf "* Error: Invalid argument, *\n"
@@ -34,10 +43,14 @@ if [ -z "$version" ]; then
exit 1
fi
-# there are different repos for version 2 and 3.
+# 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"
+if [[ "${target}" == "ignite3" ]] ; then
+ if [[ -z "${repo}" ]] ; then
+ repo_url="https://github.com/apache/ignite-3.git"
+ else
+ repo_url="${repo}"
+ fi
fi
# clone Ignite repo locally to copy only the content for docs.