Skip to content

toolkitchen/docs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toolkitchen docs are mostly in Markdown with some HTML. Jekyll is used to generate the static HTML for the site. The output is copied to /toolkitchen/toolkitchen.github.com for serving.

Our documentation source files (located in this repo) and the rendered HTML (located in /toolkitchen/toolkitchen.github.com) are in separate repos in order to take advantage of Jekyll _plugins, special build scripts, and have full control over doc generation.

Install the requirements

We use Jekyll 1.0+ and Grunt to generate the documentation. You'll need to install the requirements before working on the docs:

sudo gem install jekyll
npm install

Making edits and previewing changes

This repo (toolkitchen/docs) is where the documentation source files live. To make a change, follow this basic process:

  1. Checkout this repo (using git clone git://github.com/toolkitchen/docs.git --recursive) and make desired changes.
  • To build the docs locally, run grunt or ``. This starts a web server at http://localhost:4000 where you can preview your edits. This also watches and rebuilds on changes.

The generated site is placed in a folder named _site. Alternatively, if you just want to build the docs and not run a webserver, run:

grunt jekyll:server

Once your changes look good, git commit them and push.

Building and pushing the docs

Note: only project owners can publish the documentation.

First, checkout toolkitchen/toolkitchen.github.com alongside your local copy of toolkitchen/toolkit. This repo is where the generated docs live and are served from using Github Pages. It's hidden as not to confuse users or have extraneous locations for filing bugs.

Second, make sure your docs/toolkit submodule is up to date (this should only be necessary when toolkit merges the master -> stable branch):

git submodule update --recursive

Next, run the publish task:

grunt publish

This generates the docs in _site/ and copies its contents into your checked out version of toolkitchen/toolkitchen.github.com.

The last step is to commit and push those changes live. To do that, just make the commit:

git commit -am 'Updating live docs'
git push

About

Collection of documentation for Toolkitchen

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.7%
  • Ruby 1.3%