Files
salt-gitea-formula/bin/render_readme
2023-02-05 19:49:12 +01:00

9 lines
245 B
Bash
Executable File

#!/usr/bin/env sh
# This inserts the rendered state docs into the readme.
# Avoids issues with rendering the final readme on Gitea etc.
sed '/<INSERT_STATES>/{
s/<INSERT_STATES>//g
r docs/states.rst
}' docs/README.rst.tpl > docs/README.rst