Giter Club home page Giter Club logo

Comments (3)

MSP-Greg avatar MSP-Greg commented on June 13, 2024

@Aerilius

Are these cases where the doc is written too much human-style that yardoc cannot extract parameters?

First of all, re rdoc based doc, its been a while since I looked at rdoc, so I don't recall how well it can doc parameter or return types/descriptions. Regardless, even it it can, the comments in Ruby don't do so. Examples at my doc site here.

Is there a yardoc method that returns html-formatted description? Should we otherwise try to convert RDoc formatting into html (RDoc stdlib, markdown javascript)?
Do we need to convert \n into <br/>?

I'll take a look. I think so, but don't recall how.

I haven't downloaded the plug-in or forked the repo yet. FYI, I've got Ruby 2.3 hacked into SU 2017, I'll try the code there. Right now I'm spending most of my 'OSS time' trying to get better windows support for Ruby...

from sketchup-console-plus.

Aerilius avatar Aerilius commented on June 13, 2024

The method block_given? did not show documentation in all contexts (e.g. when directly called at Kernel) because on Kernel it is used as class method (Kernel.block_given?) but it is documented as. instance method (Kernel#block_given?). When I added lookup in included modules in commit 5c2bbe3 it seems this was also fixed.

For RDoc I decided to detect and replace markup in the description text with a simple regexp (instead of requiring additional libraries). fc419a3

from sketchup-console-plus.

MSP-Greg avatar MSP-Greg commented on June 13, 2024

I guess I had forgotten about that. Notice the difference between the Kernel method lists of rubydoc.info and msp-greg.github.io...

Glad you got it sorted out. Thanks,

from sketchup-console-plus.

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.