vocco 0.1.3 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.2.1
@@ -0,0 +1,159 @@
1
+ <?xml version="1.0" encoding="utf8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml">
4
+ <head>
5
+ <title>Vocco : README</title>
6
+ <meta name="Generator" content="Vim/7.2" />
7
+ <meta content="text/html; charset=utf8" http-equiv="content-type" />
8
+ <style type="text/css">
9
+ <!--
10
+ body { color: #e8e8d3; background-color: #151515; font-family: monospace; }
11
+ -->
12
+ </style><style type="text/css">body {
13
+ font-family: "Palatino Linotype", "Book Antiqua", Palatino, FreeSerif, serif;
14
+ font-size: 15px; }
15
+
16
+ html, body {
17
+ height: 100%; }
18
+
19
+ body {
20
+ padding: 1em; }
21
+
22
+ .code {
23
+ font-family: Menlo, Monaco, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace;
24
+ font-size: 16px;
25
+ padding: 1em;
26
+ width: 50%; }
27
+
28
+ .nav {
29
+ width: 40%;
30
+ position: fixed;
31
+ top: 0;
32
+ left: 55%;
33
+ height: 100%;
34
+ font-size: 15px;
35
+ line-height: 22px;
36
+ color: #252519; }
37
+ .nav .wrapper {
38
+ color: black;
39
+ height: 100%; }
40
+ .nav .wrapper .area {
41
+ background-color: #cccccc;
42
+ padding: 1em 1em 1em 1em;
43
+ border-bottom: 1px dashed #bbbbbb;
44
+ border-top: 1px dashed #666666; }
45
+ .nav .wrapper .area .autohide {
46
+ opacity: 0;
47
+ height: 0px;
48
+ -webkit-transition: all 0.2s linear;
49
+ overflow: auto; }
50
+ .nav .wrapper .area:hover .autohide {
51
+ height: 150px;
52
+ opacity: 1; }
53
+ .nav .wrapper .notes {
54
+ max-height: 40%;
55
+ overflow: auto; }
56
+
57
+ table th {
58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sp;/&nbsp;&nbsp;\&nbsp;&nbsp; \&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
75
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; `----'&nbsp;&nbsp;&nbsp;&nbsp;`----'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
76
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
77
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Quick and dirty documentation using Vim&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
78
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
79
+ <br />
80
+ <br />
81
+ Vocco is a super patchy literate programming-style<br />
82
+ documentation generator using Vim's :TOhtml feature.<br />
83
+ It renders groups of files as syntax highlighted HTML,<br />
84
+ using your everyday Vim settings.<br />
85
+ <br />
86
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<a href="http://jbe.github.com/vocco/README.html">http://jbe.github.com/vocco/README.html</a>&gt;<br />
87
+ <br />
88
+ Make sure you have gvim or macvim and a nice default<br />
89
+ color scheme installed for optimum roi.<br />
90
+ <br />
91
+ <br />
92
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; USAGE&nbsp;&nbsp;vocco [options]<br />
93
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
94
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;writes html to the directory<br />
95
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;given by --out, for all files<br />
96
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;matching the --file globs.<br />
97
+ <br />
98
+ &nbsp;&nbsp;&nbsp;&nbsp; OPTIONS&nbsp;&nbsp;--files '**/*.rb' README LICENCE<br />
99
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; and<br />
100
+ &nbsp;&nbsp;&nbsp;&nbsp;defaults&nbsp;&nbsp;--out&nbsp;&nbsp; ./docs<br />
101
+ <br />
102
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--notes ./notes<br />
103
+ <br />
104
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--name&nbsp;&nbsp;from gemspec, or use<br />
105
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;current directory name.<br />
106
+ <br />
107
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--site&nbsp;&nbsp;from gemspec, or none<br />
108
+ <br />
109
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--vim&nbsp;&nbsp; macvim gvim vim<br />
110
+ <br />
111
+ <br />
112
+ &nbsp;&nbsp;&nbsp;&nbsp; RUBYGEM&nbsp;&nbsp;$ gem install vocco<br />
113
+ <br />
114
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Vocco.run :out =&gt; './website'<br />
115
+ <br />
116
+ <br />
117
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NOTES&nbsp;&nbsp;Vocco can include notes for<br />
118
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;each file.<br />
119
+ <br />
120
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Given<br />
121
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- files 'tra/la/**/*.rb'<br />
122
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;and that there is a file at<br />
123
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'tra/la/bup/fum.rb',<br />
124
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;and that<br />
125
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- notes='./notes'<br />
126
+ <br />
127
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Then you can put notes at<br />
128
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'notes/bup/fum.rb.md', or<br />
129
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'tra/la/bup/fum.md'<br />
130
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
131
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Instead of .md (markdown), you<br />
132
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;can also use .textile and<br />
133
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.rdoc.<br />
134
+ <br />
135
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Bonus points for noticing that<br />
136
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the static part of the globs<br />
137
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;are automagically trimmed off<br />
138
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the paths.<br />
139
+ <br />
140
+ <br />
141
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GREETS&nbsp;&nbsp;Docco:&nbsp;&nbsp;&lt;<a href="http://jashkenas.github.com/docco/">http://jashkenas.github.com/docco/</a>&gt;<br />
142
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Rocco:&nbsp;&nbsp;&lt;<a href="http://rtomayko.github.com/rocco/">http://rtomayko.github.com/rocco/</a>&gt;<br />
143
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Shocco: &lt;<a href="http://rtomayko.github.com/shocco/">http://rtomayko.github.com/shocco/</a>&gt;<br />
144
+ <br />
145
+ <br />
146
+ &nbsp;&nbsp;&nbsp;&nbsp; COPYING&nbsp;&nbsp;Copyright (c) 2011 Jostein Berre<br />
147
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Eliassen. Released under an MIT<br />
148
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;license. See LICENSE.txt for info.<br />
149
+ </div><div class="nav"><div class="wrapper"><div class="area"><h3><strong><a href="http://github.com/jbe/vocco">Vocco</a></strong><span> : </span><span>README</span></h3><p class="autohide">lib/vocco/<a href="./lib-vocco-generator.rb.html">generator.rb</a><br />lib/vocco/generator/<a href="./lib-vocco-generator-css.rb.html">css.rb</a><br />lib/vocco/generator/source_file/<a href="./lib-vocco-generator-source_file-html_template.rb.html">html_template.rb</a><br />lib/vocco/generator/<a href="./lib-vocco-generator-source_file.rb.html">source_file.rb</a><br />lib/vocco/<a href="./lib-vocco-cli.rb.html">cli.rb</a><br />lib/<a href="./lib-vocco.rb.html">vocco.rb</a><br /><a href="./README.html">README</a><br /></p></div><div class="notes area"><p>This webpage was generated by running Vocco on its own source code.</p>
150
+
151
+ <p>These paragraphs are actually "notes" attached to the README -- they were automatically generated and included from <code>./notes/README.md</code>. Notes can also be kept in the same directory as the source files, as long as their names correspond; like <code>app.rb.md</code> or <code>config.yml.textile</code>.</p>
152
+
153
+ <p>The supported note format extensions are: md, mkd, markdown, textile and rdoc.</p>
154
+
155
+ <p>Browse around the source code if you like -- mouse over the header just above this text to see a file list.</p>
156
+
157
+ <p>&hearts;</p>
158
+ </div><div class="area"><table><tr><th>Generated:</th><td>Mon Mar 14 01:26:25 +0100 2011</td></tr></table></div></div></div></body>
159
+ </html>
@@ -0,0 +1,97 @@
1
+ <?xml version="1.0" encoding="utf8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml">
4
+ <head>
5
+ <title>Vocco : cli.rb</title>
6
+ <meta name="Generator" content="Vim/7.2" />
7
+ <meta content="text/html; charset=utf8" http-equiv="content-type" />
8
+ <style type="text/css">
9
+ <!--
10
+ .rubyIdentifier { color: #c6b6fe; }
11
+ .rubySymbol { color: #7697d6; }
12
+ .Special { color: #799d6a; }
13
+ .Constant { color: #cf6a4c; }
14
+ .PreProc { color: #8fbfdc; }
15
+ .Function { color: #fad07a; }
16
+ .StringDelimiter { color: #556633; }
17
+ .String { color: #99ad6a; }
18
+ .rubyControl { color: #7597c6; }
19
+ .Type { color: #ffb964; }
20
+ body { color: #e8e8d3; background-color: #151515; font-family: monospace; }
21
+ .rubyClass { color: #447799; }
22
+ -->
23
+ </style><style type="text/css">body {
24
+ font-family: "Palatino Linotype", "Book Antiqua", Palatino, FreeSerif, serif;
25
+ font-size: 15px; }
26
+
27
+ html, body {
28
+ height: 100%; }
29
+
30
+ body {
31
+ padding: 1em; }
32
+
33
+ .code {
34
+ font-family: Menlo, Monaco, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace;
35
+ font-size: 16px;
36
+ padding: 1em;
37
+ width: 50%; }
38
+
39
+ .nav {
40
+ width: 40%;
41
+ position: fixed;
42
+ top: 0;
43
+ left: 55%;
44
+ height: 100%;
45
+ font-size: 15px;
46
+ line-height: 22px;
47
+ color: #252519; }
48
+ .nav .wrapper {
49
+ color: black;
50
+ height: 100%; }
51
+ .nav .wrapper .area {
52
+ background-color: #cccccc;
53
+ padding: 1em 1em 1em 1em;
54
+ border-bottom: 1px dashed #bbbbbb;
55
+ border-top: 1px dashed #666666; }
56
+ .nav .wrapper .area .autohide {
57
+ opacity: 0;
58
+ height: 0px;
59
+ -webkit-transition: all 0.2s linear;
60
+ overflow: auto; }
61
+ .nav .wrapper .area:hover .autohide {
62
+ height: 150px;
63
+ opacity: 1; }
64
+ .nav .wrapper .notes {
65
+ max-height: 40%;
66
+ overflow: auto; }
67
+
68
+ table th {
69
+ text-align: right; }
70
+
71
+ </style>
72
+ </head>
73
+ <body><div class="code">
74
+ <br />
75
+ <br />
76
+ <span class="rubyClass">module</span>&nbsp;<span class="Type">Vocco</span>::<span class="Type">CLI</span><br />
77
+ <br />
78
+ &nbsp;&nbsp;<span class="rubyClass">class</span>&nbsp;&lt;&lt; <span class="Constant">self</span><br />
79
+ &nbsp;&nbsp;&nbsp;&nbsp;<span class="PreProc">def</span>&nbsp;<span class="Function">start</span><br />
80
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="PreProc">require</span>&nbsp;<span class="StringDelimiter">'</span><span class="String">trollop</span><span class="StringDelimiter">'</span><br />
81
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;opts = <span class="Type">Trollop</span>::options <span class="rubyControl">do</span><br />
82
+ <br />
83
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;banner <span class="StringDelimiter">&quot;</span><span class="String">Usage: vocco [options]</span><span class="Special">\n\n</span><span class="String">Options:</span><span class="StringDelimiter">&quot;</span><br />
84
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
85
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;::<span class="Type">Vocco</span>::<span class="Type">OPTIONS</span>.each <span class="rubyControl">do</span>&nbsp;|<span class="rubyIdentifier">name</span>, <span class="rubyIdentifier">desc</span>, <span class="rubyIdentifier">default</span>|<br />
86
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;opt name, desc, <span class="rubySymbol">:default</span>&nbsp;=&gt; default<br />
87
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="rubyControl">end</span><br />
88
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="rubyControl">end</span><br />
89
+ <br />
90
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;::<span class="Type">Vocco</span>::<span class="Type">Generator</span>.new(opts).run<br />
91
+ &nbsp;&nbsp;&nbsp;&nbsp;<span class="PreProc">end</span><br />
92
+ &nbsp;&nbsp;<span class="rubyClass">end</span><br />
93
+ <span class="rubyClass">end</span><br />
94
+ <br />
95
+ <br />
96
+ </div><div class="nav"><div class="wrapper"><div class="area"><h3><strong><a href="http://github.com/jbe/vocco">Vocco</a></strong><span> : </span><span>cli.rb</span></h3><p class="autohide">lib/vocco/<a href="./lib-vocco-generator.rb.html">generator.rb</a><br />lib/vocco/generator/<a href="./lib-vocco-generator-css.rb.html">css.rb</a><br />lib/vocco/generator/source_file/<a href="./lib-vocco-generator-source_file-html_template.rb.html">html_template.rb</a><br />lib/vocco/generator/<a href="./lib-vocco-generator-source_file.rb.html">source_file.rb</a><br />lib/vocco/<a href="./lib-vocco-cli.rb.html">cli.rb</a><br />lib/<a href="./lib-vocco.rb.html">vocco.rb</a><br /><a href="./README.html">README</a><br /></p></div><div class="area"><table><tr><th>Generated:</th><td>Mon Mar 14 01:26:25 +0100 2011</td></tr></table></div></div></div></body>
97
+ </html>
@@ -0,0 +1,117 @@
1
+ <?xml version="1.0" encoding="utf8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml">
4
+ <head>
5
+ <title>Vocco : css.rb</title>
6
+ <meta name="Generator" content="Vim/7.2" />
7
+ <meta content="text/html; charset=utf8" http-equiv="content-type" />
8
+ <style type="text/css">
9
+ <!--
10
+ .StringDelimiter { color: #556633; }
11
+ .String { color: #99ad6a; }
12
+ body { color: #e8e8d3; background-color: #151515; font-family: monospace; }
13
+ .Type { color: #ffb964; }
14
+ -->
15
+ </style><style type="text/css">body {
16
+ font-family: "Palatino Linotype", "Book Antiqua", Palatino, FreeSerif, serif;
17
+ font-size: 15px; }
18
+
19
+ html, body {
20
+ height: 100%; }
21
+
22
+ body {
23
+ padding: 1em; }
24
+
25
+ .code {
26
+ font-family: Menlo, Monaco, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace;
27
+ font-size: 16px;
28
+ padding: 1em;
29
+ width: 50%; }
30
+
31
+ .nav {
32
+ width: 40%;
33
+ position: fixed;
34
+ top: 0;
35
+ left: 55%;
36
+ height: 100%;
37
+ font-size: 15px;
38
+ line-height: 22px;
39
+ color: #252519; }
40
+ .nav .wrapper {
41
+ color: black;
42
+ height: 100%; }
43
+ .nav .wrapper .area {
44
+ background-color: #cccccc;
45
+ padding: 1em 1em 1em 1em;
46
+ border-bottom: 1px dashed #bbbbbb;
47
+ border-top: 1px dashed #666666; }
48
+ .nav .wrapper .area .autohide {
49
+ opacity: 0;
50
+ height: 0px;
51
+ -webkit-transition: all 0.2s linear;
52
+ overflow: auto; }
53
+ .nav .wrapper .area:hover .autohide {
54
+ height: 150px;
55
+ opacity: 1; }
56
+ .nav .wrapper .notes {
57
+ max-height: 40%;
58
+ overflow: auto; }
59
+
60
+ table th {
61
+ text-align: right; }
62
+
63
+ </style>
64
+ </head>
65
+ <body><div class="code">
66
+ <span class="Type">Vocco</span>::<span class="Type">Generator</span>::<span class="Type">CSS</span>&nbsp;= &lt;&lt;-<span class="StringDelimiter">'__YOU_ARE_SPECIAL__'</span><br />
67
+ <span class="String">body {</span><br />
68
+ <span class="String">&nbsp;&nbsp;font-family: &quot;Palatino Linotype&quot;, &quot;Book Antiqua&quot;, Palatino, FreeSerif, serif;</span><br />
69
+ <span class="String">&nbsp;&nbsp;font-size: 15px; }</span><br />
70
+ <br />
71
+ <span class="String">html, body {</span><br />
72
+ <span class="String">&nbsp;&nbsp;height: 100%; }</span><br />
73
+ <br />
74
+ <span class="String">body {</span><br />
75
+ <span class="String">&nbsp;&nbsp;padding: 1em; }</span><br />
76
+ <br />
77
+ <span class="String">.code {</span><br />
78
+ <span class="String">&nbsp;&nbsp;font-family: Menlo, Monaco, &quot;DejaVu Sans Mono&quot;, Consolas, &quot;Lucida Console&quot;, monospace;</span><br />
79
+ <span class="String">&nbsp;&nbsp;font-size: 16px;</span><br />
80
+ <span class="String">&nbsp;&nbsp;padding: 1em;</span><br />
81
+ <span class="String">&nbsp;&nbsp;width: 50%; }</span><br />
82
+ <br />
83
+ <span class="String">.nav {</span><br />
84
+ <span class="String">&nbsp;&nbsp;width: 40%;</span><br />
85
+ <span class="String">&nbsp;&nbsp;position: fixed;</span><br />
86
+ <span class="String">&nbsp;&nbsp;top: 0;</span><br />
87
+ <span class="String">&nbsp;&nbsp;left: 55%;</span><br />
88
+ <span class="String">&nbsp;&nbsp;height: 100%;</span><br />
89
+ <span class="String">&nbsp;&nbsp;font-size: 15px;</span><br />
90
+ <span class="String">&nbsp;&nbsp;line-height: 22px;</span><br />
91
+ <span class="String">&nbsp;&nbsp;color: #252519; }</span><br />
92
+ <span class="String">&nbsp;&nbsp;.nav .wrapper {</span><br />
93
+ <span class="String">&nbsp;&nbsp;&nbsp;&nbsp;color: black;</span><br />
94
+ <span class="String">&nbsp;&nbsp;&nbsp;&nbsp;height: 100%; }</span><br />
95
+ <span class="String">&nbsp;&nbsp;&nbsp;&nbsp;.nav .wrapper .area {</span><br />
96
+ <span class="String">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background-color: #cccccc;</span><br />
97
+ <span class="String">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;padding: 1em 1em 1em 1em;</span><br />
98
+ <span class="String">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;border-bottom: 1px dashed #bbbbbb;</span><br />
99
+ <span class="String">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;border-top: 1px dashed #666666; }</span><br />
100
+ <span class="String">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.nav .wrapper .area .autohide {</span><br />
101
+ <span class="String">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;opacity: 0;</span><br />
102
+ <span class="String">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;height: 0px;</span><br />
103
+ <span class="String">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-webkit-transition: all 0.2s linear;</span><br />
104
+ <span class="String">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;overflow: auto; }</span><br />
105
+ <span class="String">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.nav .wrapper .area:hover .autohide {</span><br />
106
+ <span class="String">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;height: 150px;</span><br />
107
+ <span class="String">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;opacity: 1; }</span><br />
108
+ <span class="String">&nbsp;&nbsp;&nbsp;&nbsp;.nav .wrapper .notes {</span><br />
109
+ <span class="String">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;max-height: 40%;</span><br />
110
+ <span class="String">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;overflow: auto; }</span><br />
111
+ <br />
112
+ <span class="String">table th {</span><br />
113
+ <span class="String">&nbsp;&nbsp;text-align: right; }</span><br />
114
+ <br />
115
+ <span class="StringDelimiter">__YOU_ARE_SPECIAL__</span><br />
116
+ </div><div class="nav"><div class="wrapper"><div class="area"><h3><strong><a href="http://github.com/jbe/vocco">Vocco</a></strong><span> : </span><span>css.rb</span></h3><p class="autohide">lib/vocco/<a href="./lib-vocco-generator.rb.html">generator.rb</a><br />lib/vocco/generator/<a href="./lib-vocco-generator-css.rb.html">css.rb</a><br />lib/vocco/generator/source_file/<a href="./lib-vocco-generator-source_file-html_template.rb.html">html_template.rb</a><br />lib/vocco/generator/<a href="./lib-vocco-generator-source_file.rb.html">source_file.rb</a><br />lib/vocco/<a href="./lib-vocco-cli.rb.html">cli.rb</a><br />lib/<a href="./lib-vocco.rb.html">vocco.rb</a><br /><a href="./README.html">README</a><br /></p></div><div class="area"><table><tr><th>Generated:</th><td>Mon Mar 14 01:26:25 +0100 2011</td></tr></table></div></div></div></body>
117
+ </html>
@@ -0,0 +1,99 @@
1
+ <?xml version="1.0" encoding="utf8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml">
4
+ <head>
5
+ <title>Vocco : html_template.rb</title>
6
+ <meta name="Generator" content="Vim/7.2" />
7
+ <meta content="text/html; charset=utf8" http-equiv="content-type" />
8
+ <style type="text/css">
9
+ <!--
10
+ .StringDelimiter { color: #556633; }
11
+ .String { color: #99ad6a; }
12
+ body { color: #e8e8d3; background-color: #151515; font-family: monospace; }
13
+ .Type { color: #ffb964; }
14
+ -->
15
+ </style><style type="text/css">body {
16
+ font-family: "Palatino Linotype", "Book Antiqua", Palatino, FreeSerif, serif;
17
+ font-size: 15px; }
18
+
19
+ html, body {
20
+ height: 100%; }
21
+
22
+ body {
23
+ padding: 1em; }
24
+
25
+ .code {
26
+ font-family: Menlo, Monaco, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace;
27
+ font-size: 16px;
28
+ padding: 1em;
29
+ width: 50%; }
30
+
31
+ .nav {
32
+ width: 40%;
33
+ position: fixed;
34
+ top: 0;
35
+ left: 55%;
36
+ height: 100%;
37
+ font-size: 15px;
38
+ line-height: 22px;
39
+ color: #252519; }
40
+ .nav .wrapper {
41
+ color: black;
42
+ height: 100%; }
43
+ .nav .wrapper .area {
44
+ background-color: #cccccc;
45
+ padding: 1em 1em 1em 1em;
46
+ border-bottom: 1px dashed #bbbbbb;
47
+ border-top: 1px dashed #666666; }
48
+ .nav .wrapper .area .autohide {
49
+ opacity: 0;
50
+ height: 0px;
51
+ -webkit-transition: all 0.2s linear;
52
+ overflow: auto; }
53
+ .nav .wrapper .area:hover .autohide {
54
+ height: 150px;
55
+ opacity: 1; }
56
+ .nav .wrapper .notes {
57
+ max-height: 40%;
58
+ overflow: auto; }
59
+
60
+ table th {
61
+ text-align: right; }
62
+
63
+ </style>
64
+ </head>
65
+ <body><div class="code">
66
+ <span class="Type">Vocco</span>::<span class="Type">Generator</span>::<span class="Type">SourceFile</span>::<span class="Type">HTML_TEMPLATE</span>&nbsp;= &lt;&lt;-<span class="StringDelimiter">'__YOU_ARE_SPECIAL__'</span><br />
67
+ <span class="String">_buf = [] ; _temple_pre_tags = /&lt;pre|&lt;textarea/ ; _buf &lt;&lt; (&quot;&lt;div class=\&quot;nav\&quot;&gt;&lt;div class=\&quot;wrapper\&quot;&gt;&lt;div class=\&quot;area\&quot;&gt;&lt;h3&gt;&lt;strong&gt;&quot;) ; </span><br />
68
+ <span class="String">&nbsp;; </span><br />
69
+ <span class="String">&nbsp;; </span><br />
70
+ <span class="String">&nbsp;; </span><br />
71
+ <span class="String">&nbsp;; </span><br />
72
+ <span class="String">&nbsp;; if @gen.site ; </span><br />
73
+ <span class="String">&nbsp;; _buf &lt;&lt; (&quot;&lt;a href=\&quot;#{@gen.site}\&quot;&gt;#{@gen.name}&quot;\</span><br />
74
+ <span class="String">&quot;&lt;/a&gt;&quot;) ; else ; </span><br />
75
+ <span class="String">&nbsp;; _buf &lt;&lt; (@gen.name) ; </span><br />
76
+ <span class="String">&nbsp;; end ; _buf &lt;&lt; (&quot;&lt;/strong&gt;&lt;span&gt;#{' : '}&quot;\</span><br />
77
+ <span class="String">&quot;&lt;/span&gt;&lt;span&gt;#{basename}&quot;\</span><br />
78
+ <span class="String">&quot;&quot;\</span><br />
79
+ <span class="String">&quot;&lt;/span&gt;&lt;/h3&gt;&quot;) ; if @gen.files.size &gt; 1 ; </span><br />
80
+ <span class="String">&nbsp;; _buf &lt;&lt; (&quot;&lt;p class=\&quot;autohide\&quot;&gt;&quot;) ; </span><br />
81
+ <span class="String">&nbsp;; @gen.files.each do |file| ; </span><br />
82
+ <span class="String">&nbsp;; _buf &lt;&lt; (&quot;#{file.short_dirname == '.' ? '' : file.short_dirname + '/'}&quot;\</span><br />
83
+ <span class="String">&quot;&lt;a href=\&quot;#{file.doc_link}\&quot;&gt;#{file.basename}&quot;\</span><br />
84
+ <span class="String">&quot;&lt;/a&gt;&lt;br&gt;&quot;\</span><br />
85
+ <span class="String">&quot;&quot;\</span><br />
86
+ <span class="String">&quot;&quot;) ; end ; _buf &lt;&lt; (&quot;&lt;/p&gt;&quot;) ; end ; _buf &lt;&lt; (&quot;&lt;/div&gt;&quot;) ; if notes.any? ; </span><br />
87
+ <span class="String">&nbsp;; _buf &lt;&lt; (&quot;&lt;div class=\&quot;notes area\&quot;&gt;&quot;) ; </span><br />
88
+ <span class="String">&nbsp;; notes.each do |note| ; </span><br />
89
+ <span class="String">&nbsp;; _buf &lt;&lt; (note) ; </span><br />
90
+ <span class="String">&nbsp;; </span><br />
91
+ <span class="String">&nbsp;; end ; _buf &lt;&lt; (&quot;&lt;/div&gt;&quot;) ; end ; _buf &lt;&lt; (&quot;&lt;div class=\&quot;area\&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;th&gt;Generated:&lt;/th&gt;&lt;td&gt;&quot;\</span><br />
92
+ <span class="String">&quot;&quot;\</span><br />
93
+ <span class="String">&quot;&quot;\</span><br />
94
+ <span class="String">&quot;&quot;\</span><br />
95
+ <span class="String">&quot;#{Time.now.to_s}&quot;\</span><br />
96
+ <span class="String">&quot;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&quot;) ; _buf = _buf.join</span><br />
97
+ <span class="StringDelimiter">__YOU_ARE_SPECIAL__</span><br />
98
+ </div><div class="nav"><div class="wrapper"><div class="area"><h3><strong><a href="http://github.com/jbe/vocco">Vocco</a></strong><span> : </span><span>html_template.rb</span></h3><p class="autohide">lib/vocco/<a href="./lib-vocco-generator.rb.html">generator.rb</a><br />lib/vocco/generator/<a href="./lib-vocco-generator-css.rb.html">css.rb</a><br />lib/vocco/generator/source_file/<a href="./lib-vocco-generator-source_file-html_template.rb.html">html_template.rb</a><br />lib/vocco/generator/<a href="./lib-vocco-generator-source_file.rb.html">source_file.rb</a><br />lib/vocco/<a href="./lib-vocco-cli.rb.html">cli.rb</a><br />lib/<a href="./lib-vocco.rb.html">vocco.rb</a><br /><a href="./README.html">README</a><br /></p></div><div class="area"><table><tr><th>Generated:</th><td>Mon Mar 14 01:26:25 +0100 2011</td></tr></table></div></div></div></body>
99
+ </html>