ruby-rdf / rdf

RDF.rb is a pure-Ruby library for working with Resource Description Framework (RDF) data.
http://rubygems.org/gems/rdf
The Unlicense
383 stars 98 forks source link

Documentation for RDF.rb in iRuby notebooks? #294

Open tombaker opened 8 years ago

tombaker commented 8 years ago

I wanted to suggest that documentation for RDF.rb be moved into iRuby notebooks -- i.e., Jupyter notebooks running the Ruby kernel.

Github now supports the rendering of Jupyter notebooks in the browser (see my gist of some notes about Ruby). Some advantages of putting documentation into Jupyter:

gkellogg commented 8 years ago

Seems like an interesting idea. Right now, documentation references rubydoc.info, which is updated periodically from built-in yardoc tags, and having the documentation be derived from embedded yardoc is a big plus. I don't know how Jupyter works, but I'd be dis-inclined to maintain separate source for this that was divorced from the actual Ruby source, but the prospect of working examples in the documentation is intriguing.

Note that most examples have duplicates in the specs, so there shouldn't be too many examples that fail. If so, that's obviously a bug which should be addressed.

I certainly am open to considering this, though, and we should continue the conversation.