-
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
Show unencrypted content in mkdocs serve
#76
Comments
You can set Other way would be to make a copy of the "mkdocs.yml" and disable the plugin in there completely and then run |
Yeah. I've thought of At the moment, I am just commenting the password in the I'd like to be able to see the content in development mode without changing the configuration. I've thought of:
I will implement this on my fork, but if you think this is useful to more users, maybe we can discuss how do you want to approach this. |
I think when a user does If you use two different versions "mkdocs.yml", then you can easily separate development from production. |
I get your point. But, if you're mantaining multiple projects, having different mkdocs would increase the efforts considerably. In that sense, a option |
I got a prototype going in https://github.com/joapuiib/mkdocs-encryptcontent-plugin/tree/feature/show-serving. The changes are specified here: joapuiib@0b43fb2 |
I'd rather concentrate on slimming down the plugin of features most people won't need. It is as complex as it is because it grew in features over a long time. Another idea would be to use environment variables to enable/disable the plugin ompletely if needed. We just need to add a switch in the plugin configuration. |
Do you want me to try to implement this toggle? |
I found an issue on the mkdocstrings plugin where someone had a similar suggestion. It lead to some changes which were also discussed in the markdown-exec plugin. And there I found the information that this functionality is already implemented since mkdocs 1.6. |
I think a enhancement to editors using this plugin would be to be able to see the page content directly without entering a password while serving the site with
mkdocs serve
.The text was updated successfully, but these errors were encountered: