home.social

#rdoc — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #rdoc, aggregated by home.social.

fetched live
  1. #Rdoc, a documentation generator for #ruby, adds support for rbs which allows for type checking in ruby. For me the biggest hurdle was the duplication, describe params in documentation, and then decide between #rbs and #sorbet... I kinda hoped for inline rbs but even forgot about it. This looks promising for typing in ruby (even though mostly I could work perfectly without 😅)

    github.com/ruby/rdoc/releases/

  2. #Rdoc, a documentation generator for #ruby, adds support for rbs which allows for type checking in ruby. For me the biggest hurdle was the duplication, describe params in documentation, and then decide between #rbs and #sorbet... I kinda hoped for inline rbs but even forgot about it. This looks promising for typing in ruby (even though mostly I could work perfectly without 😅)

    github.com/ruby/rdoc/releases/

  3. Recently I learned you can use #RDoc in your #RubyGem description, and rubygems.org will render it as HTML!

    Unfortunately, their CSS reset gets the better of it. But not for long, if this PR gets merged: github.com/rubygems/rubygems.o (before/after screenshots included)

    Here's to @st0012 and his fabulous work on Aliki that made this easy!

    #Ruby #UX #WebDesign #Design #Typography

  4. Recently I learned you can use #RDoc in your #RubyGem description, and rubygems.org will render it as HTML!

    Unfortunately, their CSS reset gets the better of it. But not for long, if this PR gets merged: github.com/rubygems/rubygems.o (before/after screenshots included)

    Here's to @st0012 and his fabulous work on Aliki that made this easy!

    #Ruby #UX #WebDesign #Design #Typography

  5. Interesting to see there’s an effort underway to support YARD syntax in the rdoc gem…

    github.com/ruby/rdoc/pull/1416

    Which seems to come out of…

    github.com/ruby/rdoc/discussio

    #ruby #rdoc #yard #lsp

  6. Interesting to see there’s an effort underway to support YARD syntax in the rdoc gem…

    github.com/ruby/rdoc/pull/1416

    Which seems to come out of…

    github.com/ruby/rdoc/discussio

    #ruby #rdoc #yard #lsp

  7. Is there something like `yard server`, but for RDoc? #ruby #rdoc

  8. @serge many of the projects we use in Python, like #Flask, are documented using #Sphinx, which can be configured to automatically generate API documentation from Python source code:

    sphinx-doc.org/en/master/tutor

    This is (similar to the #yardoc and #rdoc situation) backwards compatible with #pydoc, though much more expressive due to the machine-readable format for defining parameters, return values and potential exceptions:

    sphinx-doc.org/en/master/tutor

    docs.python.org/3/library/pydo

  9. @serge many of the projects we use in Python, like #Flask, are documented using #Sphinx, which can be configured to automatically generate API documentation from Python source code:

    sphinx-doc.org/en/master/tutor

    This is (similar to the #yardoc and #rdoc situation) backwards compatible with #pydoc, though much more expressive due to the machine-readable format for defining parameters, return values and potential exceptions:

    sphinx-doc.org/en/master/tutor

    docs.python.org/3/library/pydo

  10. I'm thinking about asking on the #Mastodon issue tracker about introducing inline documentation using #yardoc or #rdoc to public functions on modules and classes.

    Was there any issue, discussion or call for this already?

    #MastodonDev

  11. I'm thinking about asking on the #Mastodon issue tracker about introducing inline documentation using #yardoc or #rdoc to public functions on modules and classes.

    Was there any issue, discussion or call for this already?

    #MastodonDev

  12. Asking about #Ruby again:

    Do you know a good overview of how to write documentation using #RDoc?

    I can't seem to figure out how to add documentation about return values or parameters to methods.

  13. Asking about #Ruby again:

    Do you know a good overview of how to write documentation using #RDoc?

    I can't seem to figure out how to add documentation about return values or parameters to methods.

  14. Learned about #ruby #rdoc this morning :)

    thingy.rb

    ```ruby
    # This is the function that does a thingy
    def my_thingy
    puts "my thingy"
    end
    ```

    Rakefile
    ```ruby
    require 'rdoc/task'
    task :default => [:rdoc]
    Rake::RDocTask.new do |rdoc|
    rdoc.rdoc_dir = 'rdoc'
    rdoc.title = 'rdoc'
    rdoc.options << '--line-numbers' << '--inline-source'
    rdoc.rdoc_files.include('/*.rb')
    end
    ```

    ```bash
    > rake
    ```

    Generates searchable documentation, and displays my docs in my editors overlay hints :)