Skip to content

Commit

Permalink
chore(semantic-release): replace broken m2r with m2r2 [skip ci]
Browse files Browse the repository at this point in the history
* Automated using myii/ssf-formula#404
  • Loading branch information
myii committed Jan 17, 2022
1 parent a1e9823 commit b429181
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pre-commit_semantic-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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`
pip3 install m2r
# Install `m2r2`
pip3 install m2r2

# Copy and then convert the `.md` docs
cp ./*.md docs/
cd docs/ || exit
m2r --overwrite ./*.md
m2r2 --overwrite ./*.md

# Change excess `H1` headings to `H2` in converted `CHANGELOG.rst`
sed -i -e '/^=.*$/s/=/-/g' CHANGELOG.rst
Expand Down

0 comments on commit b429181

Please sign in to comment.