-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Using with custom theme #73
Comments
theme: null
Hi @fotrimzi Thanks for reporting. Indeed specifying There are two bits to this. The first is that we inject a mkdocs-print-site-plugin/mkdocs_print_site_plugin/plugin.py Lines 122 to 130 in 311873d
The second issue is more complex, and that's the error message you have now: mkdocs-print-site-plugin/mkdocs_print_site_plugin/plugin.py Lines 294 to 298 in 311873d
We need the mkdocs-print-site-plugin/mkdocs_print_site_plugin/plugin.py Lines 268 to 282 in 311873d
So it looks like the The fix would be to find the correct Is this something you'd like to dive into and try to make a PR for? Would be appreciated! |
@timvink Thanks for the tips and insights. I will delve deeper and have a go. |
Hi @timvink As a reminder: I wanted to have the plugin work on a completely theme-less site. (nothing but the content, as in my original comment). I want to convert that one
A
Later I'll try changing
Skip (comment out) the context size test:
Later, I need to now learn what a context is and why the qualifying test is 'not empty'. Please comment with your hints, suggestions, and any 'mkdocs plugin debug' tips and resources I might not have already found (i.e. virtually none). |
Can I use this plugin with a custom theme? I.e.
(See below for
main.html
).When I do, I get:
I saw in
get_theme_name()
the comment "Supports the case when using overrides (using theme: null)". So I tried:but that renders the one-pager in the default MkDocs theme.
Any ideas? Thanks. (Happy to attempt to delve deeper into the code. But would like to know if it even makes sense for this plugin.)
My
main.html
:The text was updated successfully, but these errors were encountered: