chore(semantic-release): replace broken m2r with m2r2 [skip ci]

* Automated using https://github.com/myii/ssf-formula/pull/404
This commit is contained in:
Imran Iqbal 2022-01-17 08:10:27 +00:00
parent ea4b5157e6
commit 2da1dc1f3c
No known key found for this signature in database
GPG Key ID: 6D8629439D2B7819

View File

@ -7,16 +7,16 @@ sed -i -e "s_^\(version:\).*_\1 ${1}_" FORMULA
############################################################################### ###############################################################################
# (B) Use `m2r` to convert automatically produced `.md` docs to `.rst` # (B) Use `m2r2` to convert automatically produced `.md` docs to `.rst`
############################################################################### ###############################################################################
# Install `m2r` # Install `m2r2`
pip3 install m2r pip3 install m2r2
# Copy and then convert the `.md` docs # Copy and then convert the `.md` docs
cp ./*.md docs/ cp ./*.md docs/
cd docs/ || exit cd docs/ || exit
m2r --overwrite ./*.md m2r2 --overwrite ./*.md
# Change excess `H1` headings to `H2` in converted `CHANGELOG.rst` # Change excess `H1` headings to `H2` in converted `CHANGELOG.rst`
sed -i -e '/^=.*$/s/=/-/g' CHANGELOG.rst sed -i -e '/^=.*$/s/=/-/g' CHANGELOG.rst