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
source share