\fR\.
.
.TP
\fB**double\-stars**\fR (markdown compatible)
Also displayed in boldface\. Unlike backticks, inline markup is processed\. HTML output: \fB\fR\.
.
.TP
\fB\fR (non\-compatible markdown extension)
User\-specified arguments, variables, or user input\. Typically displayed with \fIunderline\fR in roff output\. HTML output: \fB\fR\.
.
.TP
\fB_\fR\fIunderbars\fR\fB_\fR (markdown compatible)
Emphasis\. May be used for literal option values\. Typically displayed with \fIunderline\fR in roff output\. HTML output: \fB\fR\.
.
.P
Here is grep(1)\'s DESCRIPTION section represented in \fBronn\fR:
.
.IP "" 4
.
.nf
`Grep` searches the named input (or standard input if
no files are named, or the file name `\-` is given) for lines
containing a match to the given \. By default, `grep`
prints the matching lines\.
.
.fi
.
.IP "" 0
.
.SH "DEFINITION LISTS"
The definition list syntax is compatible with markdown\'s unordered list syntax but requires that the first line of each list item be terminated with a colon \"\fB:\fR\" character\. The contents of the first line is the \fIterm\fR; subsequent lines may be comprised of multiple paragraphs, code blocks, standard lists, and nested definition lists\.
.
.P
An example definition list, taken from BSD test(1)\'s \fIDESCRIPTION\fR section:
.
.IP "" 4
.
.nf
The following primaries are used to construct expressions:
* `\-b` :
True if exists and is a block special file\.
* `\-c` :
True if _file_ exists and is a character special file\.
* `\-d` :
True if file exists and is a directory\.
.
.fi
.
.IP "" 0
.
.SH "LINKS"
All markdown(7) linking features are supported\.
.
.P
Markdown reference\-style links can be used to link to specific sections by name:
.
.IP "" 4
.
.nf
## SECTION 1
See the following section\.
## SECTION 2
See [SECTION 1][] or [to put it another way][SECTION 1]\.
.
.fi
.
.IP "" 0
.
.P
The anchor name would be \fB#SECTION\-1\fR and \fB#SECTION\-2\fR\. All non\-word characters are removed and spaces are replaced by dashes\.
.
.SH "SEE ALSO"
ronn(1), markdown(7), roff(7)
ronn-0.7.3/man/index.html 0000644 0001750 0001750 00000004417 11643142677 015224 0 ustar virtual virtual
Ronn
Ronn
Builds manuals
Auxiliary
README,
INSTALLING,
CHANGES,
COPYING,
AUTHORS
Manuals
- ronn(1)
- manual authoring tool
- ronn-format(7)
- markdown-based text format for authoring manpages
See Also
manpages(5),
markdown(7),
man(1),
roff(7),
groff(1),
mustache(5)
Copyright © 2010 Ryan Tomayko
ronn-0.7.3/man/ronn-format.7.ronn 0000644 0001750 0001750 00000011214 11643142677 016525 0 ustar virtual virtual ronn-format(7) -- manual authoring format based on Markdown
===========================================================
## SYNOPSIS
name(1) -- short, single-sentence description
=============================================
## SYNOPSIS
`name` [...]
## DESCRIPTION
A normal paragraph. This can span multiple lines and is terminated with two
or more line endings -- just like Markdown.
Inline markup for `code`, `user input`, and **strong** are displayed
boldface; , _emphasis_, *emphasis*, are displayed in italics
(HTML) or underline (roff).
Manual references like sh(1), markdown(7), roff(7), etc. are hyperlinked in
HTML output.
Link to sections like [STANDARDS][], [SEE ALSO][], or [WITH A DIFFERENT LINK
TEXT][#SEE-ALSO].
Definition lists:
* `-a`, `--argument`=[]:
One or more paragraphs describing the argument.
* You can put whatever you *want* here, really:
Nesting and paragraph spacing are respected.
Frequently used sections:
## OPTIONS
## SYNTAX
## ENVIRONMENT
## RETURN VALUES
## STANDARDS
## SECURITY CONSIDERATIONS
## BUGS
## HISTORY
## AUTHOR
## COPYRIGHT
## SEE ALSO
## DESCRIPTION
The ronn(1) command converts text in a simple markup to UNIX manual pages. The
syntax includes all Markdown formatting features, plus conventions for
expressing the structure and various notations present in standard UNIX
manpages.
Not all roff(7) typesetting features can be expressed using ronn syntax.
## MANPAGE TITLE
Manpages have a , , and a one-line . Files must
start with a level one heading defining these attributes:
ls(1) -- list directory contents
================================
Indicates that the manpage is named `ls` in manual section `1` ("user
commands").
## SECTION HEADINGS
Man section headings are expressed with markdown level two headings. There
are two syntaxes for level two headings.
Hash prefix syntax:
## HEADING TEXT
Dash underline syntax:
HEADING TEXT
------------
Section headings should be all uppercase and may not contain inline markup.
## INLINE MARKUP
Manpages have a limited set of text formatting capabilities. There's basically
boldface and italics (often displayed using underline).
Ronn uses the following bits of markdown(7) to accomplish this:
* \`backticks\`
(markdown compatible):
Code, flags, commands, and noun-like things; typically displayed in in
boldface. All text included within `backticks` is displayed
literally; other inline markup is not processed. HTML output:
``.
* `**double-stars**` (markdown compatible):
Also displayed in boldface. Unlike backticks, inline markup is processed.
HTML output: ``.
* `` (non-compatible markdown extension):
User-specified arguments, variables, or user input. Typically displayed with
underline in roff output. HTML output: ``.
* `_`_underbars_`_` (markdown compatible):
Emphasis. May be used for literal option values. Typically displayed with
underline in roff output. HTML output: ``.
Here is grep(1)'s DESCRIPTION section represented in `ronn`:
`Grep` searches the named input (or standard input if
no files are named, or the file name `-` is given) for lines
containing a match to the given . By default, `grep`
prints the matching lines.
## DEFINITION LISTS
The definition list syntax is compatible with markdown's unordered list syntax
but requires that the first line of each list item be terminated with a colon
"`:`" character. The contents of the first line is the ; subsequent lines
may be comprised of multiple paragraphs, code blocks, standard lists, and nested
definition lists.
An example definition list, taken from BSD test(1)'s *DESCRIPTION* section:
The following primaries are used to construct expressions:
* `-b` :
True if exists and is a block special file.
* `-c` :
True if _file_ exists and is a character special file.
* `-d` :
True if file exists and is a directory.
## LINKS
All markdown(7) linking features are supported.
Markdown reference-style links can be used to link to specific sections by name:
## SECTION 1
See the following section.
## SECTION 2
See [SECTION 1][] or [to put it another way][SECTION 1].
The anchor name would be `#SECTION-1` and `#SECTION-2`. All non-word characters
are removed and spaces are replaced by dashes.
## SEE ALSO
ronn(1), markdown(7), roff(7)
ronn-0.7.3/man/ronn.1.ronn 0000644 0001750 0001750 00000025400 11643142677 015233 0 ustar virtual virtual ronn(1) -- convert markdown files to manpages
=============================================
## SYNOPSIS
`ronn` [...] ...
`ronn` `-m`|`--man` ...
`ronn` `-S`|`--server` ...
`ronn` `--pipe`
`ronn` <
## DESCRIPTION
**Ronn** converts textfiles to standard roff-formatted UNIX manpages or HTML.
ronn-format(7) is based on markdown(7) but includes additional rules and syntax
geared toward authoring manuals.
In its default mode, `ronn` converts one or more input s to HTML or roff
output files. The `--roff`, `--html`, and `--fragment` 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 s.
The `--server` and `--man` options change the output behavior from file
generation to serving dynamically generated HTML manpages or viewing as
with man(1).
With no arguments, `ronn` acts as simple filter. Ronn source text is read
from standard input and roff output is written to standard output. Use the
`--html`, `--roff`, and/or `--fragment` options to select the output format.
## FILES
The `ronn` command expects input to be valid ronn-format(7) text. Source files
are typically named ..ronn (e.g., `example.1.ronn`). The
and should match the name and section defined in the 's heading.
When building roff or HTML output files, destination filenames are determined by
taking the basename of the input and adding the appropriate file
extension (or removing the file extension in the case of roff output). For
example, executing `ronn example.1.ronn` generates `example.1` with roff output
and `example.1.html` with HTML output.
## OPTIONS
These options control whether output is written to file(s), standard output, or
directly to a man pager.
* `-m`, `--man`:
Don't generate files, display s 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 `MANPAGER`
environment variable.
* `-S`, `--server`:
Don't generate files, start an HTTP server at and
serve dynamically generated HTML for the set of input s. A file named
*example.2.ronn* is served as */example.2.html*. There's also an index page
at the root with links to each .
The server respects the `--style` and document attribute options
(`--manual`, `--date`, etc.). These same options can be varied at request
time by giving them as query parameters: `?manual=FOO&style=dark,toc`
*NOTE: 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.*
* `--pipe`:
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
arguments are provided.
Format options control the files `ronn` generates, or the output format when the
`--pipe` argument is specified. When no format options are given, both `--roff`
and `--html` are assumed.
* `-r`, `--roff`:
Generate roff output. This is the default behavior when no s are given
and ronn source text is read from standard input.
* `-5`, `--html`:
Generate output in HTML format.
* `-f`, `--fragment`:
Generate output in HTML format but only the document fragment, not the
header, title, or footer.
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 [ENVIRONMENT][].)
* `--manual`=:
The name of the manual this man page belongs to; is prominently
displayed top-center in the header area.
* `--organization`=:
The name of the group, organization, or individual responsible for
publishing the document; is displayed in the bottom-left footer area.
* `--date`=:
The document's published date; must be formatted `YYYY-MM-DD` and is
displayed in the bottom-center footer area. The mtime is used when no
is given, or the current time when no is available.
HTML output can be customized through the use of CSS stylesheets:
* `--style`=[,]...:
The list of CSS stylesheets to apply to the document. Multiple
arguments may be specified, but must be separated by commas or spaces.
When is a simple word, search for files named `.css` in all
directories listed in the [`RONN_STYLE`](#ENVIRONMENT) environment variable,
and then search internal styles.
When includes a _/_ character, use it as the full path to a
stylesheet file.
Internal styles are _man_ (included by default), _toc_, and _80c_. See
[STYLES][] for descriptions of features added by each module.
Miscellaneous options:
* `-w`, `--warnings`:
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.
* `-W`:
Disable troff warnings. Warnings are disabled by default. This option can be
used to revert the effect of a previous `-w` argument.
* `-v`, `--version`:
Show ronn version and exit.
## LINK INDEXES
When generating HTML output, `ronn` hyperlinks manual references (like
`grep(1)`, `ls(1)`, `markdown(7)`) in source text based on reference name to URL
mappings defined in an `index.txt` file. Each line of the index file describes a
single reference link, with whitespace separating the reference's from its
. Blank lines are allowed; lines beginning with a `#` character are
ignored:
# manuals included in this project:
whisky(1) whisky.1.ronn
tango(5) tango.5.ronn
# external manuals
grep(1) http://man.cx/grep(1)
ls(1) http://man.cx/ls(1)
# other URLs for use with markdown reference links
src http://github.com/
The is an absolute or relative URL that usually points at an HTML
version of manpage. It's possible to define references for things that aren't
manpages.
All manuals in an individual directory share the references defined in that
directory's `index.txt` file. Index references may be used explicitly in
Markdown reference style links using the syntax: `[``][``]`, where
is the link text and is a reference name defined in the index.
## STYLES
The `--style` 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.
### Builtin Stylesheets
These styles are included with the distribution:
* `man`:
Basic manpage styles: typography, definition lists, indentation. This is
always included regardless of `--style` argument. It is however possible to
replace the default `man` module with a custom one by placing a `man.css`
file on the `RONN_STYLE` path.
* `print`:
Basic print stylesheet. The generated `