-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
373 additions
and
222 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,15 +1,13 @@ | ||
language: python | ||
python: | ||
- "2.6" | ||
- "2.7" | ||
- "3.3" | ||
- "3.4" | ||
- "3.5" | ||
install: | ||
- "pip install -e .[dev]" | ||
- pip install . | ||
- pip install flake8 | ||
|
||
script: | ||
- py.test | ||
|
||
notifications: | ||
email: | ||
recipients: | ||
- [email protected] | ||
- py.test | ||
- flake8 . --ignore=E501 --exclude=docs/conf.py |
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,10 +1,9 @@ | ||
[![Build Status](https://travis-ci.org/ribozz/sphinx-argparse.svg?branch=master)](https://travis-ci.org/ribozz/sphinx-argparse) [![Documentation Status](https://readthedocs.org/projects/sphinx-argparse/badge/)](http://sphinx-argparse.readthedocs.org/) [![PyPI version](https://badge.fury.io/py/sphinx-argparse.svg)](https://badge.fury.io/py/sphinx-argparse) | ||
|
||
sphinx-argparse | ||
=============== | ||
|
||
:exclamation: **NB** :exclamation: New maintainer needed! Looking for person who actively use sphinx-argparse, love it and willing to help with it's development. Contact me by mail: [email protected] | ||
|
||
|
||
Sphinx extension that automatically document argparse commands and options | ||
Sphinx extension that automatically documents argparse commands and options | ||
|
||
For installation and usage details see docs. | ||
|
||
|
@@ -13,18 +12,25 @@ http://sphinx-argparse.readthedocs.org/en/latest/ | |
|
||
|
||
Changelog & contributors | ||
------------------------------ | ||
======================== | ||
|
||
0.1.15 | ||
0.1.16 | ||
------ | ||
|
||
------------------------------ | ||
- Added a `:nodefaultconst:` directive, which is similar to the `:nodefault:` directive, but applies only to `store_true`, `store_false`, and `store_const` (e.g., it will hide the "=True" part in the output, since that can be misleading to users). | ||
- Fixed various typos (thanks to users mikeantonacci, brondsem, and tony) | ||
- Format specifiers (e.g., `%(prog)s` and `%(default)s`) are now filled in (if possible) in help sections. If there's a missing keyword, then nothing will be filled in. This was issue #27. | ||
- The package is now a bit more robust to incorrectly spelling module names (#39, courtesy of Gabriel Falcão) | ||
- Added support for argparse groups (thanks to Fidel Ramirez) | ||
|
||
0.1.15 | ||
------ | ||
|
||
- Fixed malformed docutils DOM in manpages (Matt Boyer) | ||
|
||
|
||
0.1.14 | ||
|
||
----------------------------- | ||
------ | ||
|
||
- Support for aliasing arguments #22 (Campbell Barton) | ||
- Support for nested arguments #23 (Campbell Barton) | ||
|
@@ -33,69 +39,67 @@ Changelog & contributors | |
- Added 'passparser' option (David Hoese) | ||
|
||
0.1.13 | ||
|
||
----------------------------- | ||
------ | ||
|
||
- Bugfix: Choices are not always strings (Robert Langlois) | ||
- Polished small mistakes in usage documentation (Dean Malmgren) | ||
- Started to improve man-pages support (Zygmunt Krynicki) | ||
|
||
------------------------------ | ||
0.1.12 | ||
------ | ||
|
||
- Improved error reporting (James Anderson) | ||
|
||
------------------------------ | ||
0.1.11 | ||
------ | ||
|
||
- Fixed stupid bug, prevented things working on py3 (Alex Rudakov) | ||
- added tox configuration for tests | ||
|
||
------------------------------ | ||
0.1.10 | ||
------ | ||
|
||
- Remove the ugly new line in the end of usage string (Vadim Markovtsev) | ||
- Issue #9 Display argument choises (Proposed by Felix-neko, done by Alex Rudakov) | ||
- :ref: syntax for specifying path to parser instance. Issue #7 (Proposed by David Cottrell, Implemented by Alex Rudakov) | ||
- Updated docs to read the docs theme | ||
|
||
------------------------------ | ||
0.1.9 | ||
----- | ||
|
||
Fix problem with python version comparison, when python reports it as "2.7.5+" (Alex Rudakov) | ||
|
||
------------------------------ | ||
0.1.8 | ||
----- | ||
|
||
Argparse is not required anymore separate module as of python 2.7 (Mike Gleen) | ||
|
||
------------------------------ | ||
0.1.7 | ||
----- | ||
|
||
-- Nothing -- Created by axident. | ||
|
||
------------------------------ | ||
0.1.6 | ||
----- | ||
|
||
Adding :nodefault: directive that skips default values for options (Stephen Tridgell) | ||
|
||
------------------------------ | ||
0.1.5 | ||
----- | ||
|
||
Fix issue: epilog is ignored (James Anderson - https://github.com/jamesra) | ||
|
||
------------------------------ | ||
0.1.4 | ||
----- | ||
|
||
Fix issue #3: ==SUPPRESS== in option list with no default value | ||
|
||
------------------------------ | ||
0.1.2 | ||
----- | ||
|
||
Fix issue with subcommands (by Tony Narlock - https://github.com/tony) | ||
|
||
------------------------------ | ||
0.1.1 | ||
----- | ||
|
||
Initial version | ||
|
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
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 |
---|---|---|
@@ -1,15 +1,12 @@ | ||
|
||
|
||
Installation | ||
------------ | ||
============ | ||
|
||
This extension is tested on python 2.7. If you have successfully used it on any other version | ||
of python, then add this info to this doc please (through github pull request). | ||
This extension is tested on python 2.7 and 3.3+. | ||
|
||
Package is available in the Python Package Index:: | ||
Package is available in the Python Package Index:: | ||
|
||
pip install sphinx-argparse | ||
|
||
Enable extension in your sphinx config:: | ||
Enable the extension in your sphinx config:: | ||
|
||
extensions += ['sphinxarg.ext'] |
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,21 @@ | ||
Miscellaneous | ||
============= | ||
|
||
Text wrapping in argument tables | ||
-------------------------------- | ||
|
||
A common issue with the default html output is that the table within which options are displayed is designed such that the option descriptions are each held on one line. Any even remotely lengthy description then causes the viewer to need to scroll left/right to view the entire text. This is typically undesirable and the fix is described fully `here <http://rackerlabs.github.io/docs-rackspace/tools/rtd-tables.html>`_. | ||
|
||
The short synopsis is below: | ||
|
||
1. Create a new CSS file (likely under `_static`) and point to it in `html_static_path` and `html_context` (or a template in the `templates_path`) in `conf.py`. | ||
2. In that CSS file, add the following code:: | ||
|
||
.. code:: CSS | ||
.wy-table-responsive table td { | ||
white-space: normal !important; | ||
} | ||
.wy-table-responsive { | ||
overflow: visible !important; | ||
} |
Oops, something went wrong.