Skip to content

Commit

Permalink
Add config api docs. wireservice#610
Browse files Browse the repository at this point in the history
  • Loading branch information
nbedi committed Jul 30, 2016
1 parent c963523 commit ec739ea
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
27 changes: 26 additions & 1 deletion agate/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,33 @@

"""
This module contains the global configuration for agate. Users should use
:function:`.get_option` and :function:`.set_option` to modify the global
:meth:`get_option` and :meth:`set_option` to modify the global
configuration.
Available configuation options:
+-------------------------+------------------------------------------+-----------------------------------------+
| Option | Description | Default value |
+=========================+==========================================+=========================================+
| default_locale | Default locale for number formatting | default_locale('LC_NUMERIC') or 'en_US' |
+-------------------------+------------------------------------------+-----------------------------------------+
| horizontal_line_char | Character to render for horizontal lines | u'-' |
+-------------------------+------------------------------------------+-----------------------------------------+
| vertical_line_char | Character to render for vertical lines | u'|' |
+-------------------------+------------------------------------------+-----------------------------------------+
| bar_char | Character to render for bar chart units | u'░' |
+-------------------------+------------------------------------------+-----------------------------------------+
| printable_bar_char | Printable character for bar chart units | u':' |
+-------------------------+------------------------------------------+-----------------------------------------+
| zero_line_char | Character to render for zero line units | u'▓' |
+-------------------------+------------------------------------------+-----------------------------------------+
| printable_zero_line_char| Printable character for zero line units | u'|' |
+-------------------------+------------------------------------------+-----------------------------------------+
| tick_char | Character to render for axis ticks | u'+' |
+-------------------------+------------------------------------------+-----------------------------------------+
| ellipsis_chars | Characters to render for ellipsis | u'...' |
+-------------------------+------------------------------------------+-----------------------------------------+
"""

from babel.core import default_locale
Expand Down
1 change: 1 addition & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ API
api/exceptions
api/warns
api/testcase
api/config
7 changes: 7 additions & 0 deletions docs/api/config.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
======
Config
======

.. automodule:: agate.config
:members:
:inherited-members:

0 comments on commit ec739ea

Please sign in to comment.