From 6a6c77d6ec97f1c5d69583696108a215ec45540a Mon Sep 17 00:00:00 2001 From: Eric Holscher Date: Fri, 17 Apr 2015 14:16:46 -0700 Subject: [PATCH] Add toc to detail pages --- autoapi/templates/dotnet/base_detail.rst | 5 ++++- autoapi/templates/index.rst | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/autoapi/templates/dotnet/base_detail.rst b/autoapi/templates/dotnet/base_detail.rst index 4ec2a3d..48e87ee 100644 --- a/autoapi/templates/dotnet/base_detail.rst +++ b/autoapi/templates/dotnet/base_detail.rst @@ -1,3 +1,5 @@ + + {% block title %} {{ object.short_name }} {{ object.type.title()}} @@ -7,9 +9,10 @@ {% endblock %} +.. contents:: + {% block summary %} {%- if object.summary %} - Summary ------- diff --git a/autoapi/templates/index.rst b/autoapi/templates/index.rst index 34d7465..0dd8c97 100644 --- a/autoapi/templates/index.rst +++ b/autoapi/templates/index.rst @@ -7,6 +7,6 @@ Below is a list of all items that are documented here. .. toctree:: :includehidden: :glob: - :maxdepth: 3 + :maxdepth: 5 */* \ No newline at end of file