ronn 0.5 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. data/AUTHORS +7 -0
  2. data/CHANGES +128 -0
  3. data/README.md +64 -79
  4. data/Rakefile +81 -28
  5. data/bin/ronn +124 -65
  6. data/config.ru +15 -0
  7. data/lib/ronn.rb +13 -5
  8. data/lib/ronn/document.rb +87 -13
  9. data/lib/ronn/roff.rb +43 -18
  10. data/lib/ronn/server.rb +70 -0
  11. data/lib/ronn/template.rb +157 -0
  12. data/lib/ronn/template/80c.css +6 -0
  13. data/lib/ronn/template/dark.css +21 -0
  14. data/lib/ronn/template/darktoc.css +17 -0
  15. data/lib/ronn/template/default.html +43 -0
  16. data/lib/ronn/template/man.css +100 -0
  17. data/lib/ronn/template/print.css +5 -0
  18. data/lib/ronn/template/screen.css +105 -0
  19. data/lib/ronn/template/toc.css +27 -0
  20. data/man/ronn.1 +160 -93
  21. data/man/ronn.1.ronn +206 -89
  22. data/man/ronn.5 +94 -96
  23. data/man/ronn.5.ronn +96 -91
  24. data/man/ronn.7 +50 -84
  25. data/man/ronn.7.ronn +64 -79
  26. data/ronn.gemspec +26 -11
  27. data/test/angle_bracket_syntax.html +4 -1
  28. data/test/basic_document.html +4 -1
  29. data/test/contest.rb +68 -0
  30. data/test/custom_title_document.html +4 -1
  31. data/test/definition_list_syntax.html +4 -1
  32. data/test/definition_list_syntax.roff +26 -0
  33. data/test/document_test.rb +51 -4
  34. data/test/entity_encoding_test.html +4 -1
  35. data/test/entity_encoding_test.roff +1 -1
  36. data/test/markdown_syntax.html +955 -0
  37. data/test/markdown_syntax.roff +1467 -0
  38. data/{man/markdown.5.ronn → test/markdown_syntax.ronn} +0 -0
  39. data/test/middle_paragraph.html +5 -2
  40. data/test/middle_paragraph.roff +2 -2
  41. data/test/ronn_test.rb +19 -4
  42. data/test/section_reference_links.html +15 -0
  43. data/test/section_reference_links.roff +10 -0
  44. data/test/section_reference_links.ronn +12 -0
  45. data/test/titleless_document.html +3 -0
  46. metadata +34 -13
  47. data/lib/ronn/layout.html +0 -75
  48. data/man/markdown.5 +0 -1639
@@ -0,0 +1,5 @@
1
+ .mp { max-width:none }
2
+ .man-navigation { display:none !important }
3
+ .mp a[href]:not([href^="#"]):not([data-bare-link]):after {
4
+ content:" " attr(href);
5
+ }
@@ -0,0 +1,105 @@
1
+ /* STRUCTURE, INDENT, MARGINS */
2
+
3
+ body { margin:0 }
4
+ #man { max-width:88ex; padding:0 2ex 1ex 2ex }
5
+
6
+ #man p, #man pre,
7
+ #man ul, #man ol, #man dl { margin:0 0 20px 0 }
8
+ #man h2 { margin:10px 0 0 0 }
9
+
10
+ #man > p, #man > pre,
11
+ #man > ul, #man > ol, #man > dl { margin-left:8ex }
12
+ #man h3 { margin:0 0 0 4ex }
13
+
14
+ #man dt { margin:0; clear:left }
15
+ #man dt.flush { float:left; width:8ex }
16
+ #man dd { margin:0 0 0 9ex }
17
+ #man h1, #man h2, #man h3, #man h4 { clear:left }
18
+
19
+ #man pre { margin-bottom:20px }
20
+ #man pre+h2, #man pre+h3 { margin-top:22px }
21
+ #man h2+pre, #man h3+pre { margin-top:5px }
22
+
23
+ #man img { display:block;margin:auto }
24
+ #man h1.man-title { display:none }
25
+
26
+ /* FONTS */
27
+
28
+ #man, #man code, #man pre,
29
+ #man tt, #man kbd, #man samp,
30
+ #man h3, #man h4 {
31
+ font-family:monospace;
32
+ font-size:14px;
33
+ line-height:1.42857142857143;
34
+ }
35
+ #man h2, #man ol.man {
36
+ font-size:16px;
37
+ line-height:1.25
38
+ }
39
+ #man h1 {
40
+ font-size:20px;
41
+ line-height:2;
42
+ }
43
+
44
+ /* TEXT STYLES */
45
+
46
+ #man {
47
+ text-align:justify;
48
+ background:#fff;
49
+ }
50
+ #man, #man code, #man pre, #man pre code,
51
+ #man tt, #man kbd, #man samp { color:#131211 }
52
+ #man h1, #man h2, #man h3, #man h4 { color:#030201 }
53
+ #man ol.man, #man ol.man li { color:#636261 }
54
+
55
+ #man code, #man strong, #man b {
56
+ font-weight:bold;
57
+ color:#131211;
58
+ }
59
+
60
+ #man em, #man var, #man u {
61
+ font-style:italic;
62
+ color:#434241;
63
+ text-decoration:none;
64
+ }
65
+
66
+ #man pre {
67
+ background:#edeceb;
68
+ padding:5px 1ex;
69
+ border-left:1ex solid #ddd;
70
+ }
71
+ #man pre code {
72
+ font-weight:normal;
73
+ background:inherit;
74
+ }
75
+
76
+ /* DOCUMENT HEADER AND FOOTER AREAS */
77
+
78
+ #man ol.man, #man ol.man li {
79
+ margin:3px 0 10px 0;
80
+ padding:0;
81
+ float:left;
82
+ width:33%;
83
+ list-style-type:none;
84
+ text-transform:uppercase;
85
+ color:#999;
86
+ letter-spacing:1px;
87
+ }
88
+ #man ol.man { width:100% }
89
+ #man ol.man li.tl { text-align:left }
90
+ #man ol.man li.tc { text-align:center; letter-spacing:4px }
91
+ #man ol.man li.tr { text-align:right; float:right }
92
+
93
+ /* SECTION TOC NAVIGATION */
94
+
95
+ #man div.man-navigation {
96
+ position:fixed;
97
+ top:0;
98
+ left:96ex;
99
+ height:100%;
100
+ width:100%;
101
+ padding:1ex 0 0 2ex;
102
+ border-left:0.25ex solid #DCDCDC;
103
+ background-color: #F5F5F5;
104
+ }
105
+ #man div.man-navigation a { display:block; margin-bottom:1.5ex }
@@ -0,0 +1,27 @@
1
+ /* toc.css - enable table of contents */
2
+
3
+ .man-navigation {
4
+ display:block !important;
5
+ position:fixed;
6
+ top:0;
7
+ left:113ex; /* .mp width + padding */
8
+ height:100%;
9
+ width:100%;
10
+ padding:48px 0 0 0;
11
+ border-left:1px solid #dbdbdb;
12
+ background:#eee;
13
+ }
14
+ .man-navigation a,
15
+ .man-navigation a:hover,
16
+ .man-navigation a:link,
17
+ .man-navigation a:visited {
18
+ display:block;
19
+ margin:0;
20
+ padding:5px 2px 5px 30px;
21
+ color:#999;
22
+ text-decoration:none;
23
+ }
24
+ .man-navigation a:hover {
25
+ color:#111;
26
+ text-decoration:underline;
27
+ }
data/man/ronn.1 CHANGED
@@ -1,171 +1,230 @@
1
- .\" generated with Ronn/v0.4.2
1
+ .\" generated with Ronn/v0.6.0
2
2
  .\" http://github.com/rtomayko/ronn/
3
3
  .
4
- .TH "RONN" "1" "April 2010" "Ryan Tomayko" "Ronn Manual"
4
+ .TH "RONN" "1" "June 2010" "0.6.0" "Ronn 0.6.0"
5
5
  .
6
6
  .SH "NAME"
7
- \fBronn\fR \-\- build markdown\-based man pages
7
+ \fBronn\fR \- convert markdown files to manpages
8
8
  .
9
9
  .SH "SYNOPSIS"
10
- \fBronn\fR [ \fIOPTIONS\fR ] \fIFILE\fR ...
10
+ \fBronn\fR [\fIoptions\fR] \fIfile\fR\.\.\.
11
11
  .
12
12
  .br
13
- \fBronn\fR \-\-build \fIFILE\fR ...
13
+ \fBronn\fR\fB\-m\fR|\fB\-\-man\fR\fIfile\fR\.\.\.
14
14
  .
15
15
  .br
16
- \fBronn\fR \-\-install \fIFILE\fR ...
16
+ \fBronn\fR\fB\-S\fR|\fB\-\-server\fR\fIfile\fR\.\.\.
17
17
  .
18
18
  .br
19
- \fBronn\fR \-\-man \fIFILE\fR
19
+ \fBronn\fR\fB\-\-pipe\fR\fIfile\fR
20
+ .
21
+ .br
22
+ \fBronn\fR\fI<file\fR
20
23
  .
21
24
  .SH "DESCRIPTION"
22
- Ronn is a humane text format and toolchain for authoring man pages, and
23
- things that appear as man pages from a distance. Use it to build and
24
- install standard UNIX / roff(7) formatted man pages and to generate
25
- nicely formatted HTML manual pages.
25
+ \fBRonn\fR converts Markdown input to standard roff\-formatted UNIX manpages or manpage styled HTML\. The ronn(5) source format is based on markdown(7) but includes additional rules and syntax geared toward authoring manuals\.
26
26
  .
27
27
  .P
28
- The \fBronn\fR command converts one or more named input \fIFILE\fRs (or standard
29
- input when no files are named or the file name \fB\-\fR is given) from humane
30
- man page markup to one or more destination output formats. If no output
31
- format is selected explicitly, \fBronn\fR writes output in roff format.
28
+ In its default mode, \fBronn\fR converts one or more input \fIfile\fRs to HTML or UNIX roff output files\. The \fB\-\-roff\fR, \fB\-\-html\fR, and \fB\-\-fragment\fR options dictate which output files are generated\. Multiple format arguments may be specified to generate multiple output files\. Output files are named after and written to the same directory as input \fIfile\fRs\.
32
29
  .
33
- .SH "FILES"
34
- The \fBronn\fR command expects input to be formatted as ronn(5) text. Source
35
- files are typically named '\fINAME\fR.\fISECTION\fR.ronn' (e.g., \fBhello.1.ronn\fR).
36
- The \fINAME\fR and \fISECTION\fR should match the name and section defined in \fIFILE\fR's heading.
30
+ .P
31
+ The \fB\-\-server\fR and \fB\-\-man\fR options change the output behavior from output file generation to serving dynamically generated HTML manpages or viewing \fIfile\fR as with man(1)\.
37
32
  .
38
33
  .P
39
- When building roff and/or HTML output files with the \fB\-\-build\fR argument,
40
- destination filenames are determined by taking the basename of the input \fIFILE\fR and adding the appropriate file extension (or removing the file
41
- extension in the case of roff output).
34
+ With no \fIfile\fR arguments, \fBronn\fR acts as simple filter\. Ronn source text is read from standard input and roff output is written to standard output\. The \fB\-\-html\fR and \fB\-\-fragment\fR options can be used to generate that format output instead of roff\.
35
+ .
36
+ .SH "FILES"
37
+ The \fBronn\fR command expects input to be formatted as ronn(5) text\. Source files are typically named \'\fIname\fR\.\fIsection\fR\.ronn\' (e\.g\., \fBexample\.1\.ronn\fR)\. The \fIname\fR and \fIsection\fR should match the name and section defined in the \fIfile\fR\'s heading\.
42
38
  .
43
39
  .P
44
- For example, the command \fBronn \-b \-\-html \-\-roff hello.1.ronn\fR generates a \fBhello.1\fR file with roff output and a \fBhello.1.html\fR file with HTML
45
- output.
40
+ When building roff or HTML output files, destination filenames are determined by taking the basename of the input \fIfile\fR and adding the appropriate file extension (or removing the file extension in the case of roff output)\. For example, executing \fBronn example\.1\.ronn\fR generates \fBexample\.1\fR with roff output and \fBexample\.1\.html\fR with HTML output\.
46
41
  .
47
42
  .SH "OPTIONS"
48
- \fBronn\fR's default mode of operation is to read a single document from
49
- standard input and to write the result to standard output. The following
50
- arguments change this behavior:
43
+ These options control whether output is written to files, standard output, or directly to a man pager\.
51
44
  .
52
45
  .TP
53
- \fB\-b\fR, \fB\-\-build\fR
54
- Write output directly to files instead of standard output. When the \fB\-\-roff\fR option is provided, writes roff output to \fIfile\fR.\fIsection\fR.
55
- When the \fB\-\-html\fR option is provided, writes output to
56
- '\fIfile\fR.\fIsection\fR.html'.
46
+ \fB\-m\fR, \fB\-\-man\fR
47
+ Don\'t generate files, display \fIfile\fRs as if man(1) were invoked on the roff output file\. This simulates default man behavior by piping the roff output through groff(1) and the paging program specified by the \fBMANPAGER\fR environment variable\.
57
48
  .
58
49
  .TP
59
- \fB\-i\fR, \fB\-\-install\fR
60
- Install the roff formatted man page to the local system such that it
61
- can be displayed by man(1). The \fBMANHOME\fR environment variable is
62
- used to determine the prefix where man pages should be installed
63
- when defined.
50
+ \fB\-S\fR, \fB\-\-server\fR
51
+ Don\'t generate files, start an HTTP server at \fIhttp://localhost:1207/\fR and serve dynamically generated HTML for the set of input \fIfile\fRs\. A file named \fIexample\.2\.ronn\fR is served as \fI/example\.2\.html\fR\. There\'s also an index page at the root with links to each \fIfile\fR\.
64
52
  .
65
53
  .IP
66
- If \fBMANHOME\fR is not defined, \fBronn\fR installs man pages to \fI/usr/local/man\fR.
54
+ The server respects the \fB\-\-style\fR and document attribute options (\fB\-\-manual\fR, \fB\-\-date\fR, etc\.)\. These same options can be varied at request time by giving them as query parameters: \fB?manual=FOO&style=dark,toc\fR
55
+ .
56
+ .IP
57
+ \fINOTE: The builtin server is designed to assist in the process of writing and styling manuals\. It is in no way recommended as a general purpose web server\.\fR
67
58
  .
68
59
  .TP
69
- \fB\-m\fR, \fB\-\-man\fR
70
- Display \fIFILE\fRs as if man(1) were invoked on the roff output file.
71
- This simulates default man behavior by piping the roff output
72
- through groff(1) and the paging program specified by the \fBMANPAGER\fR
73
- environment variable.
60
+ \fB\-\-pipe\fR
61
+ Don\'t generate files, write generated output to standard output\. This is the default behavior when ronn source text is piped in on standard input and no \fIfile\fR arguments are provided\.
74
62
  .
75
63
  .P
76
- These options control the format used in generated output:
64
+ Format options control the files \fBronn\fR generates, or the output format when the \fB\-\-pipe\fR argument is specified\. When no format options are given, both \fB\-\-roff\fR and \fB\-\-html\fR are assumed\.
77
65
  .
78
66
  .TP
79
67
  \fB\-r\fR, \fB\-\-roff\fR
80
- Generate roff output. This is the default behavior when no other
81
- format argument is provided.
68
+ Generate roff output\. This is the default behavior when no \fIfile\fRs are given and ronn source text is read from standard input\.
82
69
  .
83
70
  .TP
84
71
  \fB\-5\fR, \fB\-\-html\fR
85
- Generate output in HTML format.
72
+ Generate output in HTML format\.
86
73
  .
87
74
  .TP
88
75
  \fB\-f\fR, \fB\-\-fragment\fR
89
- Generate output in HTML format but only the document fragment, not
90
- the header, title, or footer.
76
+ Generate output in HTML format but only the document fragment, not the header, title, or footer\.
91
77
  .
92
78
  .P
93
- All document attributes displayed in the header and footer areas of
94
- generated content can be specified with these options:
79
+ Document attributes displayed in the header and footer areas of generated content are specified with these options\. (These values may also be set via the \fIENVIRONMENT\fR\.)
95
80
  .
96
81
  .TP
97
- \fB\-\-manual\fR=\fIMANUAL\fR
98
- The name of the manual this man page belongs to; \fIMANUAL\fR is
99
- prominently displayed top\-center in the header area.
82
+ \fB\-\-manual\fR=\fImanual\fR
83
+ The name of the manual this man page belongs to; \fImanual\fR is prominently displayed top\-center in the header area\.
100
84
  .
101
85
  .TP
102
- \fB\-\-organization\fR=\fINAME\fR
103
- The name of the group, organization, or individual responsible for
104
- publishing the document; \fINAME\fR is displayed in the bottom\-left
105
- footer area.
86
+ \fB\-\-organization\fR=\fIname\fR
87
+ The name of the group, organization, or individual responsible for publishing the document; \fIname\fR is displayed in the bottom\-left footer area\.
106
88
  .
107
89
  .TP
108
- \fB\-\-date\fR=\fIDATE\fR
109
- The document's published date; \fIDATE\fR must be formatted \fBYYYY\-MM\-DD\fR
110
- and is displayed in the bottom\-center footer area. The \fIFILE\fR mtime
111
- is used when no \fIDATE\fR is given, or the current time when no \fIFILE\fR
112
- is available.
90
+ \fB\-\-date\fR=\fIdate\fR
91
+ The document\'s published date; \fIdate\fR must be formatted \fBYYYY\-MM\-DD\fR and is displayed in the bottom\-center footer area\. The \fIfile\fR mtime is used when no \fIdate\fR is given, or the current time when no \fIfile\fR is available\.
92
+ .
93
+ .P
94
+ HTML output can be customized variously:
95
+ .
96
+ .TP
97
+ \fB\-\-style\fR=\fImodule\fR[,\fImodule\fR]\.\.\.
98
+ The list of CSS stylesheets to apply to the document\. Multiple \fImodule\fR arguments may be specified, but must be separated by commas or spaces\.
99
+ .
100
+ .IP
101
+ When \fImodule\fR is a simple word, search for files named \fImodule\fR\fB\.css\fR in all directories listed in the \fI\fBRONN_STYLE\fR\fR environment variable, and then search internal styles\.
102
+ .
103
+ .IP
104
+ When \fImodule\fR includes a \fI/\fR character, use it as the full path to a stylesheet file\.
105
+ .
106
+ .IP
107
+ Internal styles are \fIman\fR (included by default), \fItoc\fR, and \fI80c\fR\. See \fISTYLES\fR for descriptions of features added by each module\.
108
+ .
109
+ .P
110
+ Miscellaneous options:
111
+ .
112
+ .TP
113
+ \fB\-w\fR, \fB\-\-warnings\fR
114
+ Show troff warnings on standard error when performing roff conversion\. Warnings are most often the result of a bug in ronn\'s HTML to roff conversion logic\.
115
+ .
116
+ .TP
117
+ \fB\-W\fR
118
+ Disable troff warnings\. Warnings are disabled by default\. This option can be used to revert the effect of a previous \fB\-w\fR argument\.
119
+ .
120
+ .SH "STYLES"
121
+ The \fB\-\-style\fR option selects a list of CSS stylesheets to include in the generated HTML\. Styles are applied in the order defined, so each can use the cascade to override previously defined styles\.
122
+ .
123
+ .SS "Internal Stylesheets"
124
+ These styles are included with the distribution:
125
+ .
126
+ .TP
127
+ \fBman\fR
128
+ Basic manpage styles: typography, definition lists, indentation\. This is always included regardless of \fB\-\-style\fR argument\. It is however possible to replace the default \fBman\fR module with a custom one by placing a \fBman\.css\fR file on the \fBRONN_STYLE\fR path\.
129
+ .
130
+ .TP
131
+ \fBprint\fR
132
+ Basic print stylesheet\. The generated \fB<style>\fR tag includes a \fBmedia=print\fR attribute\.
133
+ .
134
+ .TP
135
+ \fBtoc\fR
136
+ Enables the Table of Contents navigation\. The TOC markup is included in generated HTML by default but hidden with an inline \fBdisplay:none\fR style rule; the \fBtoc\fR module turns it on and applies basic TOC styles\.
137
+ .
138
+ .TP
139
+ \fBdark\fR
140
+ Light text on a dark background\.
141
+ .
142
+ .TP
143
+ \fB80c\fR
144
+ Changes the display width to mimic the display of a classic 80 character terminal\. The default display width causes lines to wrap at a gratuitous 100 characters\.
145
+ .
146
+ .SS "Custom Stylesheets"
147
+ Writing custom stylesheets is straight\-forward\. The following core selectors allow targeting all generated elements:
148
+ .
149
+ .TP
150
+ \fB\.mp\fR
151
+ The manual page container element\. Present on full documents and document fragments\.
152
+ .
153
+ .TP
154
+ \fBbody#manpage\fR
155
+ Signifies that the page was fully\-generated by Ronn and contains a single manual page (\fB\.mp\fR element)\.
156
+ .
157
+ .TP
158
+ \fB\.man\-decor\fR
159
+ The three\-item heading and footing elements both have this class\.
160
+ .
161
+ .TP
162
+ \fB\.man\-head\fR, \fB\.man\-foot\fR
163
+ The heading and footing, respectively\.
164
+ .
165
+ .TP
166
+ \fB\.man\-title\fR
167
+ The main \fB<h1>\fR element\. Hidden by default unless the manual has no \fIname\fR or \fIsection\fR attributes\.
168
+ .
169
+ .P
170
+ See the internal style sources \fIhttp://github\.com/rtomayko/ronn/tree/master/lib/ronn/template\fR for examples\.
113
171
  .
114
172
  .SH "EXAMPLES"
115
- Generate \fBroff(7)\fR output on stdout:
173
+ Build roff and HTML output files and view the roff manpage using man(1):
116
174
  .
117
175
  .IP "" 4
118
176
  .
119
177
  .nf
120
178
 
121
- $ ronn < hello.1.ronn
179
+ $ ronn some\-great\-program\.1\.ronn
180
+ roff: some\-great\-program\.1
181
+ html: some\-great\-program\.1\.html
182
+ $ man \./some\-great\-program\.1
122
183
  .
123
184
  .fi
124
185
  .
125
186
  .IP "" 0
126
187
  .
127
188
  .P
128
- Build a roff file based on the input filename:
189
+ Build only the roff manpage for all \fB\.ronn\fR files in the current directory:
129
190
  .
130
191
  .IP "" 4
131
192
  .
132
193
  .nf
133
194
 
134
- $ ronn \-b hello.1.ronn
135
- building: hello.1
136
- $ man hello.1
195
+ $ ronn \-\-roff *\.ronn
196
+ roff: mv\.1
197
+ roff: ls\.1
198
+ roff: cd\.1
199
+ roff: sh\.1
137
200
  .
138
201
  .fi
139
202
  .
140
203
  .IP "" 0
141
204
  .
142
205
  .P
143
- Build and open a standalone HTML file based on the input filename:
206
+ Build only the HTML manpage for a few files and apply the \fBdark\fR and \fBtoc\fR stylesheets:
144
207
  .
145
208
  .IP "" 4
146
209
  .
147
210
  .nf
148
211
 
149
- $ ronn \-b \-\-html test.1.ronn
150
- $ open test.1.html
212
+ $ ronn \-\-html \-\-style=dark,toc mv\.1\.ronn ls\.1\.ronn
213
+ html: mv\.1\.html
214
+ html: ls\.1\.html
151
215
  .
152
216
  .fi
153
217
  .
154
218
  .IP "" 0
155
219
  .
156
220
  .P
157
- Build roff and HTML versions of all \fB.ronn\fR files in the current
158
- directory:
221
+ Generate roff output on standard output and write to file:
159
222
  .
160
223
  .IP "" 4
161
224
  .
162
225
  .nf
163
226
 
164
- $ ronn \-b \-\-roff \-\-html *.ronn
165
- building: hello.1
166
- building: hello.1.html
167
- building: world.1
168
- building: world.1.html
227
+ $ ronn <hello\.1\.ronn >hello\.1
169
228
  .
170
229
  .fi
171
230
  .
@@ -178,20 +237,21 @@ View a ronn file in the same way as man(1) without building a roff file:
178
237
  .
179
238
  .nf
180
239
 
181
- $ ronn \-m hello.1.ronn
240
+ $ ronn \-\-man hello\.1\.ronn
182
241
  .
183
242
  .fi
184
243
  .
185
244
  .IP "" 0
186
245
  .
187
246
  .P
188
- Install the roff man page for a ronn file:
247
+ Serve HTML manpages at \fIhttp://localhost:1207/\fR for all \fB*\.ronn\fR files under a \fBman/\fR directory:
189
248
  .
190
249
  .IP "" 4
191
250
  .
192
251
  .nf
193
252
 
194
- $ ronn \-i hello.1.ronn
253
+ $ ronn \-\-server man/*\.ronn
254
+ $ open http://localhost:1207/
195
255
  .
196
256
  .fi
197
257
  .
@@ -200,27 +260,34 @@ $ ronn \-i hello.1.ronn
200
260
  .SH "ENVIRONMENT"
201
261
  .
202
262
  .TP
203
- \fBMANHOME\fR
204
- Location where roff formatted man pages are installed. Relevant
205
- only when the \fB\-\-install\fR argument is provided. \fIPATH\fR is to the
206
- base of a man file hierarchy. e.g., \fB/usr/local/share/man\fR, \fB/home/rtomayko/man\fR.
263
+ \fBRONN_MANUAL\fR
264
+ A default manual name to be displayed in the top\-center header area\. The \fB\-\-manual\fR option takes precedence over this value\.
265
+ .
266
+ .TP
267
+ \fBRONN_ORGANIZATION\fR
268
+ The default manual publishing group, organization, or individual to be displayed in the bottom\-left footer area\. The \fB\-\-organization\fR option takes precedence over this value\.
269
+ .
270
+ .TP
271
+ \fBRONN_DATE\fR
272
+ The default manual date in \fBYYYY\-MM\-DD\fR format\. Displayed in the bottom\-center footer area\. The \fB\-\-date\fR option takes precedence over this value\.
273
+ .
274
+ .TP
275
+ \fBRONN_STYLE\fR
276
+ A \fBPATH\fR\-style list of directories to check for stylesheets given to the \fB\-\-style\fR option\. Directories are separated by a \fI:\fR; blank entries are ignored\. Use \fI\.\fR to include the current working directory\.
207
277
  .
208
278
  .TP
209
279
  \fBMANPAGER\fR
210
- The paging program used for man pages. This is typically set to
211
- something like 'less \-is'.
280
+ The paging program used for man pages\. This is typically set to something like \'less \-is\'\.
212
281
  .
213
282
  .TP
214
283
  \fBPAGER\fR
215
- Used instead of \fBMANPAGER\fR when \fBMANPAGER\fR is not defined.
284
+ Used instead of \fBMANPAGER\fR when \fBMANPAGER\fR is not defined\.
216
285
  .
217
286
  .SH "BUGS"
218
- Ronn is written in Ruby and depends on hpricot and rdiscount, extension
219
- libraries that are non\-trivial to install on some systems. A more portable
220
- version of this program would be welcome.
287
+ \fBRonn\fR is written in Ruby and depends on hpricot and rdiscount, extension libraries that are non\-trivial to install on some systems\. A more portable version of this program would be welcome\.
221
288
  .
222
289
  .SH "COPYRIGHT"
223
- Ronn is Copyright (C) 2009 Ryan Tomayko <tomayko.com/about>
290
+ Ronn is Copyright (C) 2009 Ryan Tomayko <tomayko\.com/about>
224
291
  .
225
292
  .SH "SEE ALSO"
226
- ronn(5), markdown(5), manpages(5), man(1), roff(7), groff(1)
293
+ ronn(5), (7), manpages(5), man(1), roff(7), groff(1), markdown(7)