Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Start documenting Pacto #38

Closed
jmmercadom opened this issue Sep 30, 2013 · 7 comments
Closed

Start documenting Pacto #38

jmmercadom opened this issue Sep 30, 2013 · 7 comments
Milestone

Comments

@jmmercadom
Copy link
Contributor

As a Pacto user
I want to have the documentation needed
So that I can easy understand how to use all Pacto features

As a Pacto contributor
I want to have the documentation needed
So that I can understand easy Pacto implementation
And contribute without too much hassle

Let's discuss on the better way to document Pacto for users and contributors.

@jmmercadom
Copy link
Contributor Author

To understand the internals of Pacto I would suggest to start self documenting code, then extract the comments from the source code to generate some documentation. Possible tool candidates can be found here https://www.ruby-toolbox.com/categories/documentation_tools.
One "nice" example of code annotated is underscore http://underscorejs.org/docs/underscore.html, there is a tool https://github.com/rtomayko/rocco that generates the same style of documentation for Ruby projects.
I just found this project https://github.com/rubyworks/qed/wiki that brings Literate programming for Ruby projects, still I would dig more about the topic before suggesting to use it for Pacto.

@maxlinc
Copy link
Collaborator

maxlinc commented Sep 30, 2013

I'm a big fan of relishapp, which is used by rspec, cucumber, and vcr, among others.

It generates documentation from markdown and cucumber feature files. Needing to write cukes is a deal-breaker for some people, but I find it worth it for the documentation it generates. And obviously you can still keep the majority of your tests in rspec (or I doubt rspec would use relishapp).

Check out the linked examples and let me know what you think.

@jmmercadom
Copy link
Contributor Author

Let's use relishapp for generate final user documentation. Personally I found RSpec/Cucumber/Vcr documentation not easy to find using relishapp (their built in search tool sucks), but the advantage that I like is that generates the documentation based on the tests =). I believe that the search issue is related with the tool (I hope it will improve), but we can find a way to use relishapp in our favour.

@maxlinc
Copy link
Collaborator

maxlinc commented Nov 1, 2013

Should we close this?

I think we just need to finish #36 (Contributor Guidelines), and make sure the release process includes publishing to relish.

@marcosccm
Copy link
Contributor

Yeah, we can close it =)

@jmmercadom
Copy link
Contributor Author

That was fast.
Half of the problem was solved with Relish documentation (the documentation for final users).
The other part is documentation for contributors, my suggestion was to annotate the source code, currently the documentation is pretty empty see (here)[http://rubydoc.info/gems/pacto/frames].
What do you think?

@maxlinc
Copy link
Collaborator

maxlinc commented Nov 1, 2013

I'd split them, based on the roadmap proposal I just sent to the mailing list.

I think the relish documentation is needed for users to try Pacto, so it should be in v0.3.0 (Usability).
The rubydoc is more for contributors (or at least advanced users) so it should be in v0.3.1 (Technical excellence).

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

No branches or pull requests

3 participants