From 0fef3f1b485ed8ab7abc78b230d153aa1412205f Mon Sep 17 00:00:00 2001 From: Alicia Cozine Date: Mon, 23 Apr 2018 08:22:44 -0500 Subject: [PATCH] avoids not-in-toc errors with :orphan: --- docs/templates/plugin.rst.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/templates/plugin.rst.j2 b/docs/templates/plugin.rst.j2 index 78a7f8b2e7..ac8926c3a6 100644 --- a/docs/templates/plugin.rst.j2 +++ b/docs/templates/plugin.rst.j2 @@ -1,5 +1,10 @@ :source: @{ source }@ +{# avoids rST "isn't included in any toctree" errors for module docs #} +{% if plugin_type == 'module' %} +:orphan: +{% endif %} + .. _@{ module }@_@{ plugin_type }@: {% for alias in aliases %} .. _@{ alias }@: