Code Monkey home page Code Monkey logo

Comments (7)

jmmercadom avatar jmmercadom commented on June 26, 2024

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.

from pacto.

maxlinc avatar maxlinc commented on June 26, 2024

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.

from pacto.

jmmercadom avatar jmmercadom commented on June 26, 2024

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.

from pacto.

maxlinc avatar maxlinc commented on June 26, 2024

Should we close this?

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

from pacto.

marcosccm avatar marcosccm commented on June 26, 2024

Yeah, we can close it =)

from pacto.

jmmercadom avatar jmmercadom commented on June 26, 2024

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?

from pacto.

maxlinc avatar maxlinc commented on June 26, 2024

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).

from pacto.

Related Issues (20)

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.