From d1dc81b8ba5284175e9447371507a7515f31dbed Mon Sep 17 00:00:00 2001 From: Eric Holscher Date: Thu, 23 Apr 2015 15:37:02 -0700 Subject: [PATCH] Clean up python templates --- autoapi/templates/python/class.rst | 2 +- autoapi/templates/python/module.rst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/autoapi/templates/python/class.rst b/autoapi/templates/python/class.rst index 1bdd917..22387f6 100644 --- a/autoapi/templates/python/class.rst +++ b/autoapi/templates/python/class.rst @@ -1,4 +1,4 @@ -.. class:: {{ obj.name }}{% if obj.args %}({{ obj.args|join(',') }}){% endif %} +.. py:class:: {{ obj.name }}{% if obj.args %}({{ obj.args|join(',') }}){% endif %} {% if obj.docstring %} diff --git a/autoapi/templates/python/module.rst b/autoapi/templates/python/module.rst index 22ef67e..2c2227d 100644 --- a/autoapi/templates/python/module.rst +++ b/autoapi/templates/python/module.rst @@ -25,7 +25,7 @@ {% endif %} -.. module:: {{ obj.name }} +.. py:module:: {{ obj.name }} @@ -39,7 +39,7 @@ {%- for obj_item in obj.item_map.get(item_type, []) %} {% macro render() %}{{ obj_item.render() }}{% endmacro %} - {{ render()|indent(4) }} +{{ render()|indent(0) }} {%- endfor %} {%- endmacro %}