{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/13006","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/13006/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/13006/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/13006/events","html_url":"https://github.com/JuliaLang/julia/pull/13006","id":105275961,"number":13006,"title":"RFC: Documenting macro-generated code","user":{"login":"MichaelHatherly","id":6144086,"avatar_url":"https://avatars.githubusercontent.com/u/6144086?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelHatherly","html_url":"https://github.com/MichaelHatherly","followers_url":"https://api.github.com/users/MichaelHatherly/followers","following_url":"https://api.github.com/users/MichaelHatherly/following{/other_user}","gists_url":"https://api.github.com/users/MichaelHatherly/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelHatherly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelHatherly/subscriptions","organizations_url":"https://api.github.com/users/MichaelHatherly/orgs","repos_url":"https://api.github.com/users/MichaelHatherly/repos","events_url":"https://api.github.com/users/MichaelHatherly/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelHatherly/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JuliaLang/julia/labels/backport%20pending%200.4","name":"backport pending 0.4","color":"fad8c7"},{"url":"https://api.github.com/repos/JuliaLang/julia/labels/docsystem","name":"docsystem","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2015-09-07T23:11:29Z","updated_at":"2015-09-29T12:12:46Z","closed_at":"2015-09-29T09:47:55Z","pull_request":{"url":"https://api.github.com/repos/JuliaLang/julia/pulls/13006","html_url":"https://github.com/JuliaLang/julia/pull/13006","diff_url":"https://github.com/JuliaLang/julia/pull/13006.diff","patch_url":"https://github.com/JuliaLang/julia/pull/13006.patch"},"body":"This adds a `@__doc__` macro, not exported currently, for use by macro authors that want their macros to hook into the docsystem properly.\r\n\r\nUsage:\r\n\r\n    macro example(f)\r\n        quote\r\n            $(f)() = 0\r\n            @__doc__ $(f)(x) = 1\r\n            $(f)(x, y) = 2\r\n        end |> esc\r\n    end\r\n\r\n    \"Docs for `g(x)` only.\"\r\n    @example g\r\n\r\nwill attach the docstring to the 1-arg method only.\r\n\r\nFixes #12705."},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/144040562","html_url":"https://github.com/JuliaLang/julia/pull/13006#issuecomment-144040562","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/13006","id":144040562,"user":{"login":"MichaelHatherly","id":6144086,"avatar_url":"https://avatars.githubusercontent.com/u/6144086?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelHatherly","html_url":"https://github.com/MichaelHatherly","followers_url":"https://api.github.com/users/MichaelHatherly/followers","following_url":"https://api.github.com/users/MichaelHatherly/following{/other_user}","gists_url":"https://api.github.com/users/MichaelHatherly/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelHatherly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelHatherly/subscriptions","organizations_url":"https://api.github.com/users/MichaelHatherly/orgs","repos_url":"https://api.github.com/users/MichaelHatherly/repos","events_url":"https://api.github.com/users/MichaelHatherly/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelHatherly/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T12:12:45Z","updated_at":"2015-09-29T12:12:45Z","body":"Thanks for reviewing @mauro3, and @tkelman for all the work backporting things!"}}