leandocument 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +4 -0
- data/lib/leandocument/document.rb +1 -1
- data/lib/leandocument/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
|
@@ -62,7 +62,7 @@ module Leandocument
|
|
|
62
62
|
end
|
|
63
63
|
dirs(path).each do |dir|
|
|
64
64
|
# Plus one indent from parent. Change h[1-6] tag to h[2-7] if indent is 1.
|
|
65
|
-
doc = Document.new :base_path => dir, :lang => self.lang, :indent => self.indent + 1, :settings => self.settings, :web_path => dir.gsub(self.base_path, ""), :commit => self.commit, :repository => self.repository
|
|
65
|
+
doc = Document.new :base_path => dir, :lang => self.lang, :indent => self.indent + 1, :settings => self.settings, :web_path => self.web_path[0..-2] + dir.gsub(self.base_path, ""), :commit => self.commit, :repository => self.repository
|
|
66
66
|
self.childs << doc
|
|
67
67
|
page += doc.to_html
|
|
68
68
|
end
|
data/lib/leandocument/version.rb
CHANGED