-
Notifications
You must be signed in to change notification settings - Fork 16
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
Dynamic search decryption in mkdocs-material #52
Comments
Hi, I've tested this and conclude that 'md-search' div is in fact correctly decrypted. The dynamical search decryption for material-theme is a thing I need for a project of ours, so this will hopefully be taken care of some time(TM). But it is not high priority, as the workaround with material 8 exists. While testing, I also found that the current material breaks other stuff as well, so thank you for bringing this up. |
...I found a way to hack into material 9 that allows modifying the search index. There is hope that material might cache the search index some day, where we could modify it by this plugin. Until then, patching is the not-so-bright-but-only solution I could come up with. mkdocs_material-9.3.2-py3-none-any (patched encryptcontent-index).zip |
Hi, thank you very much for the help and the patch, though I myself also ended up patching |
I have set a
global_password
and usedencrypted_something
to hide the nav-bar (md-nav
), tabs (md-tabs
), and search-box (md-search
). However, when providing the password and decrypting the page, only the nav-bar and tabs became visible, while the search-box was still hidden.Here is a snippet from my
mkdocs.yml
PS. Yes, I am aware that setting the
search_index
toclear
mode can make it possible to get the data by digging up thesearch indexes
, however, downgrading themkdocs-material
to below9.x.x
(and then patching it) is too big of a drawback, and disabling search feature is also a huge drawback.The text was updated successfully, but these errors were encountered: