Commit Graph

483 Commits

Author SHA1 Message Date
Eric Putnam 37cfe49f95
(PDOC-36) hack to fix README links in generated HTML 2018-03-22 15:39:38 -07:00
Hunter Haugen 67f249c8ea
Merge pull request #164 from eputnam/update_travis
(PDOC-223) prepare travis for dropping old version support
2018-03-22 13:35:29 -07:00
Eric Putnam be444fa6ad
(PDOC-223) revert rsapi changes and remove markdown test
First, there were some rspec problems we originally connected to directory naming (e.g. 'yard'), but now we think it's a possible bug in rspec (https://github.com/rspec/rspec-core/issues/2184). this removes the markdown_spec.rb test that was both triggering the bug and, as it turns out, is an unnecessary test.

Reverted some of the changes made to the rsapi handler during markdown
output work. Those changes were made because of a typo in the spec
tests, so the typo has been fixed and most of the handler returned to
its original state.
2018-03-22 11:35:37 -07:00
Eric Putnam 2a5d23f82b
(PDOC-223) prepare travis for dropping old version support
This gets rid of test cells for old versions of ruby (< 2.1.9) and old versions of puppet (< 4) and also updates the test command to run all 100+ unit tests instead of a whopping 27 that rake spec runs
2018-03-22 11:34:19 -07:00
Jesse Scott 76b337a1e4
Merge pull request #161 from eputnam/_pdoc206
(PDOC-206) support for tasks
2018-03-21 11:30:43 -07:00
Eric Putnam 738275b9e7
(PDOC-206) support for Puppet Tasks
Currently, puppet-strings does not know how to generate documentation
for Puppet Tasks. This does all the work to add support for Tasks
including a new JSON parser, a task handler, task statement, and task code
object. Basically, Strings reads the JSON using the native ruby json
parser and sends values through in a way it understands. It is only
passing json key/value pairs through, nothing is happening with tags at
this time. You can now document Tasks and generate HTML, Markdown, or
JSON output.
2018-03-19 11:37:00 -07:00
Hunter Haugen 7900b73a35
Merge pull request #163 from eputnam/master
release 1.2.1
2018-03-01 10:17:48 -08:00
Eric Putnam bc42c78341
release 1.2.1 2018-03-01 10:15:03 -08:00
Eric Putnam e18217b0ca
Merge pull request #162 from ekohl/fix-emit-output
(PDOC-224) Handle --emit-json(-stdout) again
2018-03-01 10:09:22 -08:00
Ewoud Kohl van Wijngaarden 9728d1004a
(PDOC-224) Handle --emit-json(-stdout) again 2018-03-01 18:28:48 +01:00
David Schmitt 47e57418e5
Merge pull request #160 from eputnam/master
(PDOC-222) Release 1.2.0 prep and sundries
2018-02-28 18:52:55 +00:00
Eric Putnam dde16375d0
(maint) actually update rake task 2018-02-27 16:32:33 -08:00
Eric Putnam 567ee8aac9
hold off on gcg
The version of github changelog generator we want to use requires a
version of Ruby we can't yet guarantee. This reverts all the plumbing
for gcg while still committing the changelog
2018-02-27 10:31:00 -08:00
Eric Putnam 6ffefc472b
release prep and gcg config 2018-02-26 16:36:41 -08:00
Eric Putnam 784c32c979
(maint) update rake tasks 2018-02-26 15:36:28 -08:00
Hunter Haugen 378c01a719
Merge pull request #157 from eputnam/pdoc-184_2
(maint) do not display name if there is nothing to display
2018-02-26 14:13:31 -08:00
Eric Putnam 65bfdaf1de
remove displayed tag business 2018-02-26 13:50:19 -08:00
Eric Putnam 6923d9e18c
(maint) update table of contents
The table_of_contents template was already too bulky and redundant and recognizing public and private components was only going to make it worse. This refactors the toc template and the toc class to use a generic outline for all components.
2018-02-26 13:10:30 -08:00
Eric Putnam 0b1a095df6
Merge pull request #159 from pegasd/fix_return_type_matching
Fix return type matching for Puppet functions
2018-02-24 16:12:36 -08:00
Eugene Piven 4db84c81e5 Fix return type matching for Puppet functions 2018-02-23 13:56:55 +03:00
Eric Putnam 09a5d3e4ff
(maint) change template logic and add test 2018-02-22 16:07:39 -08:00
Eric Putnam 5a283c2212
(maint) do not display name if there is nothing to display
If there is a class, type, or function with no information documented but is pulled in by some fluke or tag we don't support, do not give it its own section
2018-02-22 11:21:06 -08:00
Hunter Haugen 7dff75642b
Merge pull request #156 from eputnam/pdoc184
(PDOC-184) generate markdown
2018-02-20 15:28:34 -08:00
Eric Putnam cc7ffae3a5
(maint) add new resource api output for json_spec 2018-02-20 14:49:45 -08:00
Eric Putnam 1316975826
(PDOC-184) revised cli
`puppet generate` behavior remains unchanged
`puppet generate --format markdown` now defaults to writing to
REFERENCE.md and will accept an override from --out
`puppet generate --format json` defaults to printing to stdout but will
accept the --out param
2018-02-20 12:26:05 -08:00
Eric Putnam 4ea43e03aa
re-add test for Puppet 3 function 2018-02-16 10:57:12 -08:00
Eric Putnam 49573ca97c
Update README 2018-02-16 10:25:33 -08:00
Eric Putnam db88cd9857
(PDOC-184) custom_type back to resource_type 2018-02-16 09:29:50 -08:00
Eric Putnam 840dfca1bc
Merge pull request #152 from DavidS/codecov
Enable code coverage tracking
2018-02-14 08:59:09 -08:00
Eric Putnam 176d6d4d8c
(PDOC-184) refactoring because naming is hard 2018-02-12 16:11:52 -08:00
Eric Putnam 8a34dc7ea4
rubocop sucks 2018-02-09 15:22:51 -08:00
Eric Putnam f6cd3ff4a8
(PDOC-184) implemented option and raises tags
This implements the two remaining tags and removes the author tag. Had to do some deeper plumbing because options per function signature were not being passed along from YARD
2018-02-09 15:08:18 -08:00
Eric Putnam 56c24cc362
(PDOC-184) implement author tag
This implements the author tag. We also claim to support the 'raise' and 'option' tags, but I don't know that we need to. This also consolidates some code in base.rb and adds docs
2018-02-08 12:12:56 -08:00
Eric Putnam 3635fe95f0
rubocop sucks 2018-02-07 15:24:48 -08:00
Eric Putnam 7c06ed77c4
(PDOC-184) block pointless output and re-add options
This makes sure the markdown doesn't include section headers that have no content. e.g. '## Classes' does not get put in if there are no classes. Also, we should deprecate --emit-json and --emit-json-stdout instead of just killing them.
2018-02-07 15:18:43 -08:00
Eric Putnam 1374b67da0
(PDOC-184) generate markdown
This change does a few things:
1. Fixes up new api handler to return the stuff we want
2. Adds all the logic to parse YARD registries into markdown
3. Adds templates for markdown
4. Changes Face cli to use a --format option that can be used for either
markdown or json
2018-02-07 14:04:19 -08:00
Eric Putnam 59aa812cda
Merge pull request #153 from DavidS/pdk-437-rsapi-types
(PDK-437) Add support for Resource API types
2018-02-02 09:41:23 -08:00
Eric Putnam 892951bddf
Merge pull request #154 from DavidS/maint-update-yard
Update to non-vulnerable yard version
2018-01-29 17:11:33 -08:00
Eric Putnam ad35df8f89
yard is smarter now?
On the changed line, YARD thought the bin path given was a regex and was interpretting it as such. It is not a regex.
2018-01-29 16:07:57 -08:00
Eric Putnam 0febafeceb
Merge pull request #149 from rnelson0/patch-1
Add rgen as a runtime dependency
2018-01-29 12:17:55 -08:00
David Schmitt 993cb5fc05 Update to non-vulnerable yard version 2018-01-29 16:18:00 +00:00
David Schmitt 5156e8db10 (PDK-437) Add support for Resource API types 2018-01-29 16:17:30 +00:00
David Schmitt 8364b8e685 Enable code coverage tracking 2018-01-26 14:09:20 +00:00
David Schmitt be6d706769
Merge pull request #150 from arjenz/master
Spelling README.md
2018-01-26 14:06:16 +00:00
Jesse Scott 2d4bafbb18
Merge pull request #151 from jbondpdx/master
(PDOC-196) Correcting misinformation about supported YARD tags
2018-01-19 14:23:44 -08:00
jbondpdx a5d39e752c (PDOC-196) further disambiguaion 2018-01-19 14:20:09 -08:00
jbondpdx bd96a46620 (PDOC-196) Correcting misinformation about supported YARD tags 2018-01-19 14:04:54 -08:00
Arjen Zonneveld 88f9dba407
Spelling README.md
paramter -> parameter
2017-12-11 16:26:39 +01:00
Rob Nelson 5ec86e9d1b
Add rgen as a runtime dependency
When using puppet-strings with a module that otherwise does not specify rgen in its Gemfile, this error was observed:
```
$ bundle exec puppet strings generate ./manifests/*.pp
Error: The 'rgen' gem must be installed in order to use this face.
Error: Try 'puppet help strings generate' for usage
```
Adding rgen to the Gemfile allows puppet strings to work, so it seems like a valid runtime dependency.
2017-12-07 14:17:52 -05:00
Jesse Scott 42285c74ce Merge pull request #148 from scotje/release_prep_1.1.1
(MAINT) Release prep for 1.1.1
2017-10-20 22:09:47 +00:00