summaryrefslogtreecommitdiff
path: root/lib/rdoc/rdoc.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rdoc/rdoc.rb')
-rw-r--r--lib/rdoc/rdoc.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/rdoc/rdoc.rb b/lib/rdoc/rdoc.rb
index eabf4fd3f7..76da5b4289 100644
--- a/lib/rdoc/rdoc.rb
+++ b/lib/rdoc/rdoc.rb
@@ -349,6 +349,12 @@ option)
filename_path = Pathname(filename).expand_path
relative_path = filename_path.relative_path_from @options.root
+ if @options.page_dir and
+ relative_path.to_s.start_with? @options.page_dir.to_s then
+ relative_path =
+ relative_path.relative_path_from @options.page_dir
+ end
+
top_level = @store.add_file filename, relative_path.to_s
parser = RDoc::Parser.for top_level, filename, content, @options, @stats