{"action":"created","issue":{"url":"https://api.github.com/repos/sphinx-gallery/sphinx-gallery/issues/233","repository_url":"https://api.github.com/repos/sphinx-gallery/sphinx-gallery","labels_url":"https://api.github.com/repos/sphinx-gallery/sphinx-gallery/issues/233/labels{/name}","comments_url":"https://api.github.com/repos/sphinx-gallery/sphinx-gallery/issues/233/comments","events_url":"https://api.github.com/repos/sphinx-gallery/sphinx-gallery/issues/233/events","html_url":"https://github.com/sphinx-gallery/sphinx-gallery/pull/233","id":226153700,"number":233,"title":"[WIP] adding folder sorting","user":{"login":"choldgraf","id":1839645,"avatar_url":"https://avatars2.githubusercontent.com/u/1839645?v=3","gravatar_id":"","url":"https://api.github.com/users/choldgraf","html_url":"https://github.com/choldgraf","followers_url":"https://api.github.com/users/choldgraf/followers","following_url":"https://api.github.com/users/choldgraf/following{/other_user}","gists_url":"https://api.github.com/users/choldgraf/gists{/gist_id}","starred_url":"https://api.github.com/users/choldgraf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choldgraf/subscriptions","organizations_url":"https://api.github.com/users/choldgraf/orgs","repos_url":"https://api.github.com/users/choldgraf/repos","events_url":"https://api.github.com/users/choldgraf/events{/privacy}","received_events_url":"https://api.github.com/users/choldgraf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":46,"created_at":"2017-05-04T00:54:08Z","updated_at":"2017-06-01T00:57:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sphinx-gallery/sphinx-gallery/pulls/233","html_url":"https://github.com/sphinx-gallery/sphinx-gallery/pull/233","diff_url":"https://github.com/sphinx-gallery/sphinx-gallery/pull/233.diff","patch_url":"https://github.com/sphinx-gallery/sphinx-gallery/pull/233.patch"},"body":"This is a riff off of @lesteve 's suggestion. Basically it adds an extra configuration option that takes a dictionary of `example_dir: list_of_folder_names` pairs.\r\n\r\nIt will sort folders first with the explicit ordering of `list_of_folder_names` for that `example_dir`, and if any other folders are not explicitly listed in the explicit sort, it will append them to the end of the sort.\r\n\r\nLMK if this is generally a good approach and then I can add tests + make changes."},"comment":{"url":"https://api.github.com/repos/sphinx-gallery/sphinx-gallery/issues/comments/305359206","html_url":"https://github.com/sphinx-gallery/sphinx-gallery/pull/233#issuecomment-305359206","issue_url":"https://api.github.com/repos/sphinx-gallery/sphinx-gallery/issues/233","id":305359206,"user":{"login":"choldgraf","id":1839645,"avatar_url":"https://avatars2.githubusercontent.com/u/1839645?v=3","gravatar_id":"","url":"https://api.github.com/users/choldgraf","html_url":"https://github.com/choldgraf","followers_url":"https://api.github.com/users/choldgraf/followers","following_url":"https://api.github.com/users/choldgraf/following{/other_user}","gists_url":"https://api.github.com/users/choldgraf/gists{/gist_id}","starred_url":"https://api.github.com/users/choldgraf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choldgraf/subscriptions","organizations_url":"https://api.github.com/users/choldgraf/orgs","repos_url":"https://api.github.com/users/choldgraf/repos","events_url":"https://api.github.com/users/choldgraf/events{/privacy}","received_events_url":"https://api.github.com/users/choldgraf/received_events","type":"User","site_admin":false},"created_at":"2017-06-01T00:57:36Z","updated_at":"2017-06-01T00:57:36Z","body":"fwiw my preference would be to do the above thing, but have people supply `gallery_dir: key` pairs, rather than having a key that takes a dictionary of `gallery_dir: list_of_folder` pairs. It'd be simpler to implement since we wouldn't need to change any of the machinery of how we iterate through folders, and would be more extensible if people want to do different things with different folders. That said I don't feel super super strongly about it, so if everybody agrees on a different approach I can do that..."}}
{"actor":{"display_login":"choldgraf"}}