LinuxCommandLibrary

ronn

TLDR

Convert to man page

$ ronn [file.ronn]
copy
Convert to HTML
$ ronn --html [file.ronn]
copy
Convert to both
$ ronn --roff --html [file.ronn]
copy
Preview in browser
$ ronn --server [file.ronn]
copy
Specify output directory
$ ronn --output-dir [man/] [file.ronn]
copy

SYNOPSIS

ronn [options] files...

DESCRIPTION

Ronn converts Markdown-like text to Unix man pages and HTML. It uses an extended Markdown syntax for writing manual pages in a readable format.

PARAMETERS

--roff

Generate roff (man page).
--html
Generate HTML.
--fragment
HTML fragment only.
--server, -S
Preview server.
--style style
HTML style.
--output-dir dir
Output directory.
--manual name
Manual name.
--organization org
Organization.

EXAMPLES

$ # Generate man page
ronn mycommand.1.ronn

# Generate HTML
ronn --html mycommand.1.ronn

# Both formats
ronn --roff --html mycommand.1.ronn

# Preview
ronn --server mycommand.1.ronn

# Install man page
ronn mycommand.1.ronn
sudo cp mycommand.1 /usr/local/share/man/man1/
copy

RONN FORMAT

$ mycommand(1) -- short description
=============================================

## SYNOPSIS

`mycommand` [options] <file>

## DESCRIPTION

Description of the command.

## OPTIONS

  * `-h`, `--help`:
    Show help message.
copy

CAVEATS

Ruby gem (gem install ronn-ng). Filename convention: name.section.ronn.

HISTORY

Ronn was created by Ryan Tomayko to simplify writing man pages. ronn-ng is the maintained fork.

SEE ALSO

man(1), pandoc(1), groff(1)

Copied to clipboard