Files
MapLibreParticleLab/ios/docs/install_docs.sh
2015-05-11 13:01:09 -07:00

29 lines
716 B
Bash
Executable File

#!/usr/bin/env bash
if [ -z `which appledoc` ]; then
echo "Unable to find appledoc. Consider installing it from source or Homebrew."
exit 1
fi
OUTPUT="/tmp/`uuidgen`"
VERSION=$( git tag -l ios\* --sort -v:refname | sed -n '1p' | sed 's/ios-v//' )
echo "Creating new docs for ${VERSION}..."
echo
README="/tmp/GL-README.md"
cat ../README.md > ${README}
echo >> ${README}
echo -n "#" >> ${README}
cat ../../CHANGELOG.md >> ${README}
appledoc \
--output ${OUTPUT} \
--project-name "Mapbox GL for iOS ${VERSION}" \
--project-company Mapbox \
--create-docset \
--company-id com.mapbox \
--ignore ../../include/mbgl/ios/private \
--index-desc ${README} \
../../include/mbgl/ios