{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/12915","labels_url":"https://api.github.com/repos/docker/docker/issues/12915/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/12915/comments","events_url":"https://api.github.com/repos/docker/docker/issues/12915/events","html_url":"https://github.com/docker/docker/pull/12915","id":72298524,"number":12915,"title":"Adding support for GITHUB IGNORES to the engine Dockerfile","user":{"login":"moxiegirl","id":1347209,"avatar_url":"https://avatars.githubusercontent.com/u/1347209?v=3","gravatar_id":"","url":"https://api.github.com/users/moxiegirl","html_url":"https://github.com/moxiegirl","followers_url":"https://api.github.com/users/moxiegirl/followers","following_url":"https://api.github.com/users/moxiegirl/following{/other_user}","gists_url":"https://api.github.com/users/moxiegirl/gists{/gist_id}","starred_url":"https://api.github.com/users/moxiegirl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moxiegirl/subscriptions","organizations_url":"https://api.github.com/users/moxiegirl/orgs","repos_url":"https://api.github.com/users/moxiegirl/repos","events_url":"https://api.github.com/users/moxiegirl/events{/privacy}","received_events_url":"https://api.github.com/users/moxiegirl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/status/0-needs-triage","name":"status/0-needs-triage","color":"EEEEEE"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-30T22:25:02Z","updated_at":"2015-04-30T22:25:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/12915","html_url":"https://github.com/docker/docker/pull/12915","diff_url":"https://github.com/docker/docker/pull/12915.diff","patch_url":"https://github.com/docker/docker/pull/12915.patch"},"body":"GITHUB IGNORES block the mkdocs header like this:\r\n\r\n<!--GITHUB\r\npage_title: Deploying a registry server\r\npage_description: Explains how to deploy a registry server\r\npage_keywords: registry, service, images, repository\r\nIGNORES-->\r\n\r\nThen, you use a **sed** in the Dockerfile to strip the comment tags out and leave the \"meat\" of the mkdocs header behind.\r\n\r\nRUN sed -i.old  -e '/^<!--GITHUB/g' -e '/^IGNORES-->/g'\\\r\n  /docs/sources/registry/*.md \\\r\n  /docs/sources/registry/spec/*.md \\\r\n  /docs/sources/registry/spec/auth/*.md \\\r\n  /docs/sources/registry/storage-drivers/*.md \r\n\r\nI've tested it on Distribution with make docs and works like a charm.   Currently, we aren't requiring GITHUB IGNORES in our files except in the `docker/distribution` repo where the team specifically asked for functionality like this.\r\n\r\nSigned-off-by: Mary Anthony <mary@docker.com>"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/97989163","html_url":"https://github.com/docker/docker/pull/12915#issuecomment-97989163","issue_url":"https://api.github.com/repos/docker/docker/issues/12915","id":97989163,"user":{"login":"moxiegirl","id":1347209,"avatar_url":"https://avatars.githubusercontent.com/u/1347209?v=3","gravatar_id":"","url":"https://api.github.com/users/moxiegirl","html_url":"https://github.com/moxiegirl","followers_url":"https://api.github.com/users/moxiegirl/followers","following_url":"https://api.github.com/users/moxiegirl/following{/other_user}","gists_url":"https://api.github.com/users/moxiegirl/gists{/gist_id}","starred_url":"https://api.github.com/users/moxiegirl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moxiegirl/subscriptions","organizations_url":"https://api.github.com/users/moxiegirl/orgs","repos_url":"https://api.github.com/users/moxiegirl/repos","events_url":"https://api.github.com/users/moxiegirl/events{/privacy}","received_events_url":"https://api.github.com/users/moxiegirl/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T22:25:18Z","updated_at":"2015-04-30T22:25:18Z","body":"ping @docker/docs-owners "}}