-
-
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
Add support for encryption #125
Comments
Workaround for Request 1
|
Related to issue opened here. Since the However, it is possible for this For example, a way to automatically exclude all encrypted pages from print rendering (content & table of contents): --- renderer.py 2024-11-17 12:40:00.430187474 +0100
+++ renderer_patched.py 2024-11-17 12:41:00.962667228 +0100
@@ -81,6 +81,11 @@
for item in items:
if item.is_page:
+ # Auto exclude protected pages from rendering (EncryptContent plugin)
+ if hasattr(item, 'encrypted'):
+ if item.encrypted == True:
+ self.plugin_config.get("exclude", []).append(item.file.src_path)
+
# Do not include page in print page if excluded
if exclude(item.file.src_path, excluded_pages):
logging.debug(f"Excluding page '{item.file.src_path}'")
I hope this helps you. PS: The encrypted content of a page generated by encryptcontent plugin, is available in |
Idea to add support for encryption
Plugin: encryptcontent
Link: https://unverbuggt.github.io/mkdocs-encryptcontent-plugin/
The text was updated successfully, but these errors were encountered: