瀏覽代碼

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

* Automated using https://github.com/myii/ssf-formula/pull/404
tags/v3.0.2
Imran Iqbal 2 年之前
父節點
當前提交
888d8b9310
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. +4
    -4
      pre-commit_semantic-release.sh

+ 4
- 4
pre-commit_semantic-release.sh 查看文件

@@ -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

Loading…
取消
儲存