Skip to content
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

Fix for drive letters #367

Merged
merged 1 commit into from Aug 28, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/rdoc/rdoc.rb
Expand Up @@ -353,7 +353,11 @@ def parse_file filename
return unless content

filename_path = Pathname(filename).expand_path
relative_path = filename_path.relative_path_from @options.root
begin
relative_path = filename_path.relative_path_from @options.root
rescue ArgumentError
relative_path = filename_path
end

if @options.page_dir and
relative_path.to_s.start_with? @options.page_dir.to_s then
Expand Down