mkdocs-markdownextradata-plugin icon indicating copy to clipboard operation
mkdocs-markdownextradata-plugin copied to clipboard

About excluding directories

Open W1ndys opened this issue 10 months ago • 7 comments

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 avatar Apr 10 '24 12:04 W1ndys

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

W1ndys avatar Apr 10 '24 12:04 W1ndys

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

W1ndys avatar Apr 10 '24 12:04 W1ndys

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>

rosscdh avatar Apr 10 '24 21:04 rosscdh

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 avatar Apr 10 '24 23:04 W1ndys

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

W1ndys avatar Apr 10 '24 23:04 W1ndys

#24 I think this is quite good.

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

W1ndys avatar Apr 10 '24 23:04 W1ndys

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

W1ndys avatar Apr 10 '24 23:04 W1ndys