summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorToshio Kuratomi <a.badger@gmail.com>2018-03-15 18:29:03 +0100
committerToshio Kuratomi <a.badger@gmail.com>2018-04-04 23:31:14 +0200
commit8f1b5fc47b638ab74a2c6e5d6471062877cda40d (patch)
tree25069dd608fe469a4f307d46f8cd6d3885936367 /docs
parentUpdate docs and version definitions for the 2.4.4 and 2.5.0 releases (diff)
downloadansible-8f1b5fc47b638ab74a2c6e5d6471062877cda40d.tar.xz
ansible-8f1b5fc47b638ab74a2c6e5d6471062877cda40d.zip
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.
Diffstat (limited to 'docs')
-rw-r--r--docs/templates/plugin.rst.j23
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/templates/plugin.rst.j2 b/docs/templates/plugin.rst.j2
index 2572232c79..5bb1833114 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 %}