Skip to content

Commit ec739ea

Browse files
committed
Add config api docs. wireservice#610
1 parent c963523 commit ec739ea

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

agate/config.py

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,33 @@
33

44
"""
55
This module contains the global configuration for agate. Users should use
6-
:function:`.get_option` and :function:`.set_option` to modify the global
6+
:meth:`get_option` and :meth:`set_option` to modify the global
77
configuration.
8+
9+
Available configuation options:
10+
11+
+-------------------------+------------------------------------------+-----------------------------------------+
12+
| Option | Description | Default value |
13+
+=========================+==========================================+=========================================+
14+
| default_locale | Default locale for number formatting | default_locale('LC_NUMERIC') or 'en_US' |
15+
+-------------------------+------------------------------------------+-----------------------------------------+
16+
| horizontal_line_char | Character to render for horizontal lines | u'-' |
17+
+-------------------------+------------------------------------------+-----------------------------------------+
18+
| vertical_line_char | Character to render for vertical lines | u'|' |
19+
+-------------------------+------------------------------------------+-----------------------------------------+
20+
| bar_char | Character to render for bar chart units | u'░' |
21+
+-------------------------+------------------------------------------+-----------------------------------------+
22+
| printable_bar_char | Printable character for bar chart units | u':' |
23+
+-------------------------+------------------------------------------+-----------------------------------------+
24+
| zero_line_char | Character to render for zero line units | u'▓' |
25+
+-------------------------+------------------------------------------+-----------------------------------------+
26+
| printable_zero_line_char| Printable character for zero line units | u'|' |
27+
+-------------------------+------------------------------------------+-----------------------------------------+
28+
| tick_char | Character to render for axis ticks | u'+' |
29+
+-------------------------+------------------------------------------+-----------------------------------------+
30+
| ellipsis_chars | Characters to render for ellipsis | u'...' |
31+
+-------------------------+------------------------------------------+-----------------------------------------+
32+
833
"""
934

1035
from babel.core import default_locale

docs/api.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ API
1818
api/exceptions
1919
api/warns
2020
api/testcase
21+
api/config

docs/api/config.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
======
2+
Config
3+
======
4+
5+
.. automodule:: agate.config
6+
:members:
7+
:inherited-members:

0 commit comments

Comments
 (0)