GithubHelp home page GithubHelp logo

Comments (16)

lsegal avatar lsegal commented on July 26, 2024

When you say class overview, what are you referring to? http://yardoc.org/docs/TwP-servolux looks right to me

from yard.

TwP avatar TwP commented on July 26, 2024

The Servolux::Daemon class has a lengthy explanation of how to use the class just above the class declaration. RDoc will capture this class comment and put it at the top of the file. Yard used to do this (version 2.3.5.1) but the latest release no longer pulls in this data for this particular gem.

http://github.com/TwP/servolux/blob/master/lib/servolux/daemon.rb

All the leading commentary is not showing up in yardoc output.

TwP

If you would like a more real-time conversation, IM me at tim(dot)pease(at)gmail(dot)com using your favorite jabber IM client.

from yard.

lsegal avatar lsegal commented on July 26, 2024

Okay, I confirmed this bug in with the legacy parser and in 1.8. Should be fixed soon.

from yard.

lsegal avatar lsegal commented on July 26, 2024

Note that you have a "# class Servolux::Daemon" following the end of your class definition. If you remove that, the prepended comments should show up- YARD is just getting confused because it accepts both prepended comments and comments appended to the end of the line. I will make it so that the legacy parser takes the prepended comments at a higher precedence.

from yard.

lsegal avatar lsegal commented on July 26, 2024

Legacy parser should prioritize prepended comments over appended ones.

Closed by e545ba0

from yard.

sprsquish avatar sprsquish commented on July 26, 2024

I'm still getting this error. I pulled down the change you made, installed the gem and run it against my project. The odd thing is that it caught and parsed the text for one class, but no others.

from yard.

lsegal avatar lsegal commented on July 26, 2024

Which one is yours?

from yard.

sprsquish avatar sprsquish commented on July 26, 2024

http://github.com/sprsquish/blather/tree/better-docs

the "better-docs" branch of Blather

from yard.

lsegal avatar lsegal commented on July 26, 2024

It looks correct to me: http://yardoc.org/docs/sprsquish-blather/Blather/Client

Anything wrong on any of the pages? I'm seeing everything you would expect.

from yard.

sprsquish avatar sprsquish commented on July 26, 2024

hm.. that all looks right. what options did you pass in?

I'm building my docs with the rake task. And I don't get the search box in the upper left

from yard.

lsegal avatar lsegal commented on July 26, 2024

The search box is a customization for the live docs at yardoc.org. I tested this locally, though, and I get the same results. I simply used yardoc in the base directory, which is what the Rake task does by default as well. Verify that you've properly updated yard (yardoc -v), and make sure to delete 0.2.3.5 if you still have it, the rubygems plugin is known to interfere.

from yard.

sprsquish avatar sprsquish commented on July 26, 2024

ah.. It works on ruby 1.9 not on 1.8.7

from yard.

lsegal avatar lsegal commented on July 26, 2024

I tested this in 1.8 as well. Same result:

Generated on Tue Nov 17 02:15:51 2009 by yard 0.4.0 (ruby-1.8.7).

from yard.

lsegal avatar lsegal commented on July 26, 2024

Perhaps your gem install in 1.8 is not using the stable branch and doesn't have the recent changes?

from yard.

sprsquish avatar sprsquish commented on July 26, 2024

I updated both from the cloned repo.

The other odd thing is that the Index isn't in alphabetical order on 1.8.7.

from yard.

lsegal avatar lsegal commented on July 26, 2024

Thanks, index ordering is fixed in 1.8, but I still get proper data when generating for your project in 1.8.

from yard.

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.