lsegal / yard

YARD is a Ruby Documentation tool. The Y stands for "Yay!"
http://yardoc.org
MIT License
1.92k stars 393 forks source link

Yard server doesn't respect .yardopts file #581

Closed japgolly closed 11 years ago

japgolly commented 11 years ago

Hi. I have a .yardopts file that looks like this:

--db         target/yardoc.db
--output-dir target/doc
--markup     markdown
--readme     README.md
--files      CHANGELOG.md
{app,lib}/**/*.rb

Running yard doc everything is dandy (yes, dandy), however when I run yard server it seems to not attempt to read my yard config file. The output I see is:

> yard server  
[info]: No .yardoc file found in current directory, parsing source before starting server...
Files:          19
Modules:        13 (    7 undocumented)
Classes:        10 (    5 undocumented)
Constants:       1 (    0 undocumented)
Methods:        58 (   14 undocumented)
 68.29% documented
[warn]: Cannot find yardoc db for golly-utils: /home/golly/projects/golly-utils/.yardoc
>> YARD 0.8.2.1 documentation server at http://0.0.0.0:8808

and when I view what it's serving I see an empty library listing.

lsegal commented 11 years ago

Fixed by #586