{"action":"created","comment":{"url":"https://api.github.com/repos/sgmap/api.gouv.fr/pulls/comments/78989809","id":78989809,"diff_hunk":"@@ -131,167 +131,108 @@ <h3 class=\"ui top attached header\">\n </section>\n \n <script>\n-$(document).ready(function() {\n-  var client = $.algolia.Client('MOAD3NGUET', '253f1cf2d19fbf72080b70c3a5fcd18f');\n-  var index = client.initIndex('api_gouv');\n-  var minChar = 1;\n-  var $searchDiv = $('.ui.search');\n-  var $resultDiv = $searchDiv.find('.results');\n-  var $searchInput = $searchDiv.find('.prompt');\n-  var htmlFooter = '<a href=\"{{ site.baseurl }}/api/\" class=\"action\">Explorez les {{ site.api | size }} API déjà disponibles</a>';\n-  var htmlPowerBy = '<p class=\"poweredBy\">Recherche par : <img src=\"/img/algolia_logo.svg\" alt=\"algolia\"></p>';\n-\n-  function isEnterPressed(event) {\n-    return event.keyCode === 13\n-  }\n-  function isUpPressed(event) {\n-    return event.keyCode === 38\n-  }\n-  function isDownPressed(event) {\n-    return event.keyCode === 40\n-  }\n-\n-  function followSelectedResult() {\n-    var $link = $searchDiv.find('a.result.active');\n-    if($link.length) {\n-      window.location.href = $link.attr('href');\n+var minChar = 1;\n+var htmlFooter = '<a href=\"{{ site.baseurl }}/api/\" class=\"action\">Explorez les {{ site.api | size }} API déjà disponibles</a>';\n+function escapeRegExChars(value) {\n+  return value.replace(/[|\\\\{}()[\\]^$+*?.]/g, \"\\\\$&\");\n+}\n+function spanHighlight(val) {\n+  return '<span class=\"result-highlight\">'+val+'</span>';\n+}\n+\n+function highlight(value, term) {\n+ var pattern = '(' + accentedForm(escapeRegExChars(term)) + ')';\n+ return value.replace(new RegExp(pattern, 'gi'), spanHighlight('$1'));\n+}\n+\n+function accentedForm(str) {\n+ var accentedForms = {\n+   'e': 'éèêë',\n+   'a': 'àáâ',\n+   'i': 'îï',\n+   'c': 'ç',\n+   'o': 'ôö',\n+   'u': 'ûüù'","path":"index.html","position":49,"original_position":49,"commit_id":"c0cb560f955ed40c63a0a276592070cd98f9f924","original_commit_id":"c0cb560f955ed40c63a0a276592070cd98f9f924","user":{"login":"l-vincent-l","id":2757318,"avatar_url":"https://avatars.githubusercontent.com/u/2757318?v=3","gravatar_id":"","url":"https://api.github.com/users/l-vincent-l","html_url":"https://github.com/l-vincent-l","followers_url":"https://api.github.com/users/l-vincent-l/followers","following_url":"https://api.github.com/users/l-vincent-l/following{/other_user}","gists_url":"https://api.github.com/users/l-vincent-l/gists{/gist_id}","starred_url":"https://api.github.com/users/l-vincent-l/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/l-vincent-l/subscriptions","organizations_url":"https://api.github.com/users/l-vincent-l/orgs","repos_url":"https://api.github.com/users/l-vincent-l/repos","events_url":"https://api.github.com/users/l-vincent-l/events{/privacy}","received_events_url":"https://api.github.com/users/l-vincent-l/received_events","type":"User","site_admin":false},"body":"On a envie de tout mettre ?","created_at":"2016-09-15T15:20:20Z","updated_at":"2016-09-15T15:20:20Z","html_url":"https://github.com/sgmap/api.gouv.fr/pull/172#discussion_r78989809","pull_request_url":"https://api.github.com/repos/sgmap/api.gouv.fr/pulls/172","_links":{"self":{"href":"https://api.github.com/repos/sgmap/api.gouv.fr/pulls/comments/78989809"},"html":{"href":"https://github.com/sgmap/api.gouv.fr/pull/172#discussion_r78989809"},"pull_request":{"href":"https://api.github.com/repos/sgmap/api.gouv.fr/pulls/172"}}},"pull_request":{"url":"https://api.github.com/repos/sgmap/api.gouv.fr/pulls/172","id":84511729,"html_url":"https://github.com/sgmap/api.gouv.fr/pull/172","diff_url":"https://github.com/sgmap/api.gouv.fr/pull/172.diff","patch_url":"https://github.com/sgmap/api.gouv.fr/pull/172.patch","issue_url":"https://api.github.com/repos/sgmap/api.gouv.fr/issues/172","number":172,"state":"open","locked":false,"title":"Replace algolia by semantic-ui search","user":{"login":"l-vincent-l","id":2757318,"avatar_url":"https://avatars.githubusercontent.com/u/2757318?v=3","gravatar_id":"","url":"https://api.github.com/users/l-vincent-l","html_url":"https://github.com/l-vincent-l","followers_url":"https://api.github.com/users/l-vincent-l/followers","following_url":"https://api.github.com/users/l-vincent-l/following{/other_user}","gists_url":"https://api.github.com/users/l-vincent-l/gists{/gist_id}","starred_url":"https://api.github.com/users/l-vincent-l/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/l-vincent-l/subscriptions","organizations_url":"https://api.github.com/users/l-vincent-l/orgs","repos_url":"https://api.github.com/users/l-vincent-l/repos","events_url":"https://api.github.com/users/l-vincent-l/events{/privacy}","received_events_url":"https://api.github.com/users/l-vincent-l/received_events","type":"User","site_admin":false},"body":"This should close #170\r\n\r\nPremière PR pour un front \\o/\r\nc'est donc à tester...\r\n\r\nLa principale différence entre cette PR et le fonctionnement actuel en production est l'absence de paramètre boost sur le titre des API.\r\nNous avons actuellement 11 APIs, l'utilisateur devrait pouvoir s'y retrouver.","created_at":"2016-09-08T16:35:38Z","updated_at":"2016-09-15T15:20:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5af9f4b80a5a0c0322c1181959bd55232e9bb41a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sgmap/api.gouv.fr/pulls/172/commits","review_comments_url":"https://api.github.com/repos/sgmap/api.gouv.fr/pulls/172/comments","review_comment_url":"https://api.github.com/repos/sgmap/api.gouv.fr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sgmap/api.gouv.fr/issues/172/comments","statuses_url":"https://api.github.com/repos/sgmap/api.gouv.fr/statuses/c0cb560f955ed40c63a0a276592070cd98f9f924","head":{"label":"l-vincent-l:remove_algolia","ref":"remove_algolia","sha":"c0cb560f955ed40c63a0a276592070cd98f9f924","user":{"login":"l-vincent-l","id":2757318,"avatar_url":"https://avatars.githubusercontent.com/u/2757318?v=3","gravatar_id":"","url":"https://api.github.com/users/l-vincent-l","html_url":"https://github.com/l-vincent-l","followers_url":"https://api.github.com/users/l-vincent-l/followers","following_url":"https://api.github.com/users/l-vincent-l/following{/other_user}","gists_url":"https://api.github.com/users/l-vincent-l/gists{/gist_id}","starred_url":"https://api.github.com/users/l-vincent-l/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/l-vincent-l/subscriptions","organizations_url":"https://api.github.com/users/l-vincent-l/orgs","repos_url":"https://api.github.com/users/l-vincent-l/repos","events_url":"https://api.github.com/users/l-vincent-l/events{/privacy}","received_events_url":"https://api.github.com/users/l-vincent-l/received_events","type":"User","site_admin":false},"repo":{"id":67720501,"name":"api.gouv.fr","full_name":"l-vincent-l/api.gouv.fr","owner":{"login":"l-vincent-l","id":2757318,"avatar_url":"https://avatars.githubusercontent.com/u/2757318?v=3","gravatar_id":"","url":"https://api.github.com/users/l-vincent-l","html_url":"https://github.com/l-vincent-l","followers_url":"https://api.github.com/users/l-vincent-l/followers","following_url":"https://api.github.com/users/l-vincent-l/following{/other_user}","gists_url":"https://api.github.com/users/l-vincent-l/gists{/gist_id}","starred_url":"https://api.github.com/users/l-vincent-l/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/l-vincent-l/subscriptions","organizations_url":"https://api.github.com/users/l-vincent-l/orgs","repos_url":"https://api.github.com/users/l-vincent-l/repos","events_url":"https://api.github.com/users/l-vincent-l/events{/privacy}","received_events_url":"https://api.github.com/users/l-vincent-l/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/l-vincent-l/api.gouv.fr","description":"Liste les API disponibles au sein de l'administration Français","fork":true,"url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr","forks_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/forks","keys_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/teams","hooks_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/hooks","issue_events_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/issues/events{/number}","events_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/events","assignees_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/assignees{/user}","branches_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/branches{/branch}","tags_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/tags","blobs_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/git/refs{/sha}","trees_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/statuses/{sha}","languages_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/languages","stargazers_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/stargazers","contributors_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/contributors","subscribers_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/subscribers","subscription_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/subscription","commits_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/commits{/sha}","git_commits_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/git/commits{/sha}","comments_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/comments{/number}","issue_comment_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/issues/comments{/number}","contents_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/contents/{+path}","compare_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/merges","archive_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/downloads","issues_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/issues{/number}","pulls_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/pulls{/number}","milestones_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/milestones{/number}","notifications_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/labels{/name}","releases_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/releases{/id}","deployments_url":"https://api.github.com/repos/l-vincent-l/api.gouv.fr/deployments","created_at":"2016-09-08T16:24:24Z","updated_at":"2016-09-08T16:24:25Z","pushed_at":"2016-09-15T10:09:56Z","git_url":"git://github.com/l-vincent-l/api.gouv.fr.git","ssh_url":"git@github.com:l-vincent-l/api.gouv.fr.git","clone_url":"https://github.com/l-vincent-l/api.gouv.fr.git","svn_url":"https://github.com/l-vincent-l/api.gouv.fr","homepage":"https://api.gouv.fr","size":4319,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"sgmap:gh-pages","ref":"gh-pages","sha":"d4fc812fbd29db5ddf91dc7a9639238d29973d03","user":{"login":"sgmap","id":7874148,"avatar_url":"https://avatars.githubusercontent.com/u/7874148?v=3","gravatar_id":"","url":"https://api.github.com/users/sgmap","html_url":"https://github.com/sgmap","followers_url":"https://api.github.com/users/sgmap/followers","following_url":"https://api.github.com/users/sgmap/following{/other_user}","gists_url":"https://api.github.com/users/sgmap/gists{/gist_id}","starred_url":"https://api.github.com/users/sgmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgmap/subscriptions","organizations_url":"https://api.github.com/users/sgmap/orgs","repos_url":"https://api.github.com/users/sgmap/repos","events_url":"https://api.github.com/users/sgmap/events{/privacy}","received_events_url":"https://api.github.com/users/sgmap/received_events","type":"Organization","site_admin":false},"repo":{"id":52606753,"name":"api.gouv.fr","full_name":"sgmap/api.gouv.fr","owner":{"login":"sgmap","id":7874148,"avatar_url":"https://avatars.githubusercontent.com/u/7874148?v=3","gravatar_id":"","url":"https://api.github.com/users/sgmap","html_url":"https://github.com/sgmap","followers_url":"https://api.github.com/users/sgmap/followers","following_url":"https://api.github.com/users/sgmap/following{/other_user}","gists_url":"https://api.github.com/users/sgmap/gists{/gist_id}","starred_url":"https://api.github.com/users/sgmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgmap/subscriptions","organizations_url":"https://api.github.com/users/sgmap/orgs","repos_url":"https://api.github.com/users/sgmap/repos","events_url":"https://api.github.com/users/sgmap/events{/privacy}","received_events_url":"https://api.github.com/users/sgmap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sgmap/api.gouv.fr","description":"Liste les API disponibles au sein de l'administration Français","fork":false,"url":"https://api.github.com/repos/sgmap/api.gouv.fr","forks_url":"https://api.github.com/repos/sgmap/api.gouv.fr/forks","keys_url":"https://api.github.com/repos/sgmap/api.gouv.fr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sgmap/api.gouv.fr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sgmap/api.gouv.fr/teams","hooks_url":"https://api.github.com/repos/sgmap/api.gouv.fr/hooks","issue_events_url":"https://api.github.com/repos/sgmap/api.gouv.fr/issues/events{/number}","events_url":"https://api.github.com/repos/sgmap/api.gouv.fr/events","assignees_url":"https://api.github.com/repos/sgmap/api.gouv.fr/assignees{/user}","branches_url":"https://api.github.com/repos/sgmap/api.gouv.fr/branches{/branch}","tags_url":"https://api.github.com/repos/sgmap/api.gouv.fr/tags","blobs_url":"https://api.github.com/repos/sgmap/api.gouv.fr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sgmap/api.gouv.fr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sgmap/api.gouv.fr/git/refs{/sha}","trees_url":"https://api.github.com/repos/sgmap/api.gouv.fr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sgmap/api.gouv.fr/statuses/{sha}","languages_url":"https://api.github.com/repos/sgmap/api.gouv.fr/languages","stargazers_url":"https://api.github.com/repos/sgmap/api.gouv.fr/stargazers","contributors_url":"https://api.github.com/repos/sgmap/api.gouv.fr/contributors","subscribers_url":"https://api.github.com/repos/sgmap/api.gouv.fr/subscribers","subscription_url":"https://api.github.com/repos/sgmap/api.gouv.fr/subscription","commits_url":"https://api.github.com/repos/sgmap/api.gouv.fr/commits{/sha}","git_commits_url":"https://api.github.com/repos/sgmap/api.gouv.fr/git/commits{/sha}","comments_url":"https://api.github.com/repos/sgmap/api.gouv.fr/comments{/number}","issue_comment_url":"https://api.github.com/repos/sgmap/api.gouv.fr/issues/comments{/number}","contents_url":"https://api.github.com/repos/sgmap/api.gouv.fr/contents/{+path}","compare_url":"https://api.github.com/repos/sgmap/api.gouv.fr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sgmap/api.gouv.fr/merges","archive_url":"https://api.github.com/repos/sgmap/api.gouv.fr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sgmap/api.gouv.fr/downloads","issues_url":"https://api.github.com/repos/sgmap/api.gouv.fr/issues{/number}","pulls_url":"https://api.github.com/repos/sgmap/api.gouv.fr/pulls{/number}","milestones_url":"https://api.github.com/repos/sgmap/api.gouv.fr/milestones{/number}","notifications_url":"https://api.github.com/repos/sgmap/api.gouv.fr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sgmap/api.gouv.fr/labels{/name}","releases_url":"https://api.github.com/repos/sgmap/api.gouv.fr/releases{/id}","deployments_url":"https://api.github.com/repos/sgmap/api.gouv.fr/deployments","created_at":"2016-02-26T13:38:06Z","updated_at":"2016-09-13T16:59:39Z","pushed_at":"2016-09-15T10:09:56Z","git_url":"git://github.com/sgmap/api.gouv.fr.git","ssh_url":"git@github.com:sgmap/api.gouv.fr.git","clone_url":"https://github.com/sgmap/api.gouv.fr.git","svn_url":"https://github.com/sgmap/api.gouv.fr","homepage":"https://api.gouv.fr","size":5665,"stargazers_count":44,"watchers_count":44,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":18,"mirror_url":null,"open_issues_count":12,"forks":18,"open_issues":12,"watchers":44,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/sgmap/api.gouv.fr/pulls/172"},"html":{"href":"https://github.com/sgmap/api.gouv.fr/pull/172"},"issue":{"href":"https://api.github.com/repos/sgmap/api.gouv.fr/issues/172"},"comments":{"href":"https://api.github.com/repos/sgmap/api.gouv.fr/issues/172/comments"},"review_comments":{"href":"https://api.github.com/repos/sgmap/api.gouv.fr/pulls/172/comments"},"review_comment":{"href":"https://api.github.com/repos/sgmap/api.gouv.fr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sgmap/api.gouv.fr/pulls/172/commits"},"statuses":{"href":"https://api.github.com/repos/sgmap/api.gouv.fr/statuses/c0cb560f955ed40c63a0a276592070cd98f9f924"}}}}
{"actor":{"display_login":"l-vincent-l"}}