My first question I found the --private
switch is not work for yard server
, so how to make it work?
Second, I noticed that --private
switch works for yard doc
, if I choose to use the yard doc
to generate doc files instead of using the yard server
, How to make the rendering document have the frame (side bar)
Answering your second question: You can create a
.yardopts
file with--private
andyard server
will respect it.One caveat is that after documentations is generated for a method, if you subsequently make it private you will need to delete the cache (
rm -rf .yardoc
) then restartyard server
.