Skip to content

Jekyll based generator of CFEngine documentation pages

License

Notifications You must be signed in to change notification settings

KevWright/documentation-generator

 
 

Repository files navigation

Jekyll config for CFEngine documentation

  1. Installation

This instalation was tested on ubuntu 10.04 with vagrant, ruby 1.9.3 and Java 7. Make sure your machine has everything according to jekyll requirements: https://github.com/mojombo/jekyll.

  • you need git installed to checkout documentation.

You also need:

  • java - for closure compiler
  • python-pygments 1.5 or later for the code highlighting

Gems:

  • jekyll-asset-pipeline
  • closure-compiler
  • yui-compressor
  • redcarpet
  • albino
  • uglifier
  • execjs
  • sanitize

######if pandoc is used

  • pandoc-ruby
  • rdiscount

You can find additional information inside _setup/setup.sh

Clean setup

  1. Review and change file _setup/setup.sh acordingly to your environment

Final steps

  1. Do steps described in file _setup/step2.txt

  2. Create pages folder and checkout CFEngine documentation inside. (https://github.com/cfengine/documentation)

  3. Use

  1. All content files should be inside pages folder

  2. All files must have meta data on top. See (Page meta data section)

  3. Templates are saved in the _layouts folder

  4. Images and other materials saved in media folder

  5. JS and css saved in _assets folder. To include new files open _includes/head.html file

  6. Make sure you set correct settings in _config.yml for CFE_OUTPUT and CFE_DIR

  7. Run

cd to the project root folder and type jekyll. Your can find your "compiled" files inside pages folder

  1. Auto update and run as server

cd to project root folder and type jekyll --auth --server 4000 where 4000 - port number.

NOTE: you must restart server after changes in _config.yml

  1. Config

To configure jekyll open _config.yml. All options described at https://github.com/mojombo/jekyll/wiki/Configuration

  1. Page meta data
---
layout: default
title: cf-agent
categories: [Components, cf-agent]
published: true
alias: cf-agent.html
tags: [cf-agent, promises]
sorting: 19
---

Explanation:

You must use YAML format for metadata You must place metadata on the top of the file and divide it with --- (repeat "-" sign 3 times on new line)

layout: default - we have only 1 layout for pages now

title: page title - string between <title></title>

categories: where we should place this page, think about this as a breadcrumbs. Last point should be this page

published: true or false

alias: url (html file name) - use "url safe" names

tags: tags relevant to this doc

sorting: specify page order in the left menu.

About

Jekyll based generator of CFEngine documentation pages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 48.5%
  • Ruby 21.4%
  • CSS 18.2%
  • JavaScript 7.7%
  • Shell 4.2%