diff --git a/build_docs.sh b/build_docs.sh index 2aa9d18..e8ab0d5 100755 --- a/build_docs.sh +++ b/build_docs.sh @@ -10,10 +10,10 @@ mv zxing-lite/build/dokka/html/* docs/api # Copy in special files that GitHub wants in the project root. GITHUB_URL=https://github.com/jenly1314/ZXingLite/ -sed '//q' README.md > docs/index.md -sed -i 's|app/src/main/ic_launcher-web.png|($(GITHUB_URL)blob/master/app/src/main/ic_launcher-web.png|g' docs/index.md -sed -i 's|[Image](GIF.gif)|[Image]($(GITHUB_URL)blob/master/GIF.gif)|g' docs/index.md -sed -i 's|[app](app)|[app]($(GITHUB_URL)blob/master/app)|g' docs/index.md +sed "//q" README.md > docs/index.md +sed -i "s|app/src/main/ic_launcher-web.png|${GITHUB_URL}blob/master/app/src/main/ic_launcher-web.png|g" docs/index.md +sed -i "s|[Image](GIF.gif)|[Image](${GITHUB_URL}blob/master/GIF.gif)|g" docs/index.md +sed -i "s|[app](app)|[app](${GITHUB_URL}blob/master/app)|g" docs/index.md cat CHANGELOG.md | grep -v '## 版本日志' > docs/changelog.md # Build the site locally