{"action":"closed","issue":{"url":"https://api.github.com/repos/mkdocs/mkdocs/issues/473","labels_url":"https://api.github.com/repos/mkdocs/mkdocs/issues/473/labels{/name}","comments_url":"https://api.github.com/repos/mkdocs/mkdocs/issues/473/comments","events_url":"https://api.github.com/repos/mkdocs/mkdocs/issues/473/events","html_url":"https://github.com/mkdocs/mkdocs/issues/473","id":70780171,"number":473,"title":"Why cant i use my modified Readthedocs theme without error?","user":{"login":"Collizo4sky","id":4140659,"avatar_url":"https://avatars.githubusercontent.com/u/4140659?v=3","gravatar_id":"","url":"https://api.github.com/users/Collizo4sky","html_url":"https://github.com/Collizo4sky","followers_url":"https://api.github.com/users/Collizo4sky/followers","following_url":"https://api.github.com/users/Collizo4sky/following{/other_user}","gists_url":"https://api.github.com/users/Collizo4sky/gists{/gist_id}","starred_url":"https://api.github.com/users/Collizo4sky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Collizo4sky/subscriptions","organizations_url":"https://api.github.com/users/Collizo4sky/orgs","repos_url":"https://api.github.com/users/Collizo4sky/repos","events_url":"https://api.github.com/users/Collizo4sky/events{/privacy}","received_events_url":"https://api.github.com/users/Collizo4sky/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-24T20:02:06Z","updated_at":"2015-04-24T21:16:19Z","closed_at":"2015-04-24T21:16:19Z","body":"I downloaded the readthedoc theme https://github.com/mkdocs/mkdocs/tree/master/mkdocs/themes/readthedocs added it to my project root and modified the `base.html` to include disqus.\r\n\r\nI added `theme_dir: 'readthedocs'` to mkdocs.yml file.\r\n\r\n\r\nEven without the disqus code i.e unmodified, i get the following error when i try building the doc.\r\n\r\n\r\nMind you, i di\r\n```\r\nTraceback (most recent call last):\r\n  File \"c:\\Python34\\Scripts\\mkdocs-script.py\", line 9, in <module>\r\n    load_entry_point('mkdocs==0.11.1', 'console_scripts', 'mkdocs')()\r\n  File \"c:\\Python34\\lib\\site-packages\\mkdocs\\main.py\", line 60, in run_main\r\n    main(cmd, args=sys.argv[2:], options=dict(opts))\r\n  File \"c:\\Python34\\lib\\site-packages\\mkdocs\\main.py\", line 36, in main\r\n    build(config, clean_site_dir=clean_site_dir)\r\n  File \"c:\\Python34\\lib\\site-packages\\mkdocs\\build.py\", line 266, in build\r\n    build_pages(config)\r\n  File \"c:\\Python34\\lib\\site-packages\\mkdocs\\build.py\", line 201, in build_pages\r\n\r\n    build_404(config, env, site_navigation)\r\n  File \"c:\\Python34\\lib\\site-packages\\mkdocs\\build.py\", line 188, in build_404\r\n    output_content = template.render(global_context)\r\n  File \"c:\\Python34\\lib\\site-packages\\jinja2\\environment.py\", line 969, in rende\r\nr\r\n    return self.environment.handle_exception(exc_info, True)\r\n  File \"c:\\Python34\\lib\\site-packages\\jinja2\\environment.py\", line 742, in handl\r\ne_exception\r\n    reraise(exc_type, exc_value, tb)\r\n  File \"c:\\Python34\\lib\\site-packages\\jinja2\\_compat.py\", line 36, in reraise\r\n    raise value.with_traceback(tb)\r\n  File \"c:\\Python34\\lib\\site-packages\\mkdocs\\themes\\mkdocs\\404.html\", line 1, in\r\n <module>\r\n    {% extends \"base.html\" %}\r\n  File \"readthedocs\\base.html\", line 75, in <module>\r\n    {% include \"breadcrumbs.html\" %}\r\n  File \"readthedocs\\breadcrumbs.html\", line 4, in <module>\r\n    {% for doc in current_page.ancestors %}\r\n  File \"c:\\Python34\\lib\\site-packages\\jinja2\\environment.py\", line 397, in getat\r\ntr\r\n    return getattr(obj, attribute)\r\njinja2.exceptions.UndefinedError: 'current_page' is undefined\r\n```\r\n\r\n\r\nMy question is, where does mkdocs download the readthedocs theme used in building the documentation when `theme` config is set to `readthedocs` ?\r\n\r\ncc @d0ugal "}}