-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jinja2.exceptions.UndefinedError: 'current_page' is undefined #266
Comments
Interesting, this is odd. I can't see how this would happen. Have you done anything to customise the theme? Are you using mkdocs 0.11.1? |
I can also reproduce this with the following steps:
The workaround is to delete the offending file ( |
Yes I am using mkdocs 0.11.1 and I didn't done anything to customize the theme. I just copy the readthedocs theme to the root, set theme_dir: 'readthedocs' in yml config. and when I run it locally it gives the error of current_page is undefined. |
Suggestion from Ianalexander is working, but i don't want to build it to static content. I want to publish it as python app. |
I experience the same problem, also switching theme, for example copying |
Uh! I found out a workaround: by forcing |
Interesting. This should be fixed by #244 then. |
jinja2.exceptions.UndefinedError: 'meta' is undefined Copying themes only .yml entry
ERROR
Patch: #244 seems not to help for this case |
@peter1000 Can you report that as a new issue? Seems to be a different problem. |
Done |
I believe this is now fixed in the latest master, please let me know if it isn't. |
Getting the issue with 0.15.3 (the one I grabbed from pip) and @manuelbua workarround (
|
@gsouf I would suggest you open a new issue. The related code is completely different today than when this issue was opened. The discussion here is no longer relevant in any way. In your new issue, be sure to include the minimal steps to reproduce the error. |
I am using your mkdocs theme in my mkdcos project, and when i run this it shows following error:
jinja2.exceptions.UndefinedError: 'current_page' is undefined.
I think code for this is in toc.html file in mkdocs theme.
The text was updated successfully, but these errors were encountered: