1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-06-08 00:27:58 +00:00
2021-01-28 04:57:11 +08:00

23 lines
301 B
Bash
Executable File

#!/usr/bin/env bash
#
# Create a ruby-gem pakcage with doc
#
# Required: rubygem, yard
set -eu
GEM_CONFIG="./jekyll-theme-chirpy.gemspec"
if [[ ! -f $GEM_CONFIG ]]; then
echo "Error: .gemspec file not found!"
exit -1
fi
if [[ -d doc ]]; then
rm -rf doc
fi
yard doc
gem build "$GEM_CONFIG"