소스 검색

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

* Automated using https://github.com/myii/ssf-formula/pull/404
pull/55/head
Imran Iqbal 2 년 전
부모
커밋
c576fa4db3
No account linked to committer's email address
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…
취소
저장