summaryrefslogtreecommitdiff
path: root/ios
diff options
context:
space:
mode:
authorJustin R. Miller <incanus@users.noreply.github.com>2015-05-11 13:29:54 -0700
committerJustin R. Miller <incanus@codesorcery.net>2015-05-11 15:31:37 -0700
commitb67ce2b09a4552edaccd075ff4deb9293f33a922 (patch)
tree2a3c62f4efbc5e75ded150bbfee3e964d6721460 /ios
parent93a5b71af9fc77f7fb8620af1a7216d7e10d8e01 (diff)
downloadqtlocation-mapboxgl-b67ce2b09a4552edaccd075ff4deb9293f33a922.tar.gz
Merge pull request #1508 from mapbox/1503-add-changelog
refs #1503: add changelog to appledoc
Diffstat (limited to 'ios')
-rw-r--r--ios/README.md67
-rwxr-xr-xios/docs/install_docs.sh15
-rwxr-xr-xios/docs/remove_docs.sh2
3 files changed, 14 insertions, 70 deletions
diff --git a/ios/README.md b/ios/README.md
index 2af03691e2..169da5ff89 100644
--- a/ios/README.md
+++ b/ios/README.md
@@ -1,68 +1,5 @@
# Mapbox GL for iOS
-Use or edit this project to get access to vector maps (via [Mapbox Vector Tiles](https://www.mapbox.com/blog/vector-tiles)) and dynamic OpenGL-based styling in your iOS apps by using `MGLMapView`.
+An open source OpenGL-based vector map solution for iOS with full styling capabilities and Cocoa bindings.
-![](./screenshot.png)
-
-## Installation
-
-Currently in flux. See the parent `mapbox-gl-native` project `README` for details on building this library yourself.
-
-Static and dynamic prebuilt binaries are coming back, as is CocoaPods support.
-
-## Example usage
-
-### Objective-C
-
-```objective-c
-MGLMapView *mapView = [[MGLMapView alloc] initWithFrame:CGRectMake(0, 0, 400, 400)
- accessToken:@"<access token string>"];
-
-[mapView setCenterCoordinate:CLLocationCoordinate2DMake(28.369334, -80.743779)
- zoomLevel:13
- animated:NO];
-
-[mapView useBundledStyleNamed:@"outdoors"];
-
-[self.view addSubview:mapView];
-```
-
-### Swift
-
-```swift
-let mapView = MGLMapView(frame: CGRect(x: 0, y: 0, width: 400, height: 400),
- accessToken: "<access token string>")
-
-mapView.setCenterCoordinate(CLLocationCoordinate2D(latitude: 46.049900, longitude: -122.095678),
- zoomLevel: 12,
- animated: false)
-
-mapView.useBundledStyleNamed("outdoors")
-
-view.addSubview(mapView)
-```
-
-## Development
-
-If you'd like to contribute to this project, go up to [Mapbox GL native](https://github.com/mapbox/mapbox-gl-native) and clone the project.
-
-## Testing
-
-Currently in flux and not functioning.
-
-## Requirements
-
- * iOS 7+
- * a sense of adventure
-
-## Styling
-
-See the [online style reference](https://www.mapbox.com/mapbox-gl-style-spec/) for the latest documentation. Contained within the `MapboxGL.bundle` assets are a couple of starter styles in JSON format.
-
-The project will eventually get a programmatic styling API as well.
-
-## Related Projects
-
- * https://github.com/mapbox/mapbox-gl-style-spec
- * https://github.com/mapbox/mapbox-gl-js
- * https://github.com/mapbox/vector-tile-spec
+For more information, check out [our online overview](https://www.mapbox.com/mapbox-gl-ios/).
diff --git a/ios/docs/install_docs.sh b/ios/docs/install_docs.sh
index df1d366e6a..7d4bf279f3 100755
--- a/ios/docs/install_docs.sh
+++ b/ios/docs/install_docs.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env bash
if [ -z `which appledoc` ]; then
echo "Unable to find appledoc. Consider installing it from source or Homebrew."
@@ -8,14 +8,21 @@ 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 "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" \
+ --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
diff --git a/ios/docs/remove_docs.sh b/ios/docs/remove_docs.sh
index 09e2c1d399..747ca0a3ae 100755
--- a/ios/docs/remove_docs.sh
+++ b/ios/docs/remove_docs.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env bash
echo
echo "Removing docs from ~/Library/Developer/Shared/Documentation/DocSets..."