This commit is contained in:
Jenly
2024-08-18 15:42:33 +08:00
parent 9cd811ebf8
commit d325c1404e
2 changed files with 7 additions and 4 deletions

View File

@@ -10,11 +10,14 @@ 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/
echo $GITHUB_URL
sed "/<!-- end -->/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 -i "s|app/src/main/ic_launcher-web.png|ic_logo.png|g" docs/index.md
sed -i "s|(app)|(${GITHUB_URL}blob/master/app)|g" docs/index.md
cat CHANGELOG.md | grep -v '## 版本日志' > docs/changelog.md
cp GIF.gif docs/GIF.gif
cp app/src/main/ic_launcher-web.png docs/ic_logo.png
# Build the site locally
mkdocs build

View File

@@ -1,7 +1,7 @@
# Project information
site_name: ZXingLite
site_url: https://jenly1314.github.io/ZXingLite/
site_description: "CameraScan for Android"
site_description: "ZXingLite for Android"
site_author: Jenly
remote_branch: gh-pages
edit_uri: ""