From 4091ab479f768b1ecaabc6b2e13e5e56cfc82bd9 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Thu, 15 Mar 2018 10:29:03 -0700 Subject: [PATCH] Add alias's as a :ref: target for modules This is especially important for deprecated modules as we want to link to those in porting guides and such. (cherry picked from commit 8f1b5fc47b638ab74a2c6e5d6471062877cda40d) --- docs/templates/plugin.rst.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/templates/plugin.rst.j2 b/docs/templates/plugin.rst.j2 index 81ad0ad0109..706130efc00 100644 --- a/docs/templates/plugin.rst.j2 +++ b/docs/templates/plugin.rst.j2 @@ -1,6 +1,9 @@ :source: @{ source }@ .. _@{ module }@: +{% for alias in aliases %} +.. _@{ alias }@: +{% endfor %} {% if short_description %} {% set title = module + ' - ' + short_description|convert_symbols_to_format %}