mirror of
https://github.com/minio/minio-rs.git
synced 2025-12-06 15:26:51 +08:00
add docs build 'deploy-docs.sh' (#22)
This commit is contained in:
parent
c5f8f61bdf
commit
4da529a13f
15
deploy-docs.sh
Executable file
15
deploy-docs.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
cargo doc --all --no-deps
|
||||
rm -rf ./docs
|
||||
echo "<meta http-equiv=\"refresh\" content=\"0; url=minio\">" > target/doc/index.html
|
||||
git checkout gh-pages
|
||||
git rm --quiet -r --force --ignore-unmatch ./*
|
||||
cp -a target/doc ./docs
|
||||
git add docs/
|
||||
|
||||
echo "minio-rs.min.io" > CNAME
|
||||
git add CNAME
|
||||
|
||||
git commit --quiet --all -m "update rustdoc htmls"
|
||||
git push -u origin gh-pages
|
||||
Loading…
x
Reference in New Issue
Block a user