Joshua Muheim
Joshua Muheim

Reputation: 13233

Yard: Specify a different path for the compiled doc (instead of doc/)?

Is there any way to tell Yard not to clutter up my Rails project's doc/ folder? I'd like it to save its files in doc/yard/ or something like that. Sadly I didn't find any option for that.

Thank you for help.

Upvotes: 9

Views: 1823

Answers (2)

starfry
starfry

Reputation: 9983

You probably want to conifgure this and forget about it. If so, .yardopts in your project root directory is the way to go - you just write the option in the file, one per line, so something like:

$ echo --output-dir /path/to/yard/doc >> .yardopts

(or use vi or whatever to edit the file by hand)

With that in place you can just do

$ yard doc

Upvotes: 0

Kashyap
Kashyap

Reputation: 4796

yardoc --output-dir /path/to/yard/doc app.rb

Upvotes: 12

Related Questions