Skip to content

kite-sdk/kite-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kite SDK Guide

Kite is a set of libraries, tools, examples, and documentation focused on making it easier to build applications on top of the Hadoop ecosystem.

This repository contains the Kite SDK Guide.

Building

Setup

If you haven't already done so, install Jekyll on your system. You may also need to install Coderay for syntax highlighting:

sudo gem install coderay

Then, you can build the current version of the documentation by executing:

jekyll build

This will compile the documentation into HTML in a directory called _site.

Maven content

Some pages depend on documentation generated by maven. To include the content for these pages, generate the maven site from the root of a kite working copy. The command to run the maven site plugin is:

export MAVEN_OPTS="$MAVEN_OPTS -Xmx1g"
mvn post-site site:stage -DstagingDirectory=/tmp/kite-stage -DtopSiteURL=http://kite-sdk.org

Next, link the created docs into the HTML includes folder:

ln -s /tmp/kite-stage/docs/<version> _includes/current

Pages will be built using content from the staged site when the site is generated.

Debugging

You can view a live version of the documentation by executing:

jekyll serve --baseurl ''

and then viewing the site at localhost:4000.

Releasing

Prepare the content

  1. Ensure the the version section of _config.yml is correct for the current Kite version.
  2. Ensure the _includes/current link points to the maven site built for the current Kite version.
  3. Update the baseurl for the site you will deploy. For example, /docs/staging or /docs/<version>
  4. Build the documentation site: jekyll build

Deploy a staging site

  1. Check out the gh-pages branch of the kite repository
  2. Delete the docs/staging/ directory if it exists.
cd docs
rm -rf staging/
  1. Copy the _site directory to docs/staging/
cp -r ../../kite-docs/_site/ staging
  1. Commit and push the staging site.
git add .
git commit -m "<RELEASE ISSUE>: Deploying staging site"

Deploying live site

  1. Stage the current master and ensure it is correct
  2. Update _config.yml to the correct baseurl for the current Kite version, /docs/<version>.
  3. Builde the documentation site with jekyll build
  4. Delete the docs/staging/ directory if it exists.
cd docs
rm -rf <version>/
  1. Copy the _site directory to docs/<version>/
cp -r ../../kite-docs/_site/ <version>
  1. Commit and push the site.
git add .
git commit -m "<RELEASE ISSUE>: Deploying staging site"

Release script

#!/bin/bash

REMOTE=origin
GH_PAGES=/path/to/kite-gh-pages
KITE_DOCS=/path/to/kite-docs
VERSION=staging
RELEASE_ISSUE=<release-issue-id>

# remove the target if it exists
cd $GH_PAGES/docs
rm -rf $VERSION

# copy the site content
cp -r $KITE_DOCS/_site $VERSION
cd $VERSION

# prepare a commit with the changes
git add .
git commit -m "$RELEASE_ISSUE: Deploying $VERSION site"
git push $REMOTE master

About

Kite documentation and tutorials

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published