From 8f1b5fc47b638ab74a2c6e5d6471062877cda40d 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. --- 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 2572232c79c..5bb1833114d 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 %}