Skip to content

Latest commit

 

History

History
68 lines (42 loc) · 2.78 KB

index.md

File metadata and controls

68 lines (42 loc) · 2.78 KB
layout title
master
Welcome

This is a template for your app's documentation (we hope your app has CloudApp support built in — it really should). Collaborative writing and constant updates have to be well supported when it comes to maintaining technical documentation.

We chose Git, Jekyll and SASS to get the job done. If you have never heard of Jekyll or SASS don't worry, it's very easy to get up and running. Should you be unfamiliar with Git this might not be the right thing for you.

##Writing content

Documentation consists of separate Markdown files placed inside _posts. You might want to take a look at a our examples. All posts are categorized and available from the sidebar.

The available categories can be found in _layouts/master.html. It's as simple as adding another item to that list to create a new category. To assign a post to a specific category just include it in the post's configuration.

This is what the typical configuration for a post looks like:

---
layout: master
title: Document Title
categories: category_one category_two
---

We think keeping your documentation in plain text files is awesome:

  • You can use your favorite TextEditor to write posts.
  • The generated markup is concise thanks to Markdown.
  • Collaboration with your team is easy and versioning is built right in.
  • You can use your precious time writing posts instead of fiddling with a database.

##Deploying

Deploying is extremely easy. We recommend Heroku or Github but anything that can run Rack applications will work.

###Heroku

Sign up for a free Heroku account and read the Quickstart Guide. Once you know what you are doing simply follow the steps below.

Generate your Jekyll site locally (Heroku is a read-only file system) and make sure your SASS stylesheets are up to date:

cd my_doc_directory
compass compile
jekyll

Turn the directory into a git repository:

git init && git add .

Commit your changes and get ready to deploy:

git commit -m "my documentation is ready"

Create the Heroku app:

heroku create

Push to Heroku:

git push heroku master

###Github

Deploying to Github is even easier. All you need to do is create a Github Page. Some of the files included in this repository are not necessary for this. You can remove the following files (they are only included to make a Heroku deploy easy):

config.rb
config.ru
Gemfile
Gemfile.lock