bug: filtering not working when using documentation generation scripts
unconfirmed
If I am following these instructions for generating the docs for my code: https://mkdocstrings.github.io/recipes/#generate-a-literate-navigation-file
then the `filters` option outlined here: https://mkdocstrings.github.io/python/usage/configuration/members/#filters
in the `mkdocs.yml` is not working (I am trying to use it to filter out the `__exit__` method of a context manager).
The only way I have been able to get the desired effect is by putting
```
options:
filters: ["!__exit__"]
```
in after the `"::: {ident}"` part manually. This seems like a bug to me, or at the very least it is very unclear/challenging to me how to filter out the desired contents.
关闭于 2025-12-02 4 条评论