0

I'm using rdoc to generate API documentation for my Ruby program, but it's pulling in lots of files I don't care to include in the documentation. I see that there is an option to exclude files by pattern, but it would really be better for me to simply provide an explicit list of files and directories to include.

Is there an option to do this, or am I out of luck?

2mac
  • 1,609
  • 5
  • 20
  • 35
  • [rdoc manpage](https://www.commandlinux.com/man-page/man1/rdoc.1.html) take a look at the `--include` or `--exclude` options. They do support pattern matching e.g. `--include /lib/*.rb` will include all the ".rb" files in the "/lib" directory. – engineersmnky Aug 12 '22 at 13:14
  • I did try the `include` option. That only seems to add files to the include path. It doesn't exclude the working directory. `exclude` does work, but it's annoying when I want to exclude most of the files under my working directory. – 2mac Aug 12 '22 at 14:34

0 Answers0