Skip to content

Commit

Permalink
Merge pull request #404 from myii/feat/replace-m2r-with-m2r2
Browse files Browse the repository at this point in the history
feat(pre-commit_semantic-release.sh): replace broken `m2r` with `m2r2`
  • Loading branch information
myii authored Jan 17, 2022
2 parents d3ce4ec + a9a06a1 commit 020f2e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ssf/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ ssf_node_anchors:
upstream: 'upstream'
commit:
# yamllint disable rule:line-length rule:quoted-strings
title: "ci(kitchen): remove '`'branch'`' for '`'node-formula'`' dependency [skip ci]"
body: '* Automated using https://github.com/myii/ssf-formula/pull/403'
title: "chore(semantic-release): replace broken '`'m2r'`' with '`'m2r2'`' [skip ci]"
body: '* Automated using https://github.com/myii/ssf-formula/pull/404'
# yamllint enable rule:line-length rule:quoted-strings
github:
owner: 'saltstack-formulas'
Expand Down
8 changes: 4 additions & 4 deletions ssf/files/default/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 020f2e3

Please sign in to comment.