{"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":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-25T13:13:45Z","updated_at":"2015-09-25T19:41:38Z","closed_at":"2015-09-25T13:17:15Z","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/143334519","html_url":"https://github.com/deconst/preparer-sphinx/pull/37#issuecomment-143334519","issue_url":"https://api.github.com/repos/deconst/preparer-sphinx/issues/37","id":143334519,"user":{"login":"annegentle","id":501981,"avatar_url":"https://avatars.githubusercontent.com/u/501981?v=3","gravatar_id":"","url":"https://api.github.com/users/annegentle","html_url":"https://github.com/annegentle","followers_url":"https://api.github.com/users/annegentle/followers","following_url":"https://api.github.com/users/annegentle/following{/other_user}","gists_url":"https://api.github.com/users/annegentle/gists{/gist_id}","starred_url":"https://api.github.com/users/annegentle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annegentle/subscriptions","organizations_url":"https://api.github.com/users/annegentle/orgs","repos_url":"https://api.github.com/users/annegentle/repos","events_url":"https://api.github.com/users/annegentle/events{/privacy}","received_events_url":"https://api.github.com/users/annegentle/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T19:41:38Z","updated_at":"2015-09-25T19:41:38Z","body":"Ok, I see what you do on docs-cloud-images. Looks fine. \r\nNow I'm republishing docs-cloud-load-balancers. I put:\r\nhttp://staging.developer.rackspace.com/docs-cloud-load-balancers/#health-monitor in a new Chrome tab. I scroll past on the right-hand side and still see a repeat, do you? \r\n\r\nHere's how I updated docs-cloud-load-balancers:\r\n\r\n```\r\nstack@magnm:~$ cd docs-cloud-load-balancers/\r\nstack@magnm:~/docs-cloud-load-balancers$ git remote update; git pull origin master\r\nFetching origin\r\nremote: Counting objects: 6, done.\r\nremote: Compressing objects: 100% (5/5), done.\r\nremote: Total 6 (delta 0), reused 0 (delta 0), pack-reused 0\r\nUnpacking objects: 100% (6/6), done.\r\nFrom https://github.com/rackerlabs/docs-cloud-load-balancers\r\n   63b4c61..ec5880a  master     -> origin/master\r\nFrom https://github.com/rackerlabs/docs-cloud-load-balancers\r\n * branch            master     -> FETCH_HEAD\r\nUpdating 63b4c61..ec5880a\r\nFast-forward\r\n rst/dev-guide/general-api-info/limits.rst | 7 +++----\r\n 1 file changed, 3 insertions(+), 4 deletions(-)\r\nstack@magnm:~/docs-cloud-load-balancers$ cd ..\r\nstack@magnm:~$ ./deconst-publish -p docs-cloud-load-balancers/rst/dev-guide/\r\nRunning Sphinx v1.3.1\r\nbuilding [mo]: all of 0 po files\r\nbuilding [deconst-single]: all source files\r\nupdating environment: 40 added, 0 changed, 0 removed\r\nreading sources... [100%] overview/pricing-service-level                                                                     \r\nlooking for now-outdated files... none found\r\npickling environment... done\r\nchecking consistency... done\r\npreparing documents... done\r\nassembling single document... overview/index overview/additional-resources overview/pricing-service-level developer-guide concepts general-api-info/index general-api-info/authentication general-api-info/service-access general-api-info/request-response general-api-info/content-compression general-api-info/persistent-connections general-api-info/paginated-collections general-api-info/limits general-api-info/faults general-api-info/date-time-format general-api-info/api-behavior general-api-info/compatible-shared-load-balancing-protocols general-api-info/role-based-access-control api-reference api-operations/index api-operations/load-balancers api-operations/erropage api-operations/stats api-operations/nodes api-operations/virtual-ips api-operations/allowed-domains api-operations/usage-reports api-operations/access-lists api-operations/monitors api-operations/sessions api-operations/log-connections api-operations/throttle-connections api-operations/content-caching api-operations/protocols api-operations/algorithms api-operations/ssl-termination api-operations/certificatemappings api-operations/metadata glossary build succeeded.\r\nsubmitting [index.json] as [https://github.com/rackerlabs/docs-cloud-load-balancers] ... success\r\nAll generated content submitted to the content store.\r\n\r\n```"}}