Apache Accumulo Website
HTML Other
Switch branches/tags
Nothing to show
Clone or download
Failed to load latest commit information.
1.4 Fixed several bugs in website Oct 28, 2016
1.6 Merge branch 'durability' into gh-pages Nov 2, 2016
1.7 Update website for 1.7.4 release (#68) Mar 24, 2018
1.8 ACCUMULO-4528 Add import/export table info to docs (#54) Jan 5, 2018
_includes Update website for 1.9.2 release Jul 19, 2018
_plugins Improved handling of prefix properties (#95) Jul 11, 2018
_posts mention apache/accumulo#467 in 1.9.2 rel notes Jul 25, 2018
js Added search functionality to Accumulo website (#81) May 4, 2018
papers Several updates to website Dec 12, 2016
.travis.yml Update docs for updating the website Nov 22, 2016
CONTRIBUTING.md ACCUMULO-4714 Improved contributing docs for new developers (#37) Nov 15, 2017
Gemfile.lock Update gems and add 1.9.2 and 1.9.3 draft notes Jul 18, 2018
_config.yml Update website for 1.9.2 release Jul 19, 2018
favicon.ico Add favicon and site title Mar 10, 2016
feed.xml Removed 2.0.0 notes from feed.xml & latest news (#24) Sep 6, 2017
index.html Fix missing div tag and match Whimsy regex Apr 11, 2018


Apache Accumulo Website

Apache Accumulo uses Jekyll to build their website. It is recommended that you use Bundler to install the necessary dependencies to run and build the website.

Install Bundler and dependencies

Ruby is required to use Bundler so first make sure you have Ruby on your machine. If you are using an OS packaged version of Ruby, you will have to also install the ruby-dev (Ubuntu) or ruby-devel (Fedora) package as well.

With Ruby installed on your machine, you can install Bundler using the command below:

gem install bundler

Next, use Bundler to install Jekyll and other dependencies needed to run the website.

git clone https://github.com/apache/accumulo-website
cd accumulo-website
bundle install

Run the website locally

Run the following command to run the website locally using Jekyll's embedded webserver:

cd accumulo-website
bundle exec jekyll serve -w

The website can viewed at

Build website static HTML files

You can just build static HTML files which are viewable in _config.yml:

cd accumulo-website
bundle exec jekyll build

Custom liquid tags

Custom liquid tags are used to make linking to javadocs, properties, and documents easier. The source for these tags is at _plugins/links.rb.

Tag Description Options Examples
jlink Creates Javadoc link Link text will be class name by default. Use -f for full package + class name {% jlink -f org.apache.accumulo.core.client.Connector %}
jurl Creates Javadoc URL None {% jurl org.apache.accumulo.core.client.Connector %}
plink Creates Property link Assumes server property by default. Use -c to link to client properties. Accepts server property prefixes (i.e table.*) {% plink -c instance.name %}
purl Creates Property URL Default is server property. Use -c to link to client properties. Accepts server property prefixes (i.e table.*) {% purl instance.volumes %}
dlink Creates Documentation link None {% dlink getting-stared/clients %}
durl Creates Documentation URL None {% durl troubleshooting/performance %}

Updating property documentation

Building Accumulo generates properties.md and client-properties.md. To regenertate these, do the following.

cd <accumulo source dir>
mvn package -DskipTests
cp ./core/target/generated-docs/properties.md <accumulo website source>/_docs-2-0/administration
cp ./core/target/generated-docs/client-properties.md <accumulo website source>/_docs-2-0/administration

Update the production website

For Apache Accumulo committers, the asf-site branch needs to be updated with the generated HTML. Changes to this branch are automagically mirrored to the website.

This can be done easily by invoking the post-commit hook (either by hand, or automatically via configuring Git to invoke the post-commit hook). The commands below are a guide for committers who wish to publish the web site.

# ensure local asf-site branch is up to date
git checkout asf-site
git pull upstream asf-site

# switch to master branch, update it, and build new site
git checkout master
git pull upstream master

# switch to asf-site, look at the commit created by post-commit script, and push it if ok
git checkout asf-site
git log -p
git push upstream asf-site

In the commands above upstream is :

$ git remote -v | grep upstream
upstream	https://gitbox.apache.org/repos/asf/accumulo-website/ (fetch)
upstream	https://gitbox.apache.org/repos/asf/accumulo-website/ (push)

To automatically run this post-commit hook in your local repository, copy the given file into your .git/hook directory:

cp ./_devtools/git-hooks/post-commit .git/hooks/