Skip to content

Commit

Permalink
Fix docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
jantman committed Sep 4, 2019
1 parent f0ab970 commit b527515
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
3 changes: 2 additions & 1 deletion docs/build_generated_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ def build_runner_examples():
results['%s-output-only' % name] = format_cmd_output(None, output, name)
results['metrics-providers'] = ''
for m in MetricsProvider.providers_by_name().keys():
results['metrics-providers'] += '* :py:class:`~.%s`\n' % m
results['metrics-providers'] += '* :py:class:`~awslimitchecker.' \
'metrics.%s.%s`\n' % (m.lower(), m)
results['limit-override-json'] = dedent("""
{
"AutoScaling": {
Expand Down
7 changes: 7 additions & 0 deletions docs/source/awslimitchecker.alerts.dummy.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
awslimitchecker.alerts.dummy module
===================================

.. automodule:: awslimitchecker.alerts.dummy
:members:
:undoc-members:
:show-inheritance:
1 change: 1 addition & 0 deletions docs/source/awslimitchecker.alerts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ Submodules
.. toctree::

awslimitchecker.alerts.base
awslimitchecker.alerts.dummy

4 changes: 2 additions & 2 deletions docs/source/cli_usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,8 @@ can be seen with the ``--list-metrics-providers`` option:
The configuration options required by each metrics provider are specified in the
providers' documentation:

* :py:class:`~.Dummy`
* :py:class:`~.Datadog`
* :py:class:`~awslimitchecker.metrics.dummy.Dummy`
* :py:class:`~awslimitchecker.metrics.datadog.Datadog`


For example, to use the :py:class:`~awslimitchecker.metrics.datadog.Datadog`
Expand Down
1 change: 1 addition & 0 deletions docs/source/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ implement a new one, but there are a few important things to keep in mind:
extras but installed in the Docker image.
* The constructor should do as much validation (i.e. authentication test) as
possible.
* Metrics provider classes should be in a module with the same name.

.. _development.tests:

Expand Down

0 comments on commit b527515

Please sign in to comment.