Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

[Associated vote ended on 2023-03-09] Include semantic markup in plugin DOCUMENTATION stringsΒ #53

@samccann

Description

@samccann

Summary

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.

Specific changes
The community decided on the following additions:

  • 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.

For more complete details and WIP PRs, see ansible/ansible#75054.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions