You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 14, 2024. It is now read-only.
Community Ansible documentation wants to add semantic markup within the module/plugin DOCUMENTATION strings. This gives us improved flexibility on how we display this information.
Additional Information
Background
This started with a general dissatisfaction on how some of the module options and parameters are displayed on docs.ansible.com (what is bold, what is italics, monospace, etc) and the inherent inflexibility of our current markup options.
Primary goal - To improve the visual aid that helps readers determine what the differences. Secondary goal - Do this in such a way that we do not have to touch the code in ansible/ansible again if we decide we need to display this information in a different way. Solution - Introduce a light level of semantic markup, where the developer 'marks' the content for what it is (module, value, option, etc) instead of how it should display (bold, italics, monospace, etc). This leaves the visual aspect to separate code we can update at will.
O(key) and O(key=value) for option names, with or without values
V(value) for standalone option values
E(env_var) for environment variables
P(FQCN#plugintype) for plugin references
Existing markup macros will remain, including:
M(FQCN) for module references
C(code) for other monospace text such as linux commands
B(bold_text) and I(italic_text) for other words or phrases an author wants to emphasize
These added macros may impact other projects, such as Galaxy-ng/Automation Hub, ansible-navigator, possibly the vscode plugin, and the collection_prep script used by some collections to generate local rst docs files.