You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:glob: is pretty useful, but it doesn't seem to enable the following:
Include all documents named package.[…] but don't include any documents named package.[…].[…].
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.
The text was updated successfully, but these errors were encountered:
At least it seems that the documentation could be clarified? But I don't understand what globbing syntaxes are supported. I guess the real work is being done in sphinx.util.matching, which does check for exclamation signs in the pattern.
:glob:
is pretty useful, but it doesn't seem to enable the following: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 withpackage.*.*
. I triedpackage.[!.]*
but the[!.]
seems to not interact with the*
but only affect a single character.I propose the addition of a
:regex:
option to thetoctree
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.The text was updated successfully, but these errors were encountered: