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 CHANGED
@@ -23,6 +23,10 @@ and
23
23
 
24
24
  ## ChangeLog
25
25
 
26
+ ### 0.1.3
27
+
28
+ - Fix bug. Sub folder inherit by parent Web root path.
29
+
26
30
  ### 0.1.2
27
31
 
28
32
  - Support reStructuredText.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Leandocument
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leandocument
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: