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 0c39a19 commit c42cba4Copy full SHA for c42cba4
sphinxext/thumbnail_extractor.py
@@ -77,6 +77,8 @@
77
"""
78
79
SECTION_TEMPLATE = """
80
+.. _{section_id}:
81
+
82
{section_title}
83
{underlines}
84
@@ -184,7 +186,11 @@ def main(app):
184
186
for folder, title in folder_title_map.items():
185
187
188
nb_paths = glob(f"{folder}/*.ipynb")
- file.append(SECTION_TEMPLATE.format(section_title=title, underlines="-" * len(title)))
189
+ file.append(
190
+ SECTION_TEMPLATE.format(
191
+ section_title=title, section_id=folder, underlines="-" * len(title)
192
+ )
193
194
target_dir = os.path.join("..", "_thumbnails", folder)
195
if not os.path.isdir(target_dir):
196
os.mkdir(target_dir)
0 commit comments