Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

found the documentation #17

Closed
darkn3rd opened this issue Jun 1, 2018 · 3 comments
Closed

found the documentation #17

darkn3rd opened this issue Jun 1, 2018 · 3 comments

Comments

@darkn3rd
Copy link

darkn3rd commented Jun 1, 2018

To document or not to document, that is the question!

I found the documentation embedded in the code, way cool! Is there an auto-gen tool that can scoop up the class name, desc, and example into a markdown or something? I remember at ChefConf18 hackathon, there was some talk about autogen of docs form these fields, but wasn't sure if this was out or how to get it. I looked at the Rakefile, but there's no task to build docs yet.

@skpaterson
Copy link

Good question! I'm not aware of any tool to auto-generate from those fields at this time but that would be great. The longer term plan is hopefully to fold inspec-gcp into inspec core and so docs will eventually be built with this InSpec documentation process to be consistent with existing resources. If it would be useful in the short term, a task to build the docs is certainly something that could be explored.

@clintoncwolfe
Copy link
Contributor

(from the inspec core team)

Yes, we are currently working to expand the in-code DSL for docs. For now, writing docs in markdown or ERB-wrapped-markdown is important (to capture the information). I'd advise against implementing a Rake task for the time being; two initiatives (the in-source DSL project, and the versioned docs project) are both likely to impact the doc generation process heavily.

You might want to skip the rarely-used ERB features, and simply write markdown docs; that will make them readable and linkable on github, at least.

@skpaterson
Copy link

Good suggestion - I'll convert those docs to markdown after #18 is completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants