Laurent Franceschetti

Results 121 comments of Laurent Franceschetti

The best advice is to follow the [steps in that case](https://mkdocs-mermaid2.readthedocs.io/en/latest/troubleshooting/). Let me know the results?

Yes this is a new experimental function (see #204).

Or rather, this seems the dual of the other problem... 🤔 You wish to have an **opt-out** for macro-rendering, for a directory and its subdirectories?

Noncommittal: one way to do that, might be to create an `mkdocs-macros.yaml` file in the directory? 🤔 That would be the place in the [code](https://github.com/fralau/mkdocs-macros-plugin/blob/2c80db2ccf30f9bd0c09e11e8deebfba275d93c5/mkdocs_macros/plugin.py#L505C1-L514C32): ```python if self.config['render_by_default']: # opt-out:...

We could indeed, do like that. We already have[ list parameters,](https://github.com/fralau/mkdocs-macros-plugin/blob/7368260754c65b74e582609d4cd7e38d30b05f7b/mkdocs_macros/plugin.py#L79C1-L104C6) in the config file e.g. ```python ('modules', PluginType(list, default=[])), ``` We could assume that the default directory is the...

For the implementation, we could use a function inspired by this (suggested by ChatGPT): ```python import os def is_file_in_directory(file_path, directory): # Get the absolute path of the directory directory =...

I would think the [pattern matching syntax](https://git-scm.com/docs/gitignore#_pattern_format), as in .gitignore, but reversed 🤔 For that, we might use the Python [PathSpec library](https://github.com/cpburnz/python-pathspec).

The last commit implements this requirement of **opt-in of files by directory, filename, etc** when the parameter `render_by_default` in the config file is set to `false`. There is a new...

@mhussein Could I ask you to test this commit, and see if it could work for you?

Thanks a lot. Your argument about local overriding the global makes sense. I will have a look at it. It's good to know that the negative syntax (with `!`) also...