{"action":"created","issue":{"url":"https://api.github.com/repos/purescript/purescript/issues/1041","labels_url":"https://api.github.com/repos/purescript/purescript/issues/1041/labels{/name}","comments_url":"https://api.github.com/repos/purescript/purescript/issues/1041/comments","events_url":"https://api.github.com/repos/purescript/purescript/issues/1041/events","html_url":"https://github.com/purescript/purescript/pull/1041","id":67983354,"number":1041,"title":"Integrate some of the work done in psc-pages","user":{"login":"hdgarrood","id":1270186,"avatar_url":"https://avatars.githubusercontent.com/u/1270186?v=3","gravatar_id":"","url":"https://api.github.com/users/hdgarrood","html_url":"https://github.com/hdgarrood","followers_url":"https://api.github.com/users/hdgarrood/followers","following_url":"https://api.github.com/users/hdgarrood/following{/other_user}","gists_url":"https://api.github.com/users/hdgarrood/gists{/gist_id}","starred_url":"https://api.github.com/users/hdgarrood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hdgarrood/subscriptions","organizations_url":"https://api.github.com/users/hdgarrood/orgs","repos_url":"https://api.github.com/users/hdgarrood/repos","events_url":"https://api.github.com/users/hdgarrood/events{/privacy}","received_events_url":"https://api.github.com/users/hdgarrood/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-04-13T01:36:06Z","updated_at":"2015-04-13T16:51:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/purescript/purescript/pulls/1041","html_url":"https://github.com/purescript/purescript/pull/1041","diff_url":"https://github.com/purescript/purescript/pull/1041.diff","patch_url":"https://github.com/purescript/purescript/pull/1041.patch"},"body":"Some context:\r\n\r\n* We want to be able to render documentation in at least 3 different forms: Markdown (`psc-docs`), HTML (`psc-pages`), and as an input file for Hoogle (not really \"documentation\", but the process is very similar). The code I recently contributed to psc-pages splits the rendering into two stages, which makes it easy to render documentation in different forms in this way. In fact psc-pages can currently produce both HTML and ~~Markdown~~ Hoogle.\r\n* We want to fix bugs like #747, and also only have to do it once.\r\n* We eventually want users to be able to run a tool locally which will generate HTML documentation and Hoogle input files, and then publish the results on the web.\r\n\r\nIt seems like the best way of accomplishing these 3 goals is to start looking at moving chunks of `psc-pages` into the library part of the `purescript` package. This PR is a step in this direction.\r\n\r\nOne small change I've made in this code that's not in the current `psc-pages` code, or even in the code in the open PR I have on `psc-pages`, is that the `RenderedDeclaration` etc types now have comments as `String` rather than `Html` - the code is the same, it just omits the final step transforming the comments into an HTML element. This allows us to output comments as Markdown, like `psc-docs` currently does, or as HTML.\r\n\r\nAlso, I decided to base off of `0.7-dev`, since #747 is marked for 0.7.0, but I can change this easily if you'd like."},"comment":{"url":"https://api.github.com/repos/purescript/purescript/issues/comments/92423253","html_url":"https://github.com/purescript/purescript/pull/1041#issuecomment-92423253","issue_url":"https://api.github.com/repos/purescript/purescript/issues/1041","id":92423253,"user":{"login":"hdgarrood","id":1270186,"avatar_url":"https://avatars.githubusercontent.com/u/1270186?v=3","gravatar_id":"","url":"https://api.github.com/users/hdgarrood","html_url":"https://github.com/hdgarrood","followers_url":"https://api.github.com/users/hdgarrood/followers","following_url":"https://api.github.com/users/hdgarrood/following{/other_user}","gists_url":"https://api.github.com/users/hdgarrood/gists{/gist_id}","starred_url":"https://api.github.com/users/hdgarrood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hdgarrood/subscriptions","organizations_url":"https://api.github.com/users/hdgarrood/orgs","repos_url":"https://api.github.com/users/hdgarrood/repos","events_url":"https://api.github.com/users/hdgarrood/events{/privacy}","received_events_url":"https://api.github.com/users/hdgarrood/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T16:51:42Z","updated_at":"2015-04-13T16:51:42Z","body":"Sure, no problem. Should I squash all the commits?"}}