Update Submarine Website for 0.4.0 release (asf-site branch)
17 files changed
tree: 52d7148e2aff1a838b06f25ec663f1c03f6918ee
  1. assets/
  2. community/
  3. contribution/
  4. ecosystem/
  5. releases/
  6. .asf.yaml
  7. .gitignore
  8. 404.html
  9. assets.html
  10. atom.xml
  11. doap.rdf
  12. documentation.html
  13. download.html
  14. Gemfile
  15. Gemfile.lock
  16. index.html
  17. medium.md
  18. README.md
  19. robot.txt
  20. rss.xml
  21. rsync.sh
  22. screenshots.html
  23. sitemap.txt
  24. supported_interpreters.html
  25. technologies_deployments.md
  26. whats_new.md
README.md

Apache Submarine website

This readme will walk you through building the Submarine website

Introduction

  1. The master branch of the submarine is used to manage the website source code. Every time you modify the website, you need to submit it to the master branch for saving.

  2. The asf-site branch is used for the static page branch of the website. Every time you modify the website, you need to save the latest generated static page here. https://submarine.apache.org will be updated automatically.

Build website by docker

git clone https://github.com/apache/submarine-site.git
git checkout master

docker run -it -p 4000:4000 -v $PWD/submarine-site:/submarine-site hadoopsubmarine/submarine-website:1.0.0 bash
cd /submarine-site
bundle exec jekyll serve --watch --host=0.0.0.0

The static page of the website will be generated in the $PWD/submarine-site/_site directory.

view submarine website in local: http://localhost:4000/

Adding a new page

rake page name="new-page.md"

Deploy website

  1. Submit the master branch to github repo.
  2. Copy the _site directory to the other backup path, e.g., back_site.
  3. Switch to the asf-site branch, clear all the contents of the directory, copy the contents of the back_site directory to the this directory, and submit the asf-site branch to github repo.