{"action":"created","issue":{"url":"https://api.github.com/repos/deconst/preparer-sphinx/issues/37","labels_url":"https://api.github.com/repos/deconst/preparer-sphinx/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/deconst/preparer-sphinx/issues/37/comments","events_url":"https://api.github.com/repos/deconst/preparer-sphinx/issues/37/events","html_url":"https://github.com/deconst/preparer-sphinx/pull/37","id":108323833,"number":37,"title":"Duplicated content with the deconst-single builder","user":{"login":"smashwilson","id":17565,"avatar_url":"https://avatars.githubusercontent.com/u/17565?v=3","gravatar_id":"","url":"https://api.github.com/users/smashwilson","html_url":"https://github.com/smashwilson","followers_url":"https://api.github.com/users/smashwilson/followers","following_url":"https://api.github.com/users/smashwilson/following{/other_user}","gists_url":"https://api.github.com/users/smashwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/smashwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smashwilson/subscriptions","organizations_url":"https://api.github.com/users/smashwilson/orgs","repos_url":"https://api.github.com/users/smashwilson/repos","events_url":"https://api.github.com/users/smashwilson/events{/privacy}","received_events_url":"https://api.github.com/users/smashwilson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-25T13:13:45Z","updated_at":"2015-09-25T13:17:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/deconst/preparer-sphinx/pulls/37","html_url":"https://github.com/deconst/preparer-sphinx/pull/37","diff_url":"https://github.com/deconst/preparer-sphinx/pull/37.diff","patch_url":"https://github.com/deconst/preparer-sphinx/pull/37.patch"},"body":"For reasons unknown, `render_partial()` renders the body doctree _twice_. Source-diving into Sphinx a little reveals that the SingleFileHTMLBuilder [calls `write_doc()`](https://github.com/sphinx-doc/sphinx/blob/1.3.1/sphinx/builders/html.py#L430-L445) to convert the body doctree into HTML rather than `render_partial()`, so I ported the relevant bits from that into our builder and it seems to be working properly now.\r\n\r\nThis is the root cause of rackerlabs/nexus-control#176.\r\n\r\nSo about those preparer tests... :wink:"},"comment":{"url":"https://api.github.com/repos/deconst/preparer-sphinx/issues/comments/143218386","html_url":"https://github.com/deconst/preparer-sphinx/pull/37#issuecomment-143218386","issue_url":"https://api.github.com/repos/deconst/preparer-sphinx/issues/37","id":143218386,"user":{"login":"smashwilson","id":17565,"avatar_url":"https://avatars.githubusercontent.com/u/17565?v=3","gravatar_id":"","url":"https://api.github.com/users/smashwilson","html_url":"https://github.com/smashwilson","followers_url":"https://api.github.com/users/smashwilson/followers","following_url":"https://api.github.com/users/smashwilson/following{/other_user}","gists_url":"https://api.github.com/users/smashwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/smashwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smashwilson/subscriptions","organizations_url":"https://api.github.com/users/smashwilson/orgs","repos_url":"https://api.github.com/users/smashwilson/repos","events_url":"https://api.github.com/users/smashwilson/events{/privacy}","received_events_url":"https://api.github.com/users/smashwilson/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T13:17:13Z","updated_at":"2015-09-25T13:17:13Z","body":"I tried it on a full repo and it seems to do the trick. Hooray?"}}