Curated documentation for Puppet and tools for generating a deployable copy of the docs site.
The tools and rake tasks for generating the puppet-docs site require Ruby 2.2.3 or greater.
To install the documentation-generating code:
-
Clone the repository:
$ git clone git://github.com/puppetlabs/puppet-docs.git
-
Use your package manager to install rake, libxml2-dev, libxslt-dev, and pygments. Package names may vary by platform; for example, using Macports, these packages could be installed with:
$ sudo port -d install rb-rake libxml2 libxslt py-pygments
Make sure there is a
pygmentize
command available! If your package tools install the pygmentize binary with a different name (like Macports does), you must symlink it so Jekyll can find the command. -
Install the Ruby dependencies:
The Puppet docs project uses Ruby Bundler to ensure that you have the correct dependencies installed on your system and that the documents are being built with the correct versions of needed binaries. To install the project's requirements:
$ sudo gem install bundler $ cd puppet-docs $ bundle install --path=vendor/bundle
-
Generate the documentation:
$ rake generate
-
Start a little server to view it at http://localhost:9292:
$ rake serve
(You can use
rake run
to combine these steps.)
If something in the documentation doesn't seem right -- or if you think something important is missing, please submit a ticket to the "DOCUMENTATION" project (not to Puppet itself). The best way to get your change in is to contribute it; see the next section for details.
- Fork the project (we recommend GitHub)
- Make sure you read the writing guide (README_WRITING.markdown) and the style and usage guide, which are both in the root of this project.
- Make your documentation addition/fix -- preferably in a branch.
- Commit, do not mess with the README, LICENSE, etc.
- Open a pull request to the puppet-docs repo, requesting your contribution be added.
Copyright (c) 2009-2017 Puppet, Inc. See LICENSE for details.