Skip to content

Commit

Permalink
feat(m2r): use m2r to convert automatic .md files to .rst
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Mar 3, 2019
1 parent 1a26fdd commit 0b8b0c8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
prepareCmd: 'sh ./update_FORMULA.sh ${nextRelease.version}',
}],
['@semantic-release/git', {
assets: ['*.md', 'FORMULA'],
assets: ['*.md', '*.rst', 'FORMULA'],
}],
'@semantic-release/github',
],
Expand Down
9 changes: 9 additions & 0 deletions update_FORMULA.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
#!/bin/sh
sed -i -e "s_^\(version:\).*_\1 ${1}_" FORMULA

# m2r
pip install m2r
cp *.md docs/
cd docs/
m2r --overwrite *.md
cat AUTHORS.rst
cat CHANGELOG.rst
cd ..

0 comments on commit 0b8b0c8

Please sign in to comment.