{"action":"created","issue":{"url":"https://api.github.com/repos/ember-learn/guias/issues/1","repository_url":"https://api.github.com/repos/ember-learn/guias","labels_url":"https://api.github.com/repos/ember-learn/guias/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ember-learn/guias/issues/1/comments","events_url":"https://api.github.com/repos/ember-learn/guias/issues/1/events","html_url":"https://github.com/ember-learn/guias/issues/1","id":140443009,"number":1,"title":"Improve guide importing script","user":{"login":"locks","id":32344,"avatar_url":"https://avatars.githubusercontent.com/u/32344?v=3","gravatar_id":"","url":"https://api.github.com/users/locks","html_url":"https://github.com/locks","followers_url":"https://api.github.com/users/locks/followers","following_url":"https://api.github.com/users/locks/following{/other_user}","gists_url":"https://api.github.com/users/locks/gists{/gist_id}","starred_url":"https://api.github.com/users/locks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/locks/subscriptions","organizations_url":"https://api.github.com/users/locks/orgs","repos_url":"https://api.github.com/users/locks/repos","events_url":"https://api.github.com/users/locks/events{/privacy}","received_events_url":"https://api.github.com/users/locks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-03-13T03:53:41Z","updated_at":"2016-10-20T16:34:28Z","closed_at":null,"body":"I'm currently rendering markdown for each guide, but that leads to a sslliigghhtt problem, which is only having access to the latest version's markdown. I'd like not to incur the extra processing of rendering a markdown, so I'm thinking of rendering HTML instead.\r\n\r\nBut for that I need a script to extract the necessary HTML and upload to couchdb.\r\n\r\nhttps://github.com/mswanson/ember-guides-markdown/blob/master/lib/import_version.rb here's a first version\r\nhttps://github.com/emberjs/guides.emberjs.com/tree/master/snapshots here's the files to extract from\r\n\r\nThere's a slight problem that < v2.2.0 the HTML is different. Relevant sections:\r\n- https://github.com/emberjs/guides.emberjs.com/blob/master/snapshots/v2.1.0/addons-and-dependencies/managing-dependencies/index.html#L72\r\n- https://github.com/emberjs/guides.emberjs.com/blob/master/snapshots/v2.4.0/addons-and-dependencies/managing-dependencies/index.html#L85\r\n\r\n## CouchDB document\r\nNaming scheme: `guide-${language}-vx.x.x-${section}-${guide}`, being `language` in the `[a-z]{2}-[A-Z]{2}` format, and `section` and `guide` hyphenized if multi-word.\r\n\r\nKeys: `type`, `language`, `version`, `section`, `guide`, `title`, `html`\r\n\r\nExample:\r\n\r\n```\r\n{\r\n   \"_id\": \"guide-en-US-v2.3.0-addons-and-dependencies-managing-dependencies\",\r\n   \"_rev\": \"1-8d2e9fd06b2260bed20e649931f70c7f\",\r\n   \"type\": \"guide\",\r\n   \"version\": \"v2.3.0\",\r\n   \"section\": \"addons-and-dependencies\",\r\n   \"guide\": \"managing-dependencies\",\r\n   \"title\": \"Managing Dependencies\",\r\n   \"language\": \"en-US\",\r\n   \"html\": \"…\"\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/ember-learn/guias/issues/comments/255158743","html_url":"https://github.com/ember-learn/guias/issues/1#issuecomment-255158743","issue_url":"https://api.github.com/repos/ember-learn/guias/issues/1","id":255158743,"user":{"login":"dweremeichik","id":4079608,"avatar_url":"https://avatars.githubusercontent.com/u/4079608?v=3","gravatar_id":"","url":"https://api.github.com/users/dweremeichik","html_url":"https://github.com/dweremeichik","followers_url":"https://api.github.com/users/dweremeichik/followers","following_url":"https://api.github.com/users/dweremeichik/following{/other_user}","gists_url":"https://api.github.com/users/dweremeichik/gists{/gist_id}","starred_url":"https://api.github.com/users/dweremeichik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dweremeichik/subscriptions","organizations_url":"https://api.github.com/users/dweremeichik/orgs","repos_url":"https://api.github.com/users/dweremeichik/repos","events_url":"https://api.github.com/users/dweremeichik/events{/privacy}","received_events_url":"https://api.github.com/users/dweremeichik/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T16:34:27Z","updated_at":"2016-10-20T16:34:27Z","body":"Currently you use `\"type\": \"guide\"` to split up your doc types, ember pouch uses the id for this. The id is based on the model name, for example, if you had a model named \"guide\" an id for that might be \"guide_2_07c7bed0d16968d166a6343deb6ac315\"\r\n\r\nSee the following links:\r\n- [Id format](https://github.com/nolanlawson/relational-pouch/issues/60)\r\n\r\n- [Transforming your current data](https://github.com/nolanlawson/ember-pouch/issues/53)\r\n"}}
{"actor":{"display_login":"dweremeichik"}}