diff options
author | Toshio Kuratomi <a.badger@gmail.com> | 2018-03-15 10:29:03 -0700 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2018-04-17 18:49:20 -0700 |
commit | 4091ab479f768b1ecaabc6b2e13e5e56cfc82bd9 (patch) | |
tree | 97f2bf4d20c66e74347163e871c7c2598279c508 | |
parent | 10aa5a37aa0823178128cea5f8bc07c03825afa7 (diff) | |
download | ansible-4091ab479f768b1ecaabc6b2e13e5e56cfc82bd9.tar.gz |
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)
-rw-r--r-- | docs/templates/plugin.rst.j2 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/templates/plugin.rst.j2 b/docs/templates/plugin.rst.j2 index 81ad0ad010..706130efc0 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 %} |