document_generator 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e77243ceac49946a440e28592c3199051cb75ea6
4
- data.tar.gz: 31a459c86b1d7f48147a2657073faf4f5688241c
3
+ metadata.gz: de49609b9ec62e17f7f8d95b88d69c8a4194a314
4
+ data.tar.gz: 846bd6739f10d942ecbee3902efdc6ea6d35cc34
5
5
  SHA512:
6
- metadata.gz: 4295e9d5ac604406f4307b029ec2e34a4bab31ae3a245425ab8c8ae4e48d95d13c837a3d08403f3c3ce97727b9089e75b3fca7f9b6398285a04186825b281463
7
- data.tar.gz: 70791e15f43dd06859cbeb2ea88617ce0c7267b78d8b64b5fde4d6ef644dc0cdd9bdac20a9dd0e53f3693450c1d13677d6a99b69a9906e718c1b1744e290e010
6
+ metadata.gz: e285f29e9753553baf53644d3869a35302e6f4ed6931654bf736cb2c70626bbe0d860d52a7e710ef03bf7422c1235ed51e6d919bdaa425d90a71b8e7b240124c
7
+ data.tar.gz: bc5b333e213733c5ccb604869414690531ea75d6fb34295a35bb3dbe3c99797e70191f776c6009efe6b9d6698ef6db3a25242b0ee8454753bb900eca98fc6752
@@ -30,11 +30,13 @@ module DocumentGenerator
30
30
 
31
31
  if markdown_outputs.any?
32
32
  markdown_outputs.each do |output|
33
- temp << "\n\n"
34
- temp << output.description
35
- temp << "\n<pre><code>"
36
- temp << output.escaped_content
37
- temp << "</code></pre>\n"
33
+ if output.escaped_content.length > 0
34
+ temp << "\n\n"
35
+ temp << output.description
36
+ temp << "\n<pre><code>"
37
+ temp << output.escaped_content
38
+ temp << "</code></pre>\n"
39
+ end
38
40
  end
39
41
  end
40
42
 
@@ -1,3 +1,3 @@
1
1
  module DocumentGenerator
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: document_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - wiscoDude
@@ -128,10 +128,8 @@ files:
128
128
  - LICENSE.txt
129
129
  - README.md
130
130
  - Rakefile
131
- - _layouts/default.html
132
131
  - assets/_layouts/default.html
133
132
  - bin/doc_generate
134
- - coderay.css
135
133
  - document_generator.gemspec
136
134
  - lib/document_generator.rb
137
135
  - lib/document_generator/cli.rb
@@ -165,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
163
  version: '0'
166
164
  requirements: []
167
165
  rubyforge_project:
168
- rubygems_version: 2.0.6
166
+ rubygems_version: 2.1.5
169
167
  signing_key:
170
168
  specification_version: 4
171
169
  summary: Generate documentation from a git repository.
data/coderay.css DELETED
@@ -1,129 +0,0 @@
1
- .CodeRay {
2
- background-color: hsl(0,0%,95%);
3
- border: 1px solid silver;
4
- color: black;
5
- }
6
- .CodeRay pre {
7
- margin: 0px;
8
- }
9
-
10
- span.CodeRay { white-space: pre; border: 0px; padding: 2px; }
11
-
12
- table.CodeRay { border-collapse: collapse; width: 100%; padding: 2px; }
13
- table.CodeRay td { padding: 2px 4px; vertical-align: top; }
14
-
15
- .CodeRay .line-numbers {
16
- color: gray;
17
- text-align: right;
18
- -webkit-user-select: none;
19
- -moz-user-select: none;
20
- user-select: none;
21
- }
22
- .CodeRay .line-numbers a {
23
- color: gray !important;
24
- text-decoration: none !important;
25
- }
26
- .CodeRay .line-numbers pre {
27
- word-break: normal;
28
- border-right: 1px solid #ddd;
29
- }
30
- .CodeRay .line-numbers a:target { color: blue !important; }
31
- .CodeRay .line-numbers .highlighted { color: red !important; }
32
- .CodeRay .line-numbers .highlighted a { color: red !important; }
33
- .CodeRay span.line-numbers { padding: 0px 4px; }
34
- .CodeRay .line { display: block; float: left; width: 100%; }
35
- .CodeRay .code { width: 100%; }
36
-
37
- .CodeRay .debug { color: white !important; background: blue !important; }
38
-
39
- .CodeRay .annotation { color:#007 }
40
- .CodeRay .attribute-name { color:#b48 }
41
- .CodeRay .attribute-value { color:#700 }
42
- .CodeRay .binary { color:#549 }
43
- .CodeRay .binary .char { color:#325 }
44
- .CodeRay .binary .delimiter { color:#325 }
45
- .CodeRay .char { color:#D20 }
46
- .CodeRay .char .content { color:#D20 }
47
- .CodeRay .char .delimiter { color:#710 }
48
- .CodeRay .class { color:#B06; font-weight:bold }
49
- .CodeRay .class-variable { color:#369 }
50
- .CodeRay .color { color:#0A0 }
51
- .CodeRay .comment { color:#777 }
52
- .CodeRay .comment .char { color:#444 }
53
- .CodeRay .comment .delimiter { color:#444 }
54
- .CodeRay .constant { color:#036; font-weight:bold }
55
- .CodeRay .decorator { color:#B0B }
56
- .CodeRay .definition { color:#099; font-weight:bold }
57
- .CodeRay .delimiter { color:black }
58
- .CodeRay .directive { color:#088; font-weight:bold }
59
- .CodeRay .docstring { color:#D42; }
60
- .CodeRay .doctype { color:#34b }
61
- .CodeRay .done { text-decoration: line-through; color: gray }
62
- .CodeRay .entity { color:#800; font-weight:bold }
63
- .CodeRay .error { color:#F00; background-color:#FAA }
64
- .CodeRay .escape { color:#666 }
65
- .CodeRay .exception { color:#C00; font-weight:bold }
66
- .CodeRay .float { color:#60E }
67
- .CodeRay .function { color:#06B; font-weight:bold }
68
- .CodeRay .function .delimiter { color:#024; font-weight:bold }
69
- .CodeRay .global-variable { color:#d70 }
70
- .CodeRay .hex { color:#02b }
71
- .CodeRay .id { color:#33D; font-weight:bold }
72
- .CodeRay .include { color:#B44; font-weight:bold }
73
- .CodeRay .inline { background-color: hsla(0,0%,0%,0.07); color: black }
74
- .CodeRay .inline-delimiter { font-weight: bold; color: #666 }
75
- .CodeRay .instance-variable { color:#33B }
76
- .CodeRay .integer { color:#00D }
77
- .CodeRay .imaginary { color:#f00 }
78
- .CodeRay .important { color:#D00 }
79
- .CodeRay .key { color: #606 }
80
- .CodeRay .key .char { color: #60f }
81
- .CodeRay .key .delimiter { color: #404 }
82
- .CodeRay .keyword { color:#080; font-weight:bold }
83
- .CodeRay .label { color:#970; font-weight:bold }
84
- .CodeRay .local-variable { color:#950 }
85
- .CodeRay .map .content { color:#808 }
86
- .CodeRay .map .delimiter { color:#40A}
87
- .CodeRay .map { background-color:hsla(200,100%,50%,0.06); }
88
- .CodeRay .namespace { color:#707; font-weight:bold }
89
- .CodeRay .octal { color:#40E }
90
- .CodeRay .operator { }
91
- .CodeRay .predefined { color:#369; font-weight:bold }
92
- .CodeRay .predefined-constant { color:#069 }
93
- .CodeRay .predefined-type { color:#0a8; font-weight:bold }
94
- .CodeRay .preprocessor { color:#579 }
95
- .CodeRay .pseudo-class { color:#00C; font-weight:bold }
96
- .CodeRay .regexp { background-color:hsla(300,100%,50%,0.06); }
97
- .CodeRay .regexp .content { color:#808 }
98
- .CodeRay .regexp .delimiter { color:#404 }
99
- .CodeRay .regexp .modifier { color:#C2C }
100
- .CodeRay .reserved { color:#080; font-weight:bold }
101
- .CodeRay .shell { background-color:hsla(120,100%,50%,0.06); }
102
- .CodeRay .shell .content { color:#2B2 }
103
- .CodeRay .shell .delimiter { color:#161 }
104
- .CodeRay .string { background-color:hsla(0,100%,50%,0.05); }
105
- .CodeRay .string .char { color: #b0b }
106
- .CodeRay .string .content { color: #D20 }
107
- .CodeRay .string .delimiter { color: #710 }
108
- .CodeRay .string .modifier { color: #E40 }
109
- .CodeRay .symbol { color:#A60 }
110
- .CodeRay .symbol .content { color:#A60 }
111
- .CodeRay .symbol .delimiter { color:#740 }
112
- .CodeRay .tag { color:#070; font-weight:bold }
113
- .CodeRay .type { color:#339; font-weight:bold }
114
- .CodeRay .value { color: #088 }
115
- .CodeRay .variable { color:#037 }
116
-
117
- .CodeRay .insert { background: hsla(120,100%,50%,0.12) }
118
- .CodeRay .delete { background: hsla(0,100%,50%,0.12) }
119
- .CodeRay .change { color: #bbf; background: #007 }
120
- .CodeRay .head { color: #f8f; background: #505 }
121
- .CodeRay .head .filename { color: white; }
122
-
123
- .CodeRay .delete .eyecatcher { background-color: hsla(0,100%,50%,0.2); border: 1px solid hsla(0,100%,45%,0.5); margin: -1px; border-bottom: none; border-top-left-radius: 5px; border-top-right-radius: 5px; }
124
- .CodeRay .insert .eyecatcher { background-color: hsla(120,100%,50%,0.2); border: 1px solid hsla(120,100%,25%,0.5); margin: -1px; border-top: none; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; }
125
-
126
- .CodeRay .insert .insert { color: #0c0; background:transparent; font-weight:bold }
127
- .CodeRay .delete .delete { color: #c00; background:transparent; font-weight:bold }
128
- .CodeRay .change .change { color: #88f }
129
- .CodeRay .head .head { color: #f4f }