{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/3181","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-js","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/3181/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/3181/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/3181/events","html_url":"https://github.com/mapbox/mapbox-gl-js/pull/3181","id":176756405,"number":3181,"title":"Improve visual organization of examples","user":{"login":"colleenmcginnis","id":10479155,"avatar_url":"https://avatars.githubusercontent.com/u/10479155?v=3","gravatar_id":"","url":"https://api.github.com/users/colleenmcginnis","html_url":"https://github.com/colleenmcginnis","followers_url":"https://api.github.com/users/colleenmcginnis/followers","following_url":"https://api.github.com/users/colleenmcginnis/following{/other_user}","gists_url":"https://api.github.com/users/colleenmcginnis/gists{/gist_id}","starred_url":"https://api.github.com/users/colleenmcginnis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colleenmcginnis/subscriptions","organizations_url":"https://api.github.com/users/colleenmcginnis/orgs","repos_url":"https://api.github.com/users/colleenmcginnis/repos","events_url":"https://api.github.com/users/colleenmcginnis/events{/privacy}","received_events_url":"https://api.github.com/users/colleenmcginnis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-13T21:35:34Z","updated_at":"2016-09-15T23:01:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/pulls/3181","html_url":"https://github.com/mapbox/mapbox-gl-js/pull/3181","diff_url":"https://github.com/mapbox/mapbox-gl-js/pull/3181.diff","patch_url":"https://github.com/mapbox/mapbox-gl-js/pull/3181.patch"},"body":"Proposes a new system for organizing the list of Mapbox GL JS examples based on discussion in #2242 . Open to any suggestions on category names, order, which category a particular example falls in, and structure using jekyll. *I would also like to expand the search to include common keywords (not just titles) in future iterations.* \r\n\r\n![image](https://cloud.githubusercontent.com/assets/10479155/18492444/3aa94b86-79c0-11e6-972b-0105bc85fdae.png)\r\n\r\n**Changes**: \r\n1.  Search bar at the top filters by example title\r\n2.  Examples are organized into categories/subcategories (full list of examples in each category/subcategory [here](https://gist.github.com/colleenmcginnis/917a5d543e800d1fd1c5d4fee235f9c1)):\r\n  - Getting started\r\n    - Add a style\r\n    - Add a layer\r\n  - Dynamic styling\r\n    - Style points\r\n    - Style lines\r\n    - Style polygons\r\n  - User interaction\r\n    - Popups\r\n    - Filter\r\n  - Animations\r\n  - Plugins\r\n    - Geocoding\r\n    - Directions\r\n    - GL Draw\r\n  - Change map options\r\n  - Misc\r\n\r\nChanges to **_layouts** and **_posts** were modeled after the equivalent files for [mapbox.js](https://github.com/mapbox/mapbox.js/blob/mb-pages/docs/_layouts/pages.html). The **pages** layout now has all example categories/subcategories in the front matter (like in the page for mapbox.js examples), but I'm open to suggestions to make this easier to work with! Each example has tags in the front matter, like this: \r\n```\r\n---\r\nlayout: example\r\ncategory: example\r\ntitle: Display a map\r\ndescription: Initialize a map in an HTML element with Mapbox GL JS.\r\npermalink: /examples/\r\ntags:\r\n    - get-started\r\n---\r\n```\r\n\r\n## Checklist\r\nReview by @mollymerp @lucaswoj @mapbox/support, specifically looking for feedback on: \r\n - [ ] categories/subcategories\r\n - [ ] assignment of individual examples \r\n - [ ] use of jekyll\r\n - [ ] general feedback on visual organization"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/comments/247478659","html_url":"https://github.com/mapbox/mapbox-gl-js/pull/3181#issuecomment-247478659","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/3181","id":247478659,"user":{"login":"lucaswoj","id":281306,"avatar_url":"https://avatars.githubusercontent.com/u/281306?v=3","gravatar_id":"","url":"https://api.github.com/users/lucaswoj","html_url":"https://github.com/lucaswoj","followers_url":"https://api.github.com/users/lucaswoj/followers","following_url":"https://api.github.com/users/lucaswoj/following{/other_user}","gists_url":"https://api.github.com/users/lucaswoj/gists{/gist_id}","starred_url":"https://api.github.com/users/lucaswoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucaswoj/subscriptions","organizations_url":"https://api.github.com/users/lucaswoj/orgs","repos_url":"https://api.github.com/users/lucaswoj/repos","events_url":"https://api.github.com/users/lucaswoj/events{/privacy}","received_events_url":"https://api.github.com/users/lucaswoj/received_events","type":"User","site_admin":false},"created_at":"2016-09-15T23:01:50Z","updated_at":"2016-09-15T23:01:50Z","body":"Got it. Thanks @colleenmcginnis. Updated the docs (and my local Jekyll version) in https://github.com/mapbox/mapbox-gl-js/pull/3181/commits/849f93d6101ae6ab545c457d0f996dd4a922bdf6"}}
{"actor":{"display_login":"lucaswoj"}}