{"action":"created","issue":{"url":"https://api.github.com/repos/getnikola/nikola/issues/932","labels_url":"https://api.github.com/repos/getnikola/nikola/issues/932/labels{/name}","comments_url":"https://api.github.com/repos/getnikola/nikola/issues/932/comments","events_url":"https://api.github.com/repos/getnikola/nikola/issues/932/events","html_url":"https://github.com/getnikola/nikola/issues/932","id":23241329,"number":932,"title":"Include directive broken","user":{"login":"v6sa","id":194685,"avatar_url":"https://avatars.githubusercontent.com/u/194685?v=3","gravatar_id":"","url":"https://api.github.com/users/v6sa","html_url":"https://github.com/v6sa","followers_url":"https://api.github.com/users/v6sa/followers","following_url":"https://api.github.com/users/v6sa/following{/other_user}","gists_url":"https://api.github.com/users/v6sa/gists{/gist_id}","starred_url":"https://api.github.com/users/v6sa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v6sa/subscriptions","organizations_url":"https://api.github.com/users/v6sa/orgs","repos_url":"https://api.github.com/users/v6sa/repos","events_url":"https://api.github.com/users/v6sa/events{/privacy}","received_events_url":"https://api.github.com/users/v6sa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/getnikola/nikola/labels/breaks%20backwards%20compatibility","name":"breaks backwards compatibility","color":"000000"}],"state":"open","locked":false,"assignee":{"login":"ralsina","id":1579,"avatar_url":"https://avatars.githubusercontent.com/u/1579?v=3","gravatar_id":"","url":"https://api.github.com/users/ralsina","html_url":"https://github.com/ralsina","followers_url":"https://api.github.com/users/ralsina/followers","following_url":"https://api.github.com/users/ralsina/following{/other_user}","gists_url":"https://api.github.com/users/ralsina/gists{/gist_id}","starred_url":"https://api.github.com/users/ralsina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralsina/subscriptions","organizations_url":"https://api.github.com/users/ralsina/orgs","repos_url":"https://api.github.com/users/ralsina/repos","events_url":"https://api.github.com/users/ralsina/events{/privacy}","received_events_url":"https://api.github.com/users/ralsina/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/getnikola/nikola/milestones/24","html_url":"https://github.com/getnikola/nikola/milestones/7.5.2","labels_url":"https://api.github.com/repos/getnikola/nikola/milestones/24/labels","id":1160404,"number":24,"title":"7.5.2","description":"Last 7.5.x release! Unless we do another one!","creator":{"login":"ralsina","id":1579,"avatar_url":"https://avatars.githubusercontent.com/u/1579?v=3","gravatar_id":"","url":"https://api.github.com/users/ralsina","html_url":"https://github.com/ralsina","followers_url":"https://api.github.com/users/ralsina/followers","following_url":"https://api.github.com/users/ralsina/following{/other_user}","gists_url":"https://api.github.com/users/ralsina/gists{/gist_id}","starred_url":"https://api.github.com/users/ralsina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralsina/subscriptions","organizations_url":"https://api.github.com/users/ralsina/orgs","repos_url":"https://api.github.com/users/ralsina/repos","events_url":"https://api.github.com/users/ralsina/events{/privacy}","received_events_url":"https://api.github.com/users/ralsina/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":0,"state":"open","created_at":"2015-06-11T14:44:34Z","updated_at":"2015-06-11T15:54:39Z","due_on":"2015-06-20T03:00:00Z","closed_at":null},"comments":8,"created_at":"2013-11-25T13:12:25Z","updated_at":"2015-06-11T17:27:42Z","closed_at":null,"body":"Hi,\r\n\r\ndocutils says that include directive argument is the path to the file to be included, relative to the document containing the directive.\r\n\r\nhttp://docutils.sourceforge.net/docs/ref/rst/directives.html#including-an-external-document-fragment\r\n\r\nCurrently include directives fail because nikola attempts to look up referenced files from the current working directory.\r\n\r\nHow to reproduce:\r\n\r\n1. Create file foo.rst in posts/\r\n2. Create bar.rst in posts/ and insert `.. include:: foo.rst`\r\n3. Issue `nikola build`"},"comment":{"url":"https://api.github.com/repos/getnikola/nikola/issues/comments/111213815","html_url":"https://github.com/getnikola/nikola/issues/932#issuecomment-111213815","issue_url":"https://api.github.com/repos/getnikola/nikola/issues/932","id":111213815,"user":{"login":"Kwpolska","id":327323,"avatar_url":"https://avatars.githubusercontent.com/u/327323?v=3","gravatar_id":"","url":"https://api.github.com/users/Kwpolska","html_url":"https://github.com/Kwpolska","followers_url":"https://api.github.com/users/Kwpolska/followers","following_url":"https://api.github.com/users/Kwpolska/following{/other_user}","gists_url":"https://api.github.com/users/Kwpolska/gists{/gist_id}","starred_url":"https://api.github.com/users/Kwpolska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kwpolska/subscriptions","organizations_url":"https://api.github.com/users/Kwpolska/orgs","repos_url":"https://api.github.com/users/Kwpolska/repos","events_url":"https://api.github.com/users/Kwpolska/events{/privacy}","received_events_url":"https://api.github.com/users/Kwpolska/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T17:27:42Z","updated_at":"2015-06-11T17:27:42Z","body":"pseudocode:\r\n\r\n```rest\r\n\r\n.. if:: nikola\r\n\r\n   Nikola-specific reST goes here, like the include directive with site-root-relative paths\r\n\r\n.. if:: sphinx\r\n\r\n   Sphinx-specific reST goes here, like the include directive with input-file-relative paths\r\n```\r\n\r\n(very unlikely to be a thing)"}}