summaryrefslogtreecommitdiff
path: root/docs/bin
diff options
context:
space:
mode:
authorscottb <dharmabumstead@users.noreply.github.com>2017-12-21 01:47:39 -0800
committerGitHub <noreply@github.com>2017-12-21 01:47:39 -0800
commitf8f34c7bab5d864d2f11f0e9ef635bcf990f1010 (patch)
tree55296e0665ec6bd53ea3f4a6b0b1e6ee3ba8389b /docs/bin
parent60f3649ebd72fe4dcd424e251afbc478351c0610 (diff)
downloadansible-f8f34c7bab5d864d2f11f0e9ef635bcf990f1010.tar.gz
Moved generated module RSTs to their own directory. (#33966)
* Moved generated module RSTs to their own directory. * WIP commit - fixed conflict with conf.py exclude_patterns by renaming module RST output directory to 'module_docs'. * Added new directory to formatter module links; aded new module directory to makefile clean. * Removed illegal comment from block.
Diffstat (limited to 'docs/bin')
-rwxr-xr-xdocs/bin/plugin_formatter.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/bin/plugin_formatter.py b/docs/bin/plugin_formatter.py
index 77545c996d..2bd7267e46 100755
--- a/docs/bin/plugin_formatter.py
+++ b/docs/bin/plugin_formatter.py
@@ -58,7 +58,7 @@ from ansible.utils.display import Display
# if a module is added in a version of Ansible older than this, don't print the version added information
# in the module documentation because everyone is assumed to be running something newer than this already.
-TO_OLD_TO_BE_NOTABLE = 1.3
+TOO_OLD_TO_BE_NOTABLE = 1.3
# Get parent directory of the directory this script lives in
MODULEDIR = os.path.abspath(os.path.join(
@@ -88,7 +88,7 @@ def rst_ify(text):
try:
t = _ITALIC.sub(r'*' + r"\1" + r"*", text)
t = _BOLD.sub(r'**' + r"\1" + r"**", t)
- t = _MODULE.sub(r':ref:`' + r"\1 <\1>" + r"`", t)
+ t = _MODULE.sub(r':ref:`module_docs/' + r"\1 <\1>" + r"`", t)
t = _URL.sub(r"\1", t)
t = _CONST.sub(r'``' + r"\1" + r"``", t)
except Exception as e:
@@ -319,7 +319,7 @@ def too_old(added):
except ValueError as e:
warnings.warn("Could not parse %s: %s" % (added, str(e)))
return False
- return added_float < TO_OLD_TO_BE_NOTABLE
+ return added_float < TOO_OLD_TO_BE_NOTABLE
def process_plugins(module_map, templates, outputname, output_dir, ansible_version, plugin_type):