commit | f8969a1c207d65bca7d3c5d6857ed04e81dcd83c | [log] [tgz] |
---|---|---|
author | Christopher Tubbs <ctubbsii@apache.org> | Mon Apr 23 13:21:00 2018 -0400 |
committer | Christopher Tubbs <ctubbsii@apache.org> | Mon Apr 23 13:21:00 2018 -0400 |
tree | 94f101ed37b28581fd05ad13f8310efc4ce91c8b | |
parent | 65571acba03832d6545f8ba1fe659a375465c46c [diff] |
Add 1.9.0 apidocs
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.
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 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 http://0.0.0.0:4000/
You can just build static HTML files which are viewable in _config.yml
:
cd accumulo-website bundle exec jekyll build
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 ./_devtools/git-hooks/post-commit # 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/