We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45c0fe9 commit 417b0feCopy full SHA for 417b0fe
1 file changed
sphinx_external_toc/collectors.py
@@ -60,6 +60,9 @@ def assign_section_numbers(self, env):
60
self.__alphalower_count = 0
61
# convert the section numbers to the new style
62
for _, ref in toctree["entries"]:
63
+ # Skip URLs and other refs that aren't documents
64
+ if ref not in env.titles:
65
+ continue
66
if "secnumber" in env.titles[ref]:
67
if style[0] == "numerical":
68
self.__numerical_count += 1
0 commit comments