home.social

#rdoc — Public Fediverse posts

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

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

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

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

  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. RDoc, Yard, TomDoc – I still don't really know how to document Ruby (gem) code. Please help. Do you know a definitive guide?

    #ruby #rdoc

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

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

  11. @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

  12. @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

  13. @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

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

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

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

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

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

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

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