summaryrefslogtreecommitdiff
path: root/ios/docs/install_docs.sh
blob: 4d116c033283f9a69363a4e178fc1c176d02a59d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/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 | 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 \
    --ignore app \
    --ignore dist \
    --ignore pkg \
    --ignore test \
    --ignore .m \
    --ignore .mm \
    .