Skip to content

--exclude does not work properly #596

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
voxik opened this issue Feb 5, 2018 · 1 comment · Fixed by #603
Closed

--exclude does not work properly #596

voxik opened this issue Feb 5, 2018 · 1 comment · Fixed by #603

Comments

@voxik
Copy link
Contributor

voxik commented Feb 5, 2018

Trying to exclude some parts of the documentation, it seems that the --exclude option does not work properly. E.g. trying to generate documentation for Ruby StdLib excluding rubygems:

$ rdoc --op ./foo --encoding=UTF-8 --all --ri -x rubygems /var/lib/mock/ruby/root/builddir/build/BUILD/ruby-2.5.0/lib | grep rubygems
 45% [154/337]  /var/lib/mock/ruby/root/builddir/build/BUILD/ruby-2.5.0/lib/rdoc/rubygems_hook.rb
 78% [263/337]  /var/lib/mock/ruby/root/builddir/build/BUILD/ruby-2.5.0/lib/rubygems.rb

Generating RI format into /home/vondruch/ff/foo...

... snip ...

Although this excludes the lib/rubygems directory, it keeps other "rubygems" files. Trying exclude "rdoc", it does not even exclude the "rdoc" directory.

$ rdoc -v
6.0.1

$ ruby -v
ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux]
@aycabta
Copy link
Member

aycabta commented Feb 25, 2018

The directory has .document file what has priority over --exclude option. I think that the behavior is a bug. I fixed it by #603.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants