summaryrefslogtreecommitdiff
path: root/ios/docs/install_docs.sh
blob: cd6fcdda734b48221b87bd6bab6e2320d984152b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

if [ -z `which appledoc` ]; then
    echo "Unable to find appledoc. Consider installing it from source or Homebrew."
    exit 1
fi

VERSION=$( git tag | grep ^[0-9] | sort -r | sed -n '1p' )
echo "Creating new docs for $VERSION..."
echo

appledoc \
    --output /tmp/`uuidgen` \
    --project-name "Mapbox GL $VERSION" \
    --project-company Mapbox \
    --create-docset \
    --company-id com.mapbox \
    ../../include/mbgl/ios