{"action":"created","issue":{"url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/3142","repository_url":"https://api.github.com/repos/sphinx-doc/sphinx","labels_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/3142/labels{/name}","comments_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/3142/comments","events_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/3142/events","html_url":"https://github.com/sphinx-doc/sphinx/issues/3142","id":188503009,"number":3142,"title":"A file named home.rst in a numbered toctree does not get a number in HTML ","user":{"login":"Znni","id":18051526,"avatar_url":"https://avatars.githubusercontent.com/u/18051526?v=3","gravatar_id":"","url":"https://api.github.com/users/Znni","html_url":"https://github.com/Znni","followers_url":"https://api.github.com/users/Znni/followers","following_url":"https://api.github.com/users/Znni/following{/other_user}","gists_url":"https://api.github.com/users/Znni/gists{/gist_id}","starred_url":"https://api.github.com/users/Znni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Znni/subscriptions","organizations_url":"https://api.github.com/users/Znni/orgs","repos_url":"https://api.github.com/users/Znni/repos","events_url":"https://api.github.com/users/Znni/events{/privacy}","received_events_url":"https://api.github.com/users/Znni/received_events","type":"User","site_admin":false},"labels":[{"id":162407998,"url":"https://api.github.com/repos/sphinx-doc/sphinx/labels/question","name":"question","color":"cc317c","default":true},{"id":480005472,"url":"https://api.github.com/repos/sphinx-doc/sphinx/labels/toctree","name":"toctree","color":"1d76db","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-10T13:03:14Z","updated_at":"2016-12-07T07:15:42Z","closed_at":"2016-11-24T11:45:15Z","body":"I have an index.rst with a toctree:\r\n\r\n.. toctree::\r\n   :glob:\r\n   :numbered:\r\n   :maxdepth: 2\r\n   \r\n   some/thing\r\n   something/else\r\n   userguide/userguide\r\n\r\nThen in my userguide/userguide.rst I have another toctree:\r\n\r\n.. toctree::\r\n   :glob:\r\n   :numbered:\r\n   \r\n   home/home\r\n   other/things\r\n\r\nI build the project with sphinx and the resulting toctree in HTML contains something like this:\r\n\r\n...\r\n5. Fifth header\r\n\r\n- Home category\r\n- 5.1. Subheader 1\r\n- 5.2. Subheader 2\r\n\r\n...\r\n\r\n\"Home category\" should have number 5.1, but it is completely without a number.\r\n\r\nChanging the filename from home.rst to something else, e.g. foobar.rst and changing the reference in userguide/userguide.rst to home/foobar.rst fixes the problem and \"home category\" is correctly numbered as 5.1.\r\n\r\nIs \"home\" a reserved keyword in some system or what causes this problem?"},"comment":{"url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/comments/265374068","html_url":"https://github.com/sphinx-doc/sphinx/issues/3142#issuecomment-265374068","issue_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/3142","id":265374068,"user":{"login":"Znni","id":18051526,"avatar_url":"https://avatars.githubusercontent.com/u/18051526?v=3","gravatar_id":"","url":"https://api.github.com/users/Znni","html_url":"https://github.com/Znni","followers_url":"https://api.github.com/users/Znni/followers","following_url":"https://api.github.com/users/Znni/following{/other_user}","gists_url":"https://api.github.com/users/Znni/gists{/gist_id}","starred_url":"https://api.github.com/users/Znni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Znni/subscriptions","organizations_url":"https://api.github.com/users/Znni/orgs","repos_url":"https://api.github.com/users/Znni/repos","events_url":"https://api.github.com/users/Znni/events{/privacy}","received_events_url":"https://api.github.com/users/Znni/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T07:15:42Z","updated_at":"2016-12-07T07:15:42Z","body":"Sorry for the delay. Here is a reproducible example: [SphinxHome.zip](https://github.com/sphinx-doc/sphinx/files/635885/SphinxHome.zip)\r\n\r\nIn index.html, toctree item \"Home things\" (referencing home.rst) should have a a number, but it does not have one. Changing the name from home.rst to something else fixes the problem and a number is given to \"Home things\" (remember to change the reference to the new name of home.rst in userguide.rst, too).\r\n\r\nPlease reopen the case, I cannot do that myself."}}
{"actor":{"display_login":"Znni"}}