mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
![]() Until now, the listings of all kinds of modules looked quite inconsistent like this: - salt.states.smtp - salt.states.snapper module - salt.states.solrcloud module - salt.states.splunk The `module` suffix is redundant anyways, so let's remove it and do some further cleanup (adjusting overline/underline usage, underline length) using the following bash script: ```bash sed -i 's|\s\+module$||g' doc/ref/*/all/*.*.rst for rst in doc/ref/*/all/*.*.rst; do # enforce consistent overline/underline usage, remove all overlines if [[ $(head -n1 "${rst}") =~ ^=+$ ]]; then sed -i -e 1d "${rst}" fi # adjust the length of the underline to the length of the module name module_name=$(head -n1 "${rst}") underline=$(for i in $(seq ${#module_name}); do echo -n "="; done) sed -i '2s|^=\+$|'"${underline}"'|g' "${rst}" done ``` |
||
---|---|---|
.. | ||
index.rst | ||
salt.tokens.localfs.rst | ||
salt.tokens.rediscluster.rst |