We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1a0cd2 commit adf2b6fCopy full SHA for adf2b6f
sphinx_external_toc/api.py
@@ -16,19 +16,22 @@
16
#: Pattern used to match URL items.
17
URL_PATTERN: str = r".+://.*"
18
19
+
20
@dataclass(**DC_SLOTS)
21
class FileItem:
22
"""A document path in a toctree list.
23
24
This should be in POSIX format (folders split by ``/``), relative to the
25
source directory, and can be with or without an extension.
26
"""
27
28
path: str = field(validator=[instance_of(str)])
29
title: Optional[str] = field(default=None, validator=optional(instance_of(str)))
-
30
31
def __post_init__(self):
32
validate_fields(self)
33
34
35
class GlobItem(str):
36
"""A document glob in a toctree list."""
37
0 commit comments