double_doc 1.0.9 → 1.0.10
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 -2
- data/lib/double_doc/version.rb +1 -1
- data/templates/default.html.erb +1 -1
- metadata +64 -100
@@ -23,7 +23,8 @@ module DoubleDoc
|
|
23
23
|
generated_files = [@output_directory + File.basename(@stylesheet)]
|
24
24
|
|
25
25
|
@sources.each do |src|
|
26
|
-
|
26
|
+
path = File.basename(src).sub(/\.md$/, '.html')
|
27
|
+
dst = @output_directory + path
|
27
28
|
puts "#{src} -> #{dst}"
|
28
29
|
FileUtils.mkdir_p(File.dirname(dst))
|
29
30
|
File.open(dst, 'w') do |out|
|
@@ -34,7 +35,8 @@ module DoubleDoc
|
|
34
35
|
:title => @title,
|
35
36
|
:body => body,
|
36
37
|
:css => File.basename(@stylesheet),
|
37
|
-
:sitemap => sitemap
|
38
|
+
:sitemap => sitemap,
|
39
|
+
:path => path
|
38
40
|
)
|
39
41
|
out.write(html)
|
40
42
|
end
|
data/lib/double_doc/version.rb
CHANGED
data/templates/default.html.erb
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
<% sitemap.each do |item| %>
|
17
17
|
<li>
|
18
18
|
<a class="source" href="<%= item.href %>"><%= item.title %></a>
|
19
|
-
<% if item.children.any? %>
|
19
|
+
<% if item.path == path && item.children.any? %>
|
20
20
|
<ul>
|
21
21
|
<% item.children.each do |child| %>
|
22
22
|
<li><a href="<%= child.href %>"><%= child.title %></a></li>
|
metadata
CHANGED
@@ -1,118 +1,90 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: double_doc
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.10
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 9
|
10
|
-
version: 1.0.9
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Mick Staugaard
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-03-31 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: guard
|
22
|
-
|
16
|
+
requirement: &70232471213320 !ruby/object:Gem::Requirement
|
23
17
|
none: false
|
24
|
-
requirements:
|
25
|
-
- -
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
|
28
|
-
segments:
|
29
|
-
- 0
|
30
|
-
version: "0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
31
22
|
type: :development
|
32
23
|
prerelease: false
|
33
|
-
|
34
|
-
- !ruby/object:Gem::Dependency
|
24
|
+
version_requirements: *70232471213320
|
25
|
+
- !ruby/object:Gem::Dependency
|
35
26
|
name: minitest
|
36
|
-
|
27
|
+
requirement: &70232471212880 !ruby/object:Gem::Requirement
|
37
28
|
none: false
|
38
|
-
requirements:
|
39
|
-
- -
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
|
42
|
-
segments:
|
43
|
-
- 0
|
44
|
-
version: "0"
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
45
33
|
type: :development
|
46
34
|
prerelease: false
|
47
|
-
|
48
|
-
- !ruby/object:Gem::Dependency
|
35
|
+
version_requirements: *70232471212880
|
36
|
+
- !ruby/object:Gem::Dependency
|
49
37
|
name: rake
|
50
|
-
|
38
|
+
requirement: &70232471212440 !ruby/object:Gem::Requirement
|
51
39
|
none: false
|
52
|
-
requirements:
|
53
|
-
- -
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
|
56
|
-
segments:
|
57
|
-
- 0
|
58
|
-
version: "0"
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
59
44
|
type: :runtime
|
60
45
|
prerelease: false
|
61
|
-
|
62
|
-
- !ruby/object:Gem::Dependency
|
46
|
+
version_requirements: *70232471212440
|
47
|
+
- !ruby/object:Gem::Dependency
|
63
48
|
name: erubis
|
64
|
-
|
49
|
+
requirement: &70232471212020 !ruby/object:Gem::Requirement
|
65
50
|
none: false
|
66
|
-
requirements:
|
67
|
-
- -
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
|
70
|
-
segments:
|
71
|
-
- 0
|
72
|
-
version: "0"
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
73
55
|
type: :runtime
|
74
56
|
prerelease: false
|
75
|
-
|
76
|
-
- !ruby/object:Gem::Dependency
|
57
|
+
version_requirements: *70232471212020
|
58
|
+
- !ruby/object:Gem::Dependency
|
77
59
|
name: redcarpet
|
78
|
-
|
60
|
+
requirement: &70232471211520 !ruby/object:Gem::Requirement
|
79
61
|
none: false
|
80
|
-
requirements:
|
62
|
+
requirements:
|
81
63
|
- - ~>
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
|
84
|
-
segments:
|
85
|
-
- 2
|
86
|
-
- 1
|
87
|
-
version: "2.1"
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '2.1'
|
88
66
|
type: :runtime
|
89
67
|
prerelease: false
|
90
|
-
|
91
|
-
- !ruby/object:Gem::Dependency
|
68
|
+
version_requirements: *70232471211520
|
69
|
+
- !ruby/object:Gem::Dependency
|
92
70
|
name: pygments.rb
|
93
|
-
|
71
|
+
requirement: &70232471211020 !ruby/object:Gem::Requirement
|
94
72
|
none: false
|
95
|
-
requirements:
|
73
|
+
requirements:
|
96
74
|
- - ~>
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
|
99
|
-
segments:
|
100
|
-
- 0
|
101
|
-
- 2
|
102
|
-
version: "0.2"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0.2'
|
103
77
|
type: :runtime
|
104
78
|
prerelease: false
|
105
|
-
|
106
|
-
description: A simple framework for writing and generating beautiful documentation
|
107
|
-
|
79
|
+
version_requirements: *70232471211020
|
80
|
+
description: A simple framework for writing and generating beautiful documentation
|
81
|
+
for your code
|
82
|
+
email:
|
108
83
|
- mick@staugaard.com
|
109
84
|
executables: []
|
110
|
-
|
111
85
|
extensions: []
|
112
|
-
|
113
86
|
extra_rdoc_files: []
|
114
|
-
|
115
|
-
files:
|
87
|
+
files:
|
116
88
|
- lib/double_doc/doc_extractor.rb
|
117
89
|
- lib/double_doc/html_generator.rb
|
118
90
|
- lib/double_doc/html_renderer.rb
|
@@ -130,38 +102,30 @@ files:
|
|
130
102
|
- test/test_helper.rb
|
131
103
|
homepage: http://staugaard.github.com/double_doc
|
132
104
|
licenses: []
|
133
|
-
|
134
105
|
post_install_message:
|
135
106
|
rdoc_options: []
|
136
|
-
|
137
|
-
require_paths:
|
107
|
+
require_paths:
|
138
108
|
- lib
|
139
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
109
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
140
110
|
none: false
|
141
|
-
requirements:
|
142
|
-
- -
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
|
145
|
-
|
146
|
-
- 0
|
147
|
-
version: "0"
|
148
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
|
+
requirements:
|
112
|
+
- - ! '>='
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: '0'
|
115
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
116
|
none: false
|
150
|
-
requirements:
|
151
|
-
- -
|
152
|
-
- !ruby/object:Gem::Version
|
153
|
-
|
154
|
-
segments:
|
155
|
-
- 0
|
156
|
-
version: "0"
|
117
|
+
requirements:
|
118
|
+
- - ! '>='
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '0'
|
157
121
|
requirements: []
|
158
|
-
|
159
122
|
rubyforge_project:
|
160
|
-
rubygems_version: 1.8.
|
123
|
+
rubygems_version: 1.8.16
|
161
124
|
signing_key:
|
162
125
|
specification_version: 3
|
163
126
|
summary: Documentation right where you want it
|
164
|
-
test_files:
|
127
|
+
test_files:
|
165
128
|
- test/doc_extractor_test.rb
|
166
129
|
- test/html_generator_test.rb
|
167
130
|
- test/test_helper.rb
|
131
|
+
has_rdoc:
|