RATIS-1992. Update website with Ratis 3.0.1 release (#1005)

1 file changed
tree: 7e084fcc36981e44bc1d6b52442109a42a2404df
  1. content/
  2. layouts/
  3. static/
  4. .gitignore
  5. build.sh
  6. config.toml
  7. LICENSE.txt
  8. rat-excludes.txt
  9. README.md
README.md

Apache Ratis web page

This is the source code of the website of Apache Ratis.

Hugo Installation

To render it you need hugo static site generator (https://gohugo.io/getting-started/installing) which is available for the most popular platforms as a single binary.

On OSX, this can be installed via HomeBrew: brew install hugo. For other operating system, please refer to the aforementioned Hugo documentation for installation steps.

Building

To render the final website, use the provided build.sh script. This script will generate the website in the directory public/ and also perform a license check on the source files (prior to commit).

hugo

To iteratively develop the website, you can use the serve command to start a local webserver with your content changes rendered in realtime:

hugo serve

Publishing website changes

Committers must ensure that the state of the asf-site-source and asf-site branches are in sync at all times. Committers must never manually edit content in the asf-site branch.

Content pushed to the asf-site branch is automatically published to the public website: https://ratis.apache.org

There is (presently) no automation to automatically keep these branches in sync, but a general guide is to do the following. These steps use two checkouts of the Git repo, one for asf-site and another for asf-site-source. Beware that these steps are destructive to any local modifications:

First time only!

$ git clone https://github.com/apache/ratis ratis-site.git
$ cp -r ratis-site.git ratis-site-source.git
$ pushd ratis-site.git && git checkout -t origin/asf-site && popd
$ pushd ratis-site-source.git && git checkout -t origin/asf-site-source && popd

To modify the website:

$ pushd ratis-site.git && git pull && popd
$ pushd ratis-site-source.git && git pull
$ # hack hack hack
$ ./build.sh ../ratis-site.git