Skip to content

Commit

Permalink
Suppress add_directive docs warning
Browse files Browse the repository at this point in the history
This allows running the docs build with -W again.

Also fix title formatting of some API parameters.
  • Loading branch information
brutasse committed Oct 14, 2016
1 parent 2b900a3 commit 555f840
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ matrix:
allow_failures:
- env: TOXENV=py26
- env: TOXENV=coverage
- env: TOXENV=docs
4 changes: 2 additions & 2 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ Determines how slice labels are rendered within a pie chart.
.. _param-valueLabelsColor:

valueLabelsColor
----------------
````````````````

*Default: black*

Expand All @@ -1214,7 +1214,7 @@ Color used to draw slice labels within a pie chart.
.. _param-valueLabelsMin:

valueLabelsMin
--------------
``````````````

*Default: 5*

Expand Down
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ def format_args(self):
if args is not None:
return re.sub('requestContext, ', '', args)

suppress_warnings = ['app.add_directive']


def setup(app):
app.add_autodocumenter(RenderFunctionDocumenter)
Expand Down
2 changes: 1 addition & 1 deletion graphite_api/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

from six.moves import zip_longest, map, reduce

from .evaluator import evaluateTarget, evaluateTokens, pathsFromTarget
from .render.attime import parseTimeOffset, parseATTime
from .render.glyph import format_units
from .render.datalib import TimeSeries, fetchData
Expand Down Expand Up @@ -3941,3 +3940,4 @@ def pieMinimum(requestContext, series):
}

from .app import app # noqa
from .evaluator import evaluateTarget, evaluateTokens, pathsFromTarget # noqa

0 comments on commit 555f840

Please sign in to comment.