This is an automated email from the ASF dual-hosted git repository. vinoth pushed a commit to branch asf-site in repository https://gitbox.apache.org/repos/asf/incubator-hudi.git
The following commit(s) were added to refs/heads/asf-site by this push: new 9c80aa5 [HUDI-504] Restructuring and auto-generation of docs (#1412) 9c80aa5 is described below commit 9c80aa53747d3a26709573b8a53caa7d558d13b7 Author: lamber-ken <lamber...@163.com> AuthorDate: Mon Mar 23 23:47:49 2020 -0500 [HUDI-504] Restructuring and auto-generation of docs (#1412) * [HUDI-504] Restructuring and auto-generation of docs * mkdir test-content folder firstly --- .travis.yml | 41 +++++++++++++++++++++++++++++++++++++++++ docs/_includes/nav_list | 21 ++++++++++----------- 2 files changed, 51 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..1f28d97 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,41 @@ +language: ruby +rvm: + - 2.6.3 + +env: + global: + - GIT_USER="CI BOT" + - GIT_EMAIL="ci...@hudi.apache.org" + - GIT_REPO="apache" + - GIT_PROJECT="incubator-hudi" + - GIT_BRANCH="asf-site" + - DOCS_ROOT="`pwd`/docs" + +before_install: + - if [ "$(git show -s --format=%ae)" = "${GIT_EMAIL}" ]; then echo "avoid recursion, ignore ..."; exit 0; fi + - git config --global user.name ${GIT_USER} + - git config --global user.email ${GIT_EMAIL} + - git remote add hudi https://${GIT_TOKEN}@github.com/${GIT_REPO}/${GIT_PROJECT}.git + - git checkout -b pr + - git pull --rebase hudi asf-site + +script: + - pushd ${DOCS_ROOT} + - gem install bundler:2.0.2 + - bundle install + - bundle update --bundler + - bundle exec jekyll build _config.yml --source . --destination _site + - popd + +after_success: + - echo $TRAVIS_PULL_REQUEST + - 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then echo "ignore push build result for per submit"; exit 0; fi' + - 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then echo "pushing build result ..."; fi' + - mkdir test-content && \cp -rf ${DOCS_ROOT}/_site/* test-content + - git add -A + - git commit -am "Travis CI build asf-site" + - git push hudi pr:asf-site + +branches: + only: + - asf-site \ No newline at end of file diff --git a/docs/_includes/nav_list b/docs/_includes/nav_list index 59d3f4e..50084d2 100644 --- a/docs/_includes/nav_list +++ b/docs/_includes/nav_list @@ -18,20 +18,19 @@ {% assign menu_label = "文档菜单" %} {% endif %} {% elsif page.version == "0.5.1" %} - {% assign navigation = site.data.navigation["0.5.1_docs"] %} + {% assign navigation = site.data.navigation["0.5.1_docs"] %} - {% if page.language == "cn" %} - {% assign navigation = site.data.navigation["0.5.1_cn_docs"] %} - {% assign menu_label = "文档菜单" %} - {% endif %} - {% endif %} + {% if page.language == "cn" %} + {% assign navigation = site.data.navigation["0.5.1_cn_docs"] %} + {% assign menu_label = "文档菜单" %} + {% endif %} {% elsif page.version == "0.5.2" %} - {% assign navigation = site.data.navigation["0.5.2_docs"] %} + {% assign navigation = site.data.navigation["0.5.2_docs"] %} - {% if page.language == "cn" %} - {% assign navigation = site.data.navigation["0.5.2_cn_docs"] %} - {% assign menu_label = "文档菜单" %} - {% endif %} + {% if page.language == "cn" %} + {% assign navigation = site.data.navigation["0.5.2_cn_docs"] %} + {% assign menu_label = "文档菜单" %} + {% endif %} {% endif %} {% endif %}