rosscdh / mkdocs-markdownextradata-plugin

A MkDocs plugin that injects the mkdocs.yml extra variables into the markdown template
MIT License
83 stars 18 forks source link

About excluding directories #50

Open W1ndys opened 5 months ago

W1ndys commented 5 months ago

Is it possible to exclude certain directories? Some Markdown files need to indicate some content, but the content format conforms to the soft coding format, but I don’t want it to be associated with my yaml configuration file. Is there a way to exclude certain directories?

W1ndys commented 5 months ago

Maybe my question is similar to this one. https://github.com/rosscdh/mkdocs-markdownextradata-plugin/issues/21

W1ndys commented 5 months ago

I switched to version 0.1.7, but it didn't work.

rosscdh commented 5 months ago

hi there thanks for your interest and use in the lib!

i could probably add a check for a .ignore file in a folder?

regards ross

On Wed, 10 Apr 2024 at 22:48, W1ndys @.***> wrote:

I switched to version 0.1.7, but it didn't work.

— Reply to this email directly, view it on GitHub https://github.com/rosscdh/mkdocs-markdownextradata-plugin/issues/50#issuecomment-2047451479, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADA6MS7D3CN7RIX6244M4DY4UYI7AVCNFSM6AAAAABGAK37V2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBXGQ2TCNBXHE . You are receiving this because you are subscribed to this thread.Message ID: @.*** com>

W1ndys commented 5 months ago

hi there thanks for your interest and use in the lib! i could probably add a check for a .ignore file in a folder? regards ross On Wed, 10 Apr 2024 at 22:48, W1ndys @.> wrote: I switched to version 0.1.7, but it didn't work. — Reply to this email directly, view it on GitHub <#50 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADA6MS7D3CN7RIX6244M4DY4UYI7AVCNFSM6AAAAABGAK37V2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBXGQ2TCNBXHE . You are receiving this because you are subscribed to this thread.Message ID: @. com>

I look forward to your update, but I think these methods are more effective. If there are {{}} in two places in the same Markdown file, it may be a new problem if one needs to be excluded and the other does not need to be excluded.

W1ndys commented 5 months ago

https://github.com/rosscdh/mkdocs-markdownextradata-plugin/issues/24 I think this is quite good.

W1ndys commented 5 months ago

24 I think this is quite good.

I think it is best to set the exclusion directory and solve the problem mentioned above.

W1ndys commented 5 months ago

I'll give you a concrete example. For example, there is an env configuration in the following file, which will be recognized by the plug-in and lead to an error.

https://github.com/Wcowin/Mkdocs-Wcowin/blob/94dbf6531e593b478b709174f1e7653a8fd05432/docs/blog/Mkdocs/mkdocs1.md?plain=1#L121

But in fact, I don't want him to be explained by the plug-in