Authored by Justin R. Miller

add new docs scripts

  1 +#!/bin/sh
  2 +
  3 +if [ -z `which appledoc` ]; then
  4 + echo "Unable to find appledoc. Consider installing it from source or Homebrew."
  5 + exit 1
  6 +fi
  7 +
  8 +VERSION=$( git tag | sort -r | sed -n '1p' )
  9 +echo "Creating new docs for $VERSION..."
  10 +echo
  11 +
  12 +appledoc \
  13 + --output /tmp/`uuidgen` \
  14 + --project-name "Mapbox $VERSION" \
  15 + --project-company Mapbox \
  16 + --create-docset \
  17 + --company-id com.mapbox \
  18 + --ignore build \
  19 + --ignore FMDB \
  20 + --ignore GRMustache \
  21 + --ignore SMCalloutView \
  22 + --ignore .c \
  23 + --ignore .m \
  24 + --ignore RMAttributionViewController.h \
  25 + --ignore RMBingSource.h \
  26 + --ignore RMCoordinateGridSource.h \
  27 + --ignore RMDBMapSource.h \
  28 + --ignore RMFoundation.h \
  29 + --ignore RMFractalTileProjection.h \
  30 + --ignore RMGenericMapSource.h \
  31 + --ignore RMGlobalConstants.h \
  32 + --ignore RMLoadingTileView.h \
  33 + --ignore RMMapOverlayView.h \
  34 + --ignore RMMapQuestOpenAerialSource.h \
  35 + --ignore RMMapQuestOSMSource.h \
  36 + --ignore RMMapScrollView.h \
  37 + --ignore RMMapTiledLayerView.h \
  38 + --ignore RMNotifications.h \
  39 + --ignore RMOpenCycleMapSource.h \
  40 + --ignore RMOpenSeaMapLayer.h \
  41 + --ignore RMOpenSeaMapSource.h \
  42 + --ignore RMPixel.h \
  43 + --ignore RMProjection.h \
  44 + --ignore RMTile.h \
  45 + --ignore RMTileImage.h \
  46 + --ignore RMTileSourcesContainer.h \
  47 + --index-desc README.markdown \
  48 + .
  1 +#!/bin/sh
  2 +
  3 +echo
  4 +echo "Removing docs from ~/Library/Developer/Shared/Documentation/DocSets..."
  5 +echo
  6 +
  7 +rm -rfv ~/Library/Developer/Shared/Documentation/DocSets/com.mapbox.Mapbox-*