Update ronn
This commit is contained in:
parent
cdb6135103
commit
82370f7da7
131
ronn.md
131
ronn.md
|
@ -1,68 +1,113 @@
|
|||
---
|
||||
title: Ronn
|
||||
layout: default
|
||||
---
|
||||
|
||||
### Generating
|
||||
Ronn generates Man pages. See [ronn(1)](http://rtomayko.github.io/ronn/ronn.1.html), [ronn-format(7)](http://rtomayko.github.com/ronn/ronn-format.7.html), [rtomayko/ronn](https://github.com/rtomayko/ronn).
|
||||
{:.center.brief-intro}
|
||||
|
||||
$ ronn foo.ronn
|
||||
```sh
|
||||
gem install ronn
|
||||
```
|
||||
{:.light}
|
||||
|
||||
$ ronn -r foo.ronn # Creates foo.7
|
||||
```sh
|
||||
ronn foo.1.md # creates foo.1.html
|
||||
ronn -r foo.1.md # creates foo.1 (--roff)
|
||||
ronn -m foo.1.md # view as manpage
|
||||
```
|
||||
{:.light}
|
||||
|
||||
$ ronn --html --style toc,80c foo.ronn
|
||||
### Other options
|
||||
|
||||
# manual - top center
|
||||
# org - bottom left
|
||||
$ ronn --manual="MY MANUAL" --organization="RONN 0.7.0"
|
||||
```sh
|
||||
--pipe # write to stdout
|
||||
--server, -S # serve in http://localhost:1207
|
||||
|
||||
See [ronn.1](http://rtomayko.github.com/ronn/ronn.1.html).
|
||||
--html, -5 # default
|
||||
--fragment, -f # html without header/title/footer
|
||||
|
||||
### Format
|
||||
--style toc,80c # toc (table of contents)
|
||||
# 80c (use 80c instead of 100c)
|
||||
# print (include print stylesheet)
|
||||
# dark
|
||||
|
||||
name(1) -- short, single-sentence description
|
||||
=============================================
|
||||
--manual="MY MANUAL" # shown on top-center
|
||||
--organization="RONN 0.7.0" # shown on bottom-left
|
||||
--date="YYYY-MM-DD" # shown on bottom-center
|
||||
```
|
||||
|
||||
## SYNOPSIS
|
||||
## Basic template
|
||||
|
||||
`name` [<optional>...] <flags>
|
||||
```markdown
|
||||
name(1) -- short, single-sentence description
|
||||
=============================================
|
||||
|
||||
## DESCRIPTION
|
||||
## SYNOPSIS
|
||||
|
||||
A normal paragraph. This can span multiple lines and is terminated with two
|
||||
or more line endings -- just like Markdown.
|
||||
`name` [<optional>...] <flags>
|
||||
|
||||
Inline markup for `code`, `user input`, and **strong** are displayed
|
||||
boldface; <variable>, _emphasis_, *emphasis*, are displayed in italics
|
||||
(HTML) or underline (roff).
|
||||
## DESCRIPTION
|
||||
|
||||
### Linking
|
||||
A normal paragraph. This can span multiple lines and is terminated with two
|
||||
or more line endings just like Markdown.
|
||||
|
||||
Manual references like sh(1), markdown(7), roff(7), etc. are hyperlinked in
|
||||
HTML output.
|
||||
## OPTIONS
|
||||
|
||||
Link to sections like [STANDARDS][], [SEE ALSO][], or [WITH A DIFFERENT LINK
|
||||
TEXT][#SEE-ALSO].
|
||||
* `-R`, `--reporter`=[<name>] :
|
||||
Use the reporter <name>.
|
||||
|
||||
### Definition lists
|
||||
## EXAMPLES
|
||||
|
||||
* `-a`, `--argument`=[<value>]:
|
||||
One or more paragraphs describing the argument.
|
||||
Indent examples with 4 spaces.
|
||||
|
||||
* You can put whatever you *want* here, really:
|
||||
Nesting and paragraph spacing are respected.
|
||||
$ ls
|
||||
$ ls -la
|
||||
|
||||
### Frequently used sections
|
||||
## SEE ALSO
|
||||
|
||||
## OPTIONS
|
||||
## SYNTAX
|
||||
## ENVIRONMENT
|
||||
## RETURN VALUES
|
||||
## STANDARDS
|
||||
## SECURITY CONSIDERATIONS
|
||||
## BUGS
|
||||
## HISTORY
|
||||
## AUTHOR
|
||||
## COPYRIGHT
|
||||
## SEE ALSO
|
||||
ronn-format(7), ronn(1)
|
||||
```
|
||||
|
||||
See [ronn-format.7](http://rtomayko.github.com/ronn/ronn-format.7.html).
|
||||
## Formatting tags
|
||||
|
||||
```
|
||||
## FORMATTING
|
||||
|
||||
* Bold: `code` **strong**
|
||||
* Underline: <variable> _emphasis_ *emphasis*
|
||||
* Linking manual references: sh(1) markdown(7)
|
||||
* Linking sections: [STANDARDS][], [SEE ALSO][], [DIFFERENT TEXT][#SEE-ALIA]
|
||||
```
|
||||
|
||||
## Frequently-used sections
|
||||
|
||||
```markdown
|
||||
## NAME
|
||||
## SYNOPSIS
|
||||
## DESCRIPTION
|
||||
## OPTIONS
|
||||
## SYNTAX
|
||||
## ENVIRONMENT
|
||||
## RETURN VALUES
|
||||
## STANDARDS
|
||||
## SECURITY CONSIDERATIONS
|
||||
## BUGS
|
||||
## HISTORY
|
||||
## AUTHOR
|
||||
## COPYRIGHT
|
||||
## SEE ALSO
|
||||
```
|
||||
|
||||
## Sections
|
||||
See [Man page sections](http://www.december.com/unix/ref/mansec.html) (december.com).
|
||||
|
||||
| Section | Description |
|
||||
| --- | --- |
|
||||
| `1` | General commands |
|
||||
| `2` | System calls |
|
||||
| `3` | C standard lib |
|
||||
| `4` | Special files (/dev) and drivers |
|
||||
| `5` | File formats |
|
||||
| `6` | Games |
|
||||
| `7` | Misc |
|
||||
| `8` | System administration commands and procedures |
|
||||
|
|
Loading…
Reference in New Issue