Ai
12 Star 21 Fork 0

Gitee 极速下载/dropwizard

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/codahale/dropwizard
克隆/下载
prepare_docs.sh 1.60 KB
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env bash
#
# Builds the documentation of the Dropwizard project for the specified
# release, copies and commits it to the local gh-pages branch.
#
# Usage: ./prepare_docs.sh v1.0.1
#
set -e
[[ "$#" -eq 0 ]] && { echo "No release branch is specified"; exit 1; }
release_branch="$1"
release_number="${release_branch:1}"
echo -e "\nGenerating Dropwizard documentation"
echo "Release branch: $release_branch"
echo "Release number: $release_number"
echo -e "\n-------------------------------"
echo "Moving to $release_branch branch"
echo "-------------------------------"
git checkout "$release_branch"
echo -e "\n-------------------------------"
echo "Generating documentation"
echo -e "-------------------------------\n"
mvn clean site
echo -e "\n-------------------------------"
echo "Staging documentation"
echo "-------------------------------"
mvn site:stage
echo -e "\n-------------------------------"
echo "Moving to the gh-pages branch"
echo -e "-------------------------------\n"
git checkout gh-pages
echo -e "\n-------------------------------"
echo "Creating a directory for documentation"
echo -e "-------------------------------\n"
mkdir "$release_number"
echo -e "\n-------------------------------"
echo "Copy documentation"
echo -e "-------------------------------\n"
cp -r target/staging/* "${release_number}"/
echo -e "\n-------------------------------"
echo "Add and commit changes to the repository"
echo -e "-------------------------------\n"
git add .
git commit -m "Add docs for Dropwizard $release_number"
echo -e "\nDone!"
echo "Please review changes and push them with if they look good"
exit $?
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/mirrors/dropwizard.git
git@gitee.com:mirrors/dropwizard.git
mirrors
dropwizard
dropwizard
master

搜索帮助