Skip to content

Commit

Permalink
Merge pull request #141 from DavidS/fix-desc-docs
Browse files Browse the repository at this point in the history
(maint) fix desc/docs confusion
  • Loading branch information
DavidS authored Jun 19, 2019
2 parents f2cdda7 + 501dc82 commit 6bd1811
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions language/resource-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Puppet::ResourceApi.register_type(
The `Puppet::ResourceApi.register_type(options)` function takes the following keyword arguments:

* `name`: the name of the resource type.
* `desc`: a doc string that describes the overall working of the resource type, provides examples, and explains prerequisites and known issues.
* `desc`: a doc string that describes the overall working of the resource type, provides examples, and explains prerequisites and known issues. You can also write `desc` as `docs` for backwards compatibility. This compatibility option will no longer be available in the next major revision of the library.
* `attributes`: a hash mapping attribute names to their details. Each attribute is described by a hash containing the Puppet 4 data `type`, a `desc` string, a `default` value, and the `behaviour` of the attribute: `namevar`, `read_only`, `init_only`, or a `parameter`.
* `type`: the Puppet 4 data type allowed in this attribute.
* `desc`: a string describing this attribute. This is used in creating the automated API docs with [puppet-strings](https://github.com/puppetlabs/puppet-strings).
Expand Down Expand Up @@ -90,7 +90,7 @@ Example:
# lib/puppet/type/software.rb
Puppet::ResourceApi.register_type(
name: 'software',
docs: <<-DOC,
desc: <<-DOC,
This type provides Puppet with the capabilities to manage ...
DOC
title_patterns: [
Expand Down

0 comments on commit 6bd1811

Please sign in to comment.