-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Open
Labels
internals:toctreetype:enhancementenhance or introduce a new featureenhance or introduce a new feature
Milestone
Description
:glob: is pretty useful, but it doesn't seem to enable the following:
- Include all documents named
package.[…]but don't include any documents namedpackage.[…].[…].
The reverse selection of only including documents that begin with package and contain two dots can be made with package.*.*. I tried package.[!.]* but the [!.] seems to not interact with the * but only affect a single character.
I propose the addition of a :regex: option to the toctree directive using Python's builtin regex package. It should be relatively easy to implement and work around any shortcomings of :glob: that users might encounter.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
internals:toctreetype:enhancementenhance or introduce a new featureenhance or introduce a new feature