unverbuggt / mkdocs-encryptcontent-plugin

A MkDocs plugin that encrypt/decrypt markdown content with AES
https://unverbuggt.github.io/mkdocs-encryptcontent-plugin/
MIT License
123 stars 15 forks source link

Use one password for a folder #37

Closed zerenxyz closed 1 year ago

zerenxyz commented 1 year ago

Is it possible to use this plugin to require password for one whole subfolder of docs and not individually for each page in that folder?

├─ docs/
│  ├─ folder_A/
│  │  ├─ index.md
│  │  ├─ general.md
│  │  ├─ info.md
│  │  └─ extra_info.md
│  ├─ folder_B/
│  │  └─ etc...md
└─ mkdocs.yml

How do I make it so folder_A has one password, and if entered it opens all the pages inside that folder so you dont have to enter a password for each page one by one.

zerenxyz commented 1 year ago

I am running into an issue where only my index.md and random page accepts the global_password

All other pages say invalid password where I dont have set anything in any of the pages, not sure what I am missing here, using CTRL+ENTER to enter global password also doesnt work

CoinK0in commented 1 year ago

The functionality of a password per subfolder will not be done. I opened a new issue for your password problem. Here