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

2

9

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.

Polythene answered 26/7, 2012 at 10:10 Comment(0)
B
12
yardoc --output-dir /path/to/yard/doc app.rb
Bilyeu answered 27/7, 2012 at 6:23 Comment(1)
Thank you. I was too occupied searching for something "I dont know what" instead of taking a look at yard -h...Polythene
D
0

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
Defame answered 13/2, 2018 at 23:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.