mirror of
https://github.com/saltstack-formulas/sysctl-formula.git
synced 2026-08-30 23:18:44 +02:00
chore(copier): apply template copier-ssf-ciat v2.10.7
This commit is contained in:
@@ -3,20 +3,25 @@
|
||||
###############################################################################
|
||||
# (A) Update `FORMULA` with `${nextRelease.version}`
|
||||
###############################################################################
|
||||
|
||||
sed -i -e "s_^\(version:\).*_\1 ${1}_" FORMULA
|
||||
|
||||
|
||||
###############################################################################
|
||||
# (B) Use `m2r2` to convert automatically produced `.md` docs to `.rst`
|
||||
# (B) Update `AUTHORS.md`
|
||||
###############################################################################
|
||||
|
||||
# Install `m2r2`
|
||||
pip3 install m2r2
|
||||
maintainer contributor \
|
||||
--ignore-contributors dependabot[bot],renovate[bot],semantic-release-bot
|
||||
|
||||
###############################################################################
|
||||
# (C) Use `m2r` to convert automatically produced `.md` docs to `.rst`
|
||||
###############################################################################
|
||||
|
||||
# Copy and then convert the `.md` docs
|
||||
cp ./*.md docs/
|
||||
cd docs/ || exit
|
||||
m2r2 --overwrite ./*.md
|
||||
m2r --overwrite ./*.md
|
||||
|
||||
# Change excess `H1` headings to `H2` in converted `CHANGELOG.rst`
|
||||
sed -i -e '/^=.*$/s/=/-/g' CHANGELOG.rst
|
||||
|
||||
Reference in New Issue
Block a user