Go to file
Hailee Kenney 999daa9c4c (PDOC-8) Fix present rubocop offenses
Since we want to run rubocop in travis when pull requests are
submitted, fix a few pre-existing rubocop offenses.
2014-10-08 11:36:21 -07:00
lib (PDOC-8) Fix present rubocop offenses 2014-10-08 11:36:21 -07:00
spec (PDOC-8) Fix present rubocop offenses 2014-10-08 11:36:21 -07:00
.gitignore (PDOC-9) Add preliminary full system test 2014-10-06 10:08:30 -07:00
.rubocop.yml (PDOC-8) Add .rubocop.yml to project 2014-10-07 16:40:51 -07:00
.travis.yml (PDOC-7) Add .travis file for Travis CI support 2014-09-25 09:28:41 -07:00
.yardopts Exclude YARD templates directory from yard doc 2014-06-10 20:38:01 -07:00
COMMITTERS.md (maint) Remove references to stable in COMMITTERS 2014-10-01 09:42:57 -07:00
CONTRIBUTING.md (maint) Remove reference to other platforms 2014-10-03 17:14:14 -07:00
Gemfile (PDOC-8) Fix present rubocop offenses 2014-10-08 11:36:21 -07:00
LICENSE (maint) Add LICENSE file 2014-10-01 14:49:19 -07:00
README.md readme: Fix puppet server typo 2014-10-07 20:51:27 +02:00
Rakefile (PDOC-9) Update acceptance take task for Jenkins 2014-10-06 15:25:36 -07:00
metadata.json "project_page" should point to the source. 2014-10-07 14:05:42 -07:00

README.md

Puppet Strings

A Puppet Face and plugin built on the YARD Documentation Tool and Puppet Future Parser. It is uses YARD and the Puppet Parser to generate HTML documentation about Puppet code and Puppet extensions written in Ruby. It will eventually replace the puppet doc command once feature parity has been achieved.

Installation

In order to run strings you need to have the following software installed:

  • Ruby 1.9.3 or newer
  • Puppet 3.7 or newer
  • The yard rubygem

In order to install the strings module, simply git clone this repository into your modulepath (i.e. /etc/puppet/modules). This module is also available on the Puppet Forge and can be installed with puppet module install puppetlabs-strings.

Running Puppet Strings

If you cloned the repository into your modulepath and installed the needed gems, you can do the following to document a module:

$ cd /path/to/module
$ puppet strings

This processes README and everything in manifests/**/*.pp.

To document specific manifests:

$ puppet strings some_manifest.pp [another_if_you_feel_like_it.pp]

Processing is delegated to the yardoc tool so some options listed in yard help doc are available. However, Puppet Faces do not support passing arbitrary options through a face so these options must be specified in a .yardopts file.

In addition to generating a directory full of HTML, you can also serve up documentation for all your modules using the server action:

$ puppet strings server

License

See LICENSE file.

Developing and Contributing

We love contributions from the community! If you'd like to contribute to the strings module, check out CONTRIBUTING.md to get information on the contribution process.

Running Specs

If you're going to be doing any development with puppet strings, it's essential that you can run the spec tests. You should simply have to do the following:

$ bundle install --path .bundle/gems
$ bundle exec rake spec

Support

Please log tickets and issues at our JIRA tracker. The puppet strings project can be found under PDOC on JIRA. A mailing list is available for asking questions and getting help from others. In addition there is an active #puppet channel on Freenode.

We use semantic version numbers for our releases, and recommend that users stay as up-to-date as possible by upgrading to patch releases and minor releases as they become available.

Bugfixes and ongoing development will occur in minor releases for the current major version. Security fixes will be backported to a previous major version on a best-effort basis, until the previous major version is no longer maintained.

Caveats

  • At the moment, only top-level Classes and Defined Types are parsed and formatted.

  • Documentation blocks must immediately precede the documented code with no whitespace. This is because the comment extractor possesses the elegance and intelligance of a bag of hammers.

  • This project is very much a work in progress and may very well have undiscovered bugs and pitfalls. If you discover any of these, please file a ticket.