nasldoc 0.1.0 → 0.1.1

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.
Files changed (35) hide show
  1. data/LICENSE +3 -3
  2. data/NEWS.markdown +9 -5
  3. data/README.markdown +38 -41
  4. data/Rakefile +49 -3
  5. data/TODO.markdown +20 -0
  6. data/bin/nasldoc +27 -1
  7. data/lib/nasldoc.rb +27 -1
  8. data/lib/nasldoc/assets/css/bootstrap.css +6004 -0
  9. data/lib/nasldoc/assets/css/bootstrap.min.css +859 -0
  10. data/lib/nasldoc/assets/css/shCore.css +226 -0
  11. data/lib/nasldoc/assets/css/shThemeDefault.css +117 -0
  12. data/lib/nasldoc/assets/{stylesheet.css → css/stylesheet.css} +37 -15
  13. data/lib/nasldoc/assets/img/glyphicons-halflings-white.png +0 -0
  14. data/lib/nasldoc/assets/img/glyphicons-halflings.png +0 -0
  15. data/lib/nasldoc/assets/{nessus.jpg → img/nessus.jpg} +0 -0
  16. data/lib/nasldoc/assets/js/bootstrap.js +2036 -0
  17. data/lib/nasldoc/assets/js/bootstrap.min.js +7 -0
  18. data/lib/nasldoc/assets/js/jquery-1.8.2.js +9440 -0
  19. data/lib/nasldoc/assets/js/shBrushNasl.js +33 -0
  20. data/lib/nasldoc/assets/js/shCore.js +17 -0
  21. data/lib/nasldoc/cli.rb +26 -0
  22. data/lib/nasldoc/cli/application.rb +150 -222
  23. data/lib/nasldoc/cli/comment.rb +317 -0
  24. data/lib/nasldoc/templates/file.erb +362 -154
  25. data/lib/nasldoc/templates/index.erb +93 -9
  26. data/lib/nasldoc/templates/old/file.erb +332 -0
  27. data/lib/nasldoc/templates/old/xfile.erb +267 -0
  28. data/lib/nasldoc/templates/old/xindex.erb +16 -0
  29. data/lib/nasldoc/templates/old/xoverview.erb +26 -0
  30. data/lib/nasldoc/templates/old/xsidebar.erb +21 -0
  31. data/lib/nasldoc/templates/xindex.erb +16 -0
  32. data/nasldoc.gemspec +45 -18
  33. metadata +45 -13
  34. data/lib/nasldoc/templates/overview.erb +0 -27
  35. data/lib/nasldoc/templates/sidebar.erb +0 -20
@@ -0,0 +1,226 @@
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (July 02 2010)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2010 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ .syntaxhighlighter a,
18
+ .syntaxhighlighter div,
19
+ .syntaxhighlighter code,
20
+ .syntaxhighlighter table,
21
+ .syntaxhighlighter table td,
22
+ .syntaxhighlighter table tr,
23
+ .syntaxhighlighter table tbody,
24
+ .syntaxhighlighter table thead,
25
+ .syntaxhighlighter table caption,
26
+ .syntaxhighlighter textarea {
27
+ -moz-border-radius: 0 0 0 0 !important;
28
+ -webkit-border-radius: 0 0 0 0 !important;
29
+ background: none !important;
30
+ border: 0 !important;
31
+ bottom: auto !important;
32
+ float: none !important;
33
+ height: auto !important;
34
+ left: auto !important;
35
+ line-height: 1.1em !important;
36
+ margin: 0 !important;
37
+ outline: 0 !important;
38
+ overflow: visible !important;
39
+ padding: 0 !important;
40
+ position: static !important;
41
+ right: auto !important;
42
+ text-align: left !important;
43
+ top: auto !important;
44
+ vertical-align: baseline !important;
45
+ width: auto !important;
46
+ box-sizing: content-box !important;
47
+ font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
48
+ font-weight: normal !important;
49
+ font-style: normal !important;
50
+ font-size: 1em !important;
51
+ min-height: inherit !important;
52
+ min-height: auto !important;
53
+ }
54
+
55
+ .syntaxhighlighter {
56
+ width: 100% !important;
57
+ margin: 1em 0 1em 0 !important;
58
+ position: relative !important;
59
+ overflow: auto !important;
60
+ font-size: 1em !important;
61
+ }
62
+ .syntaxhighlighter.source {
63
+ overflow: hidden !important;
64
+ }
65
+ .syntaxhighlighter .bold {
66
+ font-weight: bold !important;
67
+ }
68
+ .syntaxhighlighter .italic {
69
+ font-style: italic !important;
70
+ }
71
+ .syntaxhighlighter .line {
72
+ white-space: pre !important;
73
+ }
74
+ .syntaxhighlighter table {
75
+ width: 100% !important;
76
+ }
77
+ .syntaxhighlighter table caption {
78
+ text-align: left !important;
79
+ padding: .5em 0 0.5em 1em !important;
80
+ }
81
+ .syntaxhighlighter table td.code {
82
+ width: 100% !important;
83
+ }
84
+ .syntaxhighlighter table td.code .container {
85
+ position: relative !important;
86
+ }
87
+ .syntaxhighlighter table td.code .container textarea {
88
+ box-sizing: border-box !important;
89
+ position: absolute !important;
90
+ left: 0 !important;
91
+ top: 0 !important;
92
+ width: 100% !important;
93
+ height: 100% !important;
94
+ border: none !important;
95
+ background: white !important;
96
+ padding-left: 1em !important;
97
+ overflow: hidden !important;
98
+ white-space: pre !important;
99
+ }
100
+ .syntaxhighlighter table td.gutter .line {
101
+ text-align: right !important;
102
+ padding: 0 0.5em 0 1em !important;
103
+ }
104
+ .syntaxhighlighter table td.code .line {
105
+ padding: 0 1em !important;
106
+ }
107
+ .syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line {
108
+ padding-left: 0em !important;
109
+ }
110
+ .syntaxhighlighter.show {
111
+ display: block !important;
112
+ }
113
+ .syntaxhighlighter.collapsed table {
114
+ display: none !important;
115
+ }
116
+ .syntaxhighlighter.collapsed .toolbar {
117
+ padding: 0.1em 0.8em 0em 0.8em !important;
118
+ font-size: 1em !important;
119
+ position: static !important;
120
+ width: auto !important;
121
+ height: auto !important;
122
+ }
123
+ .syntaxhighlighter.collapsed .toolbar span {
124
+ display: inline !important;
125
+ margin-right: 1em !important;
126
+ }
127
+ .syntaxhighlighter.collapsed .toolbar span a {
128
+ padding: 0 !important;
129
+ display: none !important;
130
+ }
131
+ .syntaxhighlighter.collapsed .toolbar span a.expandSource {
132
+ display: inline !important;
133
+ }
134
+ .syntaxhighlighter .toolbar {
135
+ position: absolute !important;
136
+ right: 1px !important;
137
+ top: 1px !important;
138
+ width: 11px !important;
139
+ height: 11px !important;
140
+ font-size: 10px !important;
141
+ z-index: 10 !important;
142
+ }
143
+ .syntaxhighlighter .toolbar span.title {
144
+ display: inline !important;
145
+ }
146
+ .syntaxhighlighter .toolbar a {
147
+ display: block !important;
148
+ text-align: center !important;
149
+ text-decoration: none !important;
150
+ padding-top: 1px !important;
151
+ }
152
+ .syntaxhighlighter .toolbar a.expandSource {
153
+ display: none !important;
154
+ }
155
+ .syntaxhighlighter.ie {
156
+ font-size: .9em !important;
157
+ padding: 1px 0 1px 0 !important;
158
+ }
159
+ .syntaxhighlighter.ie .toolbar {
160
+ line-height: 8px !important;
161
+ }
162
+ .syntaxhighlighter.ie .toolbar a {
163
+ padding-top: 0px !important;
164
+ }
165
+ .syntaxhighlighter.printing .line.alt1 .content,
166
+ .syntaxhighlighter.printing .line.alt2 .content,
167
+ .syntaxhighlighter.printing .line.highlighted .number,
168
+ .syntaxhighlighter.printing .line.highlighted.alt1 .content,
169
+ .syntaxhighlighter.printing .line.highlighted.alt2 .content {
170
+ background: none !important;
171
+ }
172
+ .syntaxhighlighter.printing .line .number {
173
+ color: #bbbbbb !important;
174
+ }
175
+ .syntaxhighlighter.printing .line .content {
176
+ color: black !important;
177
+ }
178
+ .syntaxhighlighter.printing .toolbar {
179
+ display: none !important;
180
+ }
181
+ .syntaxhighlighter.printing a {
182
+ text-decoration: none !important;
183
+ }
184
+ .syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a {
185
+ color: black !important;
186
+ }
187
+ .syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a {
188
+ color: #008200 !important;
189
+ }
190
+ .syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a {
191
+ color: blue !important;
192
+ }
193
+ .syntaxhighlighter.printing .keyword {
194
+ color: #006699 !important;
195
+ font-weight: bold !important;
196
+ }
197
+ .syntaxhighlighter.printing .preprocessor {
198
+ color: gray !important;
199
+ }
200
+ .syntaxhighlighter.printing .variable {
201
+ color: #aa7700 !important;
202
+ }
203
+ .syntaxhighlighter.printing .value {
204
+ color: #009900 !important;
205
+ }
206
+ .syntaxhighlighter.printing .functions {
207
+ color: #ff1493 !important;
208
+ }
209
+ .syntaxhighlighter.printing .constants {
210
+ color: #0066cc !important;
211
+ }
212
+ .syntaxhighlighter.printing .script {
213
+ font-weight: bold !important;
214
+ }
215
+ .syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a {
216
+ color: gray !important;
217
+ }
218
+ .syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a {
219
+ color: #ff1493 !important;
220
+ }
221
+ .syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a {
222
+ color: red !important;
223
+ }
224
+ .syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a {
225
+ color: black !important;
226
+ }
@@ -0,0 +1,117 @@
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (July 02 2010)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2010 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ .syntaxhighlighter {
18
+ background-color: white !important;
19
+ }
20
+ .syntaxhighlighter .line.alt1 {
21
+ background-color: white !important;
22
+ }
23
+ .syntaxhighlighter .line.alt2 {
24
+ background-color: white !important;
25
+ }
26
+ .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 {
27
+ background-color: #e0e0e0 !important;
28
+ }
29
+ .syntaxhighlighter .line.highlighted.number {
30
+ color: black !important;
31
+ }
32
+ .syntaxhighlighter table caption {
33
+ color: black !important;
34
+ }
35
+ .syntaxhighlighter .gutter {
36
+ color: #afafaf !important;
37
+ }
38
+ .syntaxhighlighter .gutter .line {
39
+ border-right: 3px solid #6ce26c !important;
40
+ }
41
+ .syntaxhighlighter .gutter .line.highlighted {
42
+ background-color: #6ce26c !important;
43
+ color: white !important;
44
+ }
45
+ .syntaxhighlighter.printing .line .content {
46
+ border: none !important;
47
+ }
48
+ .syntaxhighlighter.collapsed {
49
+ overflow: visible !important;
50
+ }
51
+ .syntaxhighlighter.collapsed .toolbar {
52
+ color: blue !important;
53
+ background: white !important;
54
+ border: 1px solid #6ce26c !important;
55
+ }
56
+ .syntaxhighlighter.collapsed .toolbar a {
57
+ color: blue !important;
58
+ }
59
+ .syntaxhighlighter.collapsed .toolbar a:hover {
60
+ color: red !important;
61
+ }
62
+ .syntaxhighlighter .toolbar {
63
+ color: white !important;
64
+ background: #6ce26c !important;
65
+ border: none !important;
66
+ }
67
+ .syntaxhighlighter .toolbar a {
68
+ color: white !important;
69
+ }
70
+ .syntaxhighlighter .toolbar a:hover {
71
+ color: black !important;
72
+ }
73
+ .syntaxhighlighter .plain, .syntaxhighlighter .plain a {
74
+ color: black !important;
75
+ }
76
+ .syntaxhighlighter .comments, .syntaxhighlighter .comments a {
77
+ color: #008200 !important;
78
+ }
79
+ .syntaxhighlighter .string, .syntaxhighlighter .string a {
80
+ color: blue !important;
81
+ }
82
+ .syntaxhighlighter .keyword {
83
+ color: #006699 !important;
84
+ }
85
+ .syntaxhighlighter .preprocessor {
86
+ color: gray !important;
87
+ }
88
+ .syntaxhighlighter .variable {
89
+ color: #aa7700 !important;
90
+ }
91
+ .syntaxhighlighter .value {
92
+ color: #009900 !important;
93
+ }
94
+ .syntaxhighlighter .functions {
95
+ color: #ff1493 !important;
96
+ }
97
+ .syntaxhighlighter .constants {
98
+ color: #0066cc !important;
99
+ }
100
+ .syntaxhighlighter .script {
101
+ font-weight: bold !important;
102
+ color: #006699 !important;
103
+ background-color: none !important;
104
+ }
105
+ .syntaxhighlighter .color1, .syntaxhighlighter .color1 a {
106
+ color: gray !important;
107
+ }
108
+ .syntaxhighlighter .color2, .syntaxhighlighter .color2 a {
109
+ color: #ff1493 !important;
110
+ }
111
+ .syntaxhighlighter .color3, .syntaxhighlighter .color3 a {
112
+ color: red !important;
113
+ }
114
+
115
+ .syntaxhighlighter .keyword {
116
+ font-weight: bold !important;
117
+ }
@@ -3,7 +3,8 @@
3
3
  /* Define colors, fonts and other style attributes here to override the defaults */
4
4
 
5
5
  /* Page background color */
6
- body {
6
+ body
7
+ {
7
8
  background-color: #FFFFFF;
8
9
  margin-left: 0px;
9
10
  margin-top: 0px;
@@ -14,41 +15,53 @@ body {
14
15
  background-position: center;
15
16
  }
16
17
 
17
- #content {
18
+ #content
19
+ {
18
20
  padding: 5px;
19
21
  }
20
22
 
21
- table.nopad {
23
+ table.nopad
24
+ {
22
25
  border:1px solid black;
23
26
  width:100%;
24
27
  border-collapse: collapse;
25
28
  }
26
29
 
27
- .odd {
30
+ .odd
31
+ {
28
32
  background-color: #EEEEEE;
29
33
  }
30
34
 
31
- .even {
35
+ .even
36
+ {
32
37
  background-color: white;
33
38
  }
34
39
 
35
- tr {
40
+ tr
41
+ {
36
42
  border:1px solid black;
37
43
  padding:0px;
38
44
  }
39
45
 
40
- td {
46
+ td
47
+ {
41
48
  border:1px solid black;
42
49
  padding:0px;
43
50
  }
44
51
 
45
- .header {
52
+ .header
53
+ {
46
54
  background: #EEEEEE;
47
55
  width: 100%;
48
56
  }
49
- .TableHeadingColor { background: #EEEEEE }
50
57
 
51
- td,p, li, ul {
58
+ .TableHeadingColor
59
+ {
60
+ background: #EEEEEE;
61
+ }
62
+
63
+ td,p, li, ul
64
+ {
52
65
  font-family: Helvetica Neue, Verdana, Arial, Helvetica, sans-serif;
53
66
  font-size: 13px;
54
67
  line-height: 16px;
@@ -57,28 +70,34 @@ td,p, li, ul {
57
70
  text-decoration: none;
58
71
  }
59
72
 
60
- a {
73
+ a
74
+ {
61
75
  font-family: Helvetica Neue, Verdana, Arial, Helvetica, sans-serif;
62
76
  font-size: 13px;
63
77
  font-weight: normal;
64
78
  color: #397AB2;
65
79
  text-decoration: underline;
66
80
  }
67
- a:link {
81
+
82
+ a:link
83
+ {
68
84
  font-family: Helvetica Neue, Verdana, Arial, Helvetica, sans-serif;
69
85
  font-size: 13px;
70
86
  font-weight: normal;
71
87
  color: #397AB2;
72
88
  text-decoration: underline;
73
89
  }
74
- a:hover {
90
+
91
+ a:hover
92
+ {
75
93
  font-family: Helvetica Neue, Verdana, Arial, Helvetica, sans-serif;
76
94
  font-size: 13px;
77
95
  font-weight: normal;
78
96
  color: #4E6F9A;
79
97
  }
80
98
 
81
- h1 {
99
+ h1
100
+ {
82
101
  font-family: Helvetica Neue, Verdana, Arial, Helvetica, sans-serif;
83
102
  font-size: 26px;
84
103
  font-style: normal;
@@ -90,4 +109,7 @@ h1 {
90
109
  padding-bottom: 0px;
91
110
  }
92
111
 
93
-
112
+ p.warning {
113
+ color: #FF0000;
114
+ font-weight: bold;
115
+ }