-
-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from hartwork/manpage
Add and ship AsciiDoc manpage, improve --help, add --version
- Loading branch information
Showing
8 changed files
with
136 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
include README.rst | ||
include LICENSE | ||
include Makefile | ||
include man/asciidoc.conf | ||
include man/ansi2html.1 | ||
include man/ansi2html.1.txt | ||
recursive-include tests * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
VERSION = (0, 10, 0) | ||
VERSION_STR = '.'.join([str(e) for e in VERSION]) | ||
|
||
if __name__ == '__main__': | ||
print(VERSION_STR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/ansi2html.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
ANSI2HTML(1) | ||
============ | ||
:doctype: manpage | ||
:man source: {manual_package} | ||
:man version: {manual_version} | ||
:man manual: {manual_title} | ||
|
||
|
||
NAME | ||
---- | ||
ansi2html - Convert text with ANSI color codes to HTML | ||
|
||
|
||
SYNOPSIS | ||
-------- | ||
*ansi2html* ['OPTIONS'] [*--inline*] [*--partial*] | ||
|
||
|
||
DESCRIPTION | ||
----------- | ||
Tool to convert text with ANSI color codes to HTML. | ||
|
||
|
||
OPTIONS | ||
------- | ||
|
||
*-p*, *--partial*:: | ||
Process lines as them come in. No headers are produced. | ||
|
||
*-i*, *--inline*:: | ||
Inline style without headers or template. | ||
|
||
*-H*, *--headers*:: | ||
Just produce the "<style>" tag. | ||
|
||
*-f* 'SIZE', *--font-size*='SIZE':: | ||
Set the global font size in the output. | ||
|
||
*-l*, *--light-background*:: | ||
Set output to "light background" mode. | ||
|
||
*-a*, *--linkify*:: | ||
Transform URLs into "<a>" links. | ||
|
||
*-u*, *--unescape*:: | ||
Do not escape XML tags found in the input. | ||
|
||
*-m*, *--markup-lines*:: | ||
Surround lines with "`<span id='line-n'>..</span>`". | ||
|
||
*--input-encoding='ENCODING'*:: | ||
Specify input encoding. | ||
|
||
*--output-encoding='ENCODING'*:: | ||
Specify output encoding. | ||
|
||
*-h*, *--help*:: | ||
Show this help message and exit. | ||
|
||
*--version*:: | ||
Show program's version number and exit. | ||
|
||
|
||
EXAMPLES | ||
-------- | ||
------------------- | ||
$ ls --color=always | ansi2html > directories.html | ||
|
||
$ sudo tail /var/log/messages | ccze -A | ansi2html > logs.html | ||
|
||
$ task burndown | ansi2html > burndown.html | ||
------------------- | ||
|
||
|
||
HOMEPAGE | ||
-------- | ||
* GitHub: https://github.com/ralphbean/ansi2html | ||
* PyPI: https://pypi.python.org/pypi/ansi2html | ||
|
||
|
||
AUTHORS | ||
------- | ||
* Ralph Bean <rbean@redhat.com> | ||
* Sebastian Pipping <sebastian@pipping.org> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters