conversio 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.
@@ -0,0 +1,286 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
+ <head>
7
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
8
+ <style type="text/css">
9
+
10
+ /* RESET ALL ELEMENTS */
11
+ html, body, div, span, applet, object, iframe,
12
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
13
+ a, abbr, acronym, address, big, cite, code,
14
+ del, dfn, em, font, img, ins, kbd, q, s, samp,
15
+ small, strike, strong, sub, sup, tt, var,
16
+ b, u, i, center, dl, dt, dd, ol, ul, li, fieldset,
17
+ form, label, legend, table, caption, tbody, tfoot,
18
+ thead, tr, th, td {
19
+ margin: 0;
20
+ padding: 0;
21
+ border: 0;
22
+ outline: 0;
23
+ font-size: 100%;
24
+ vertical-align: baseline;
25
+ background: transparent;
26
+ }
27
+
28
+ body {
29
+ color: black;
30
+ background-color: white;
31
+ line-height: 1.2em;
32
+ max-width: 600px;
33
+ margin-right: auto;
34
+ margin-left: auto;
35
+ overflow: visible;
36
+ }
37
+
38
+ /* center the content in the middle of the browser */
39
+ #display {
40
+ height: 100%;
41
+ padding: 0;
42
+ font-family: Georgia, FreeSans, Arial, Helvetica, sans-serif;
43
+ font-size: 1em;
44
+ margin-bottom: 2em;
45
+ }
46
+
47
+ /* GENERAL DEFAULTS */
48
+
49
+ table {
50
+ border-collapse: collapse;
51
+ border-spacing: 0;
52
+ empty-cells: show;
53
+ text-align: center;
54
+ font-size: 1em;
55
+ font-weight: normal;
56
+ margin-right: auto;
57
+ margin-left: auto;
58
+ margin-top: 1em;
59
+ }
60
+ td {
61
+ padding-top: 0.15em;
62
+ padding-bottom: 0.15em;
63
+ padding-left: 0.25em;
64
+ padding-right: 0.25em;
65
+ border-bottom: 0.1em solid lightgray;
66
+ border-collapse: collapse;
67
+ }
68
+ th {
69
+ padding-top: 0.15em;
70
+ padding-bottom: 0.15em;
71
+ padding-left: 0.5em;
72
+ padding-right: 0.5em;
73
+ text-align: center;
74
+ font-weight: bold;
75
+ border-bottom: 0.3em double lightgray;
76
+ }
77
+
78
+
79
+ ol, ul { list-style: none; }
80
+
81
+ /* CONTENT AREA */
82
+
83
+ #content p, h1, h2, h3, h4, h5, h6, pre {
84
+ padding-left: 8px;
85
+ padding-right: 8px;
86
+ }
87
+ #content p {
88
+ padding-top: 0.4em;
89
+ padding-bottom: 0.4em;
90
+ }
91
+ #content h1 {
92
+ font-size: 2.4em;
93
+ padding-top: 1em;
94
+ padding-bottom: 0.4em;
95
+ line-height: 1.2em;
96
+ }
97
+ #content h2 {
98
+ font-size: 2em;
99
+ line-height: 1.2em;
100
+ padding-top: 0.6em;
101
+ padding-bottom: 0.4em;
102
+ }
103
+ #content h3 {
104
+ font-size: 1.8em;
105
+ padding-top: 0.4em;
106
+ padding-bottom: 0.2em;
107
+ }
108
+ #content h4 {
109
+ font-size: 1.5em;
110
+ padding-top: 0.4em;
111
+ padding-bottom: 0.2em;
112
+ text-decoration: underline;
113
+ }
114
+ #content h5 {
115
+ font-size: 1.1em;
116
+ padding-top: 0.4em;
117
+ padding-bottom: 0.2em;
118
+ }
119
+ #content ul {
120
+ list-style-type: circle;
121
+ list-style-image: none;
122
+ list-style-position: outside;
123
+ margin-left: 2em;
124
+ margin-right: 2em;
125
+ }
126
+ #content ol {
127
+ list-style-type: decimal;
128
+ list-style-image: none;
129
+ list-style-position: outside;
130
+ margin-left: 3em;
131
+ margin-right: 2em;
132
+ }
133
+ #content img {
134
+ display: block;
135
+ margin-left: auto;
136
+ margin-right: auto;
137
+ height: auto;
138
+ width: auto;
139
+ display: inline;
140
+ max-width: 35em;
141
+ }
142
+ #content code {
143
+ font-family: "Courier New", monospace;
144
+ font-weight: normal;
145
+ color: black;
146
+ background: whitesmoke;
147
+ font-size: 0.8em;
148
+ }
149
+ #content pre {
150
+ line-height: normal;
151
+ padding: 0.2em 0.4em 0.2em 0.4em;
152
+ overflow: hidden;
153
+ border: 1px solid whitesmoke;
154
+ margin: 0.4em;
155
+ overflow: auto;
156
+ }
157
+ #content pre code {
158
+ font-family: Courier, Verdana, Monaco;
159
+ margin: 0;
160
+ padding: 0;
161
+ color: black;
162
+ background-color: white;
163
+ font-size: 1em;
164
+ }
165
+ #content a {
166
+ color: blue;
167
+ text-decoration: none;
168
+ }
169
+ #content a:visited {
170
+ color: blue;
171
+ }
172
+ #content a:hover {
173
+ color: lightskyblue;
174
+ text-decoration: underline;
175
+ }
176
+ #content a:target {
177
+ color: blue;
178
+ }
179
+ #content blockquote {
180
+ padding-left: 1em;
181
+ padding-right: 4em;
182
+ font-style: italic;
183
+ }
184
+ #content sup {
185
+ font-size: 0.6em;
186
+ vertical-align: top;
187
+ }
188
+ #content sub {
189
+ font-size: 0.6em;
190
+ vertical-align: bottom;
191
+ }
192
+
193
+ /* table of content */
194
+ .toc {
195
+ margin-bottom: 1em;
196
+ background-color: #F8F8FF;
197
+ padding: 0.5em;
198
+ }
199
+ .toc ul {
200
+ list-style-type: none;
201
+ padding-left: 1em;
202
+ }
203
+ .toc li {
204
+ padding: 0;
205
+ margin: 0;
206
+ }
207
+
208
+ #content .toc a {
209
+ color: blue;
210
+ text-decoration: none;
211
+ }
212
+
213
+ /* syntax high-lighting for Pygments*/
214
+ .hll { background-color: #ffffcc }
215
+ .c { color: #808080 } /* Comment */
216
+ .err { color: #F00000; background-color: #F0A0A0 } /* Error */
217
+ .k { color: #008000; font-weight: bold } /* Keyword */
218
+ .o { color: #303030 } /* Operator */
219
+ .cm { color: #808080 } /* Comment.Multiline */
220
+ .cp { color: #507090 } /* Comment.Preproc */
221
+ .c1 { color: #808080 } /* Comment.Single */
222
+ .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
223
+ .gd { color: #A00000 } /* Generic.Deleted */
224
+ .ge { font-style: italic } /* Generic.Emph */
225
+ .gr { color: #FF0000 } /* Generic.Error */
226
+ .gh { color: #000080; font-weight: bold } /* Generic.Heading */
227
+ .gi { color: #00A000 } /* Generic.Inserted */
228
+ .go { color: #808080 } /* Generic.Output */
229
+ .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
230
+ .gs { font-weight: bold } /* Generic.Strong */
231
+ .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
232
+ .gt { color: #0040D0 } /* Generic.Traceback */
233
+ .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
234
+ .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
235
+ .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
236
+ .kp { color: #003080; font-weight: bold } /* Keyword.Pseudo */
237
+ .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
238
+ .kt { color: #303090; font-weight: bold } /* Keyword.Type */
239
+ .m { color: #6000E0; font-weight: bold } /* Literal.Number */
240
+ .s { background-color: #fff0f0 } /* Literal.String */
241
+ .na { color: #0000C0 } /* Name.Attribute */
242
+ .nb { color: #007020 } /* Name.Builtin */
243
+ .nc { color: #B00060; font-weight: bold } /* Name.Class */
244
+ .no { color: #003060; font-weight: bold } /* Name.Constant */
245
+ .nd { color: #505050; font-weight: bold } /* Name.Decorator */
246
+ .ni { color: #800000; font-weight: bold } /* Name.Entity */
247
+ .ne { color: #F00000; font-weight: bold } /* Name.Exception */
248
+ .nf { color: #0060B0; font-weight: bold } /* Name.Function */
249
+ .nl { color: #907000; font-weight: bold } /* Name.Label */
250
+ .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
251
+ .nt { color: #007000 } /* Name.Tag */
252
+ .nv { color: #906030 } /* Name.Variable */
253
+ .ow { color: #000000; font-weight: bold } /* Operator.Word */
254
+ .w { color: #bbbbbb } /* Text.Whitespace */
255
+ .mf { color: #6000E0; font-weight: bold } /* Literal.Number.Float */
256
+ .mh { color: #005080; font-weight: bold } /* Literal.Number.Hex */
257
+ .mi { color: #0000D0; font-weight: bold } /* Literal.Number.Integer */
258
+ .mo { color: #4000E0; font-weight: bold } /* Literal.Number.Oct */
259
+ .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
260
+ .sc { color: #0040D0 } /* Literal.String.Char */
261
+ .sd { color: #D04020 } /* Literal.String.Doc */
262
+ .s2 { background-color: #fff0f0 } /* Literal.String.Double */
263
+ .se { color: #606060; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
264
+ .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
265
+ .si { background-color: #e0e0e0 } /* Literal.String.Interpol */
266
+ .sx { color: #D02000; background-color: #fff0f0 } /* Literal.String.Other */
267
+ .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
268
+ .s1 { background-color: #fff0f0 } /* Literal.String.Single */
269
+ .ss { color: #A06000 } /* Literal.String.Symbol */
270
+ .bp { color: #007020 } /* Name.Builtin.Pseudo */
271
+ .vc { color: #306090 } /* Name.Variable.Class */
272
+ .vg { color: #d07000; font-weight: bold } /* Name.Variable.Global */
273
+ .vi { color: #3030B0 } /* Name.Variable.Instance */
274
+ .il { color: #0000D0; font-weight: bold } /* Literal.Number.Integer.Long */
275
+
276
+ </style>
277
+ </head>
278
+ <body>
279
+ <div id="display">
280
+ <div id="content">
281
+ <%= @content %>
282
+ </div>
283
+ </div>
284
+ </body>
285
+ </html>
286
+
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
+ <head>
7
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
8
+ </head>
9
+ <body>
10
+ <div id="display">
11
+ <div id="content">
12
+ <%= @content %>
13
+ </div>
14
+ </div>
15
+ </body>
16
+ </html>
17
+
metadata ADDED
@@ -0,0 +1,113 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: conversio
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 1
8
+ - 1
9
+ version: 0.1.1
10
+ platform: ruby
11
+ authors:
12
+ - "J\xC3\xB6rg Behrendt"
13
+ - Victor Penso
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-11-19 00:00:00 +01:00
19
+ default_executable: conversio
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: bluecloth
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 2
30
+ - 0
31
+ - 9
32
+ version: 2.0.9
33
+ type: :runtime
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: kramdown
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ segments:
43
+ - 0
44
+ version: "0"
45
+ type: :runtime
46
+ version_requirements: *id002
47
+ description: |
48
+ Renders plain text files with Markdown syntax to XHTML pages.
49
+ User can define their own Ruby ERB templates to customize the
50
+ XHTML page generation. Also the creation of a table of content
51
+ using the HTML header elements (like `<h1>`) and the syntax
52
+ high-lighting of code snippets is supported.
53
+
54
+ email: v.penso@gsi.de
55
+ executables:
56
+ - conversio
57
+ extensions: []
58
+
59
+ extra_rdoc_files:
60
+ - bin/conversio
61
+ - lib/conversio.rb
62
+ - lib/conversio/converter.rb
63
+ - lib/conversio/htmltoc.rb
64
+ - lib/conversio/pygmentizer.rb
65
+ files:
66
+ - README.md
67
+ - HISTORY.md
68
+ - bin/conversio
69
+ - conversio.gemspec
70
+ - lib/conversio.rb
71
+ - lib/conversio/converter.rb
72
+ - lib/conversio/htmltoc.rb
73
+ - lib/conversio/pygmentizer.rb
74
+ - templates/default.erb
75
+ - templates/no_css.erb
76
+ - templates/dark.erb
77
+ - templates/light.erb
78
+ has_rdoc: true
79
+ homepage: https://github.com/vpenso/conversio
80
+ licenses:
81
+ - GPLv3
82
+ post_install_message:
83
+ rdoc_options:
84
+ - --line-numbers
85
+ - --inline-source
86
+ - --title
87
+ - Conversio
88
+ require_paths:
89
+ - lib
90
+ required_ruby_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ segments:
95
+ - 0
96
+ version: "0"
97
+ required_rubygems_version: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ segments:
102
+ - 1
103
+ - 2
104
+ version: "1.2"
105
+ requirements:
106
+ - Pygments (http://pygments.org/)
107
+ rubyforge_project: conversio
108
+ rubygems_version: 1.3.6
109
+ signing_key:
110
+ specification_version: 3
111
+ summary: Renders Markdown plain text files to HTML
112
+ test_files: []
113
+