Git Product home page Git Product logo

chef-attrdoc's Introduction

chef-attrdoc

Gem Version Code Climate

Extract documentation from chef cookbooks' attributes files and output it to the cookbook's README.md file.

chef-attrdoc groups attribute initialization lines together with the comments immediately above them. Any lines containing an attribute initialization which are not separated by an empty line are considered a group. The comment immediately above them is assumed to describe the group of attributes below. Groups of attribute initialization lines which are not immediately preceded by a comment line are ignored and will not show up in the output.

chef-attrdoc currently ignores TODO, XXX, NOTE and foodcritic comments.

Usage:

# gem install chef-attrdoc
# chef-attrdoc ~/cookbooks/mycookbook

chef-attrdoc will try to find an Attributes heading in the README.md file in that directory and replace its contents with the generated attributes/default.rb documentation.

chef-attrdoc uses ruby's stdlib ripper module and so does not have any dependencies.

Examples

Here are some example outputs from openstack chef cookbooks:

openstack-compute attributes file - output

openstack-identity attributes file - output

chef-attrdoc's People

Contributors

iartarisi avatar retr0h avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.