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

Is there any way to tell Yard not to clutter my doc/ project rails folder? I would like to save his files in doc/yard/ or something like that. Unfortunately, I did not find any option for this.

Thank you for your help.

+6
source share
2 answers
 yardoc --output-dir /path/to/yard/doc app.rb 
+8
source

You probably want to do this and forget about it. If so, the .yardopts in the root directory of your project is the path you just write in the file, one per line, so:

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

(or use vi or whatever to manually edit the file)

With this you can just do

 $ yard doc 
0
source

Source: https://habr.com/ru/post/921387/


All Articles