double_doc 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/double_doc/html_generator.rb +4 -3
- data/lib/double_doc/version.rb +1 -1
- data/test/html_generator_test.rb +1 -1
- metadata +3 -3
@@ -63,10 +63,11 @@ module DoubleDoc
|
|
63
63
|
|
64
64
|
@sitemap = []
|
65
65
|
|
66
|
-
|
67
|
-
|
68
|
-
navigation_sources.each do |src|
|
66
|
+
@sources.each do |src|
|
69
67
|
path = File.basename(src).sub(/\.md$/, '.html')
|
68
|
+
|
69
|
+
next if @exclude_from_navigation.include?(path)
|
70
|
+
|
70
71
|
lines = File.readlines(src)
|
71
72
|
|
72
73
|
item = nil
|
data/lib/double_doc/version.rb
CHANGED
data/test/html_generator_test.rb
CHANGED
@@ -76,7 +76,7 @@ describe "the html generator" do
|
|
76
76
|
it "should skip specified filed" do
|
77
77
|
generator = DoubleDoc::HtmlGenerator.new(@input_files, {
|
78
78
|
:html_destination => @destination,
|
79
|
-
:exclude_from_navigation => [
|
79
|
+
:exclude_from_navigation => ['file_two.html']
|
80
80
|
})
|
81
81
|
generator.generate
|
82
82
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: double_doc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 1
|
10
|
+
version: 1.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Mick Staugaard
|