Skip to content

Commit cc98544

Browse files
committed
Update to the userguide
1 parent fc8511e commit cc98544

File tree

3 files changed

+559
-67
lines changed

3 files changed

+559
-67
lines changed

.azure/doc-requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# TODO: consider unpinning these?
2-
Pygments==2.15.0
3-
docutils==0.14
4-
commonmark==0.8.1
5-
recommonmark==0.5.0
2+
Pygments
3+
docutils
4+
commonmark
5+
recommonmark
66
sphinx
77
sphinx-rtd-theme
88
readthedocs-sphinx-ext

doc/add_labels.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def sync_labels(input_file, output_file):
8989
elif re.match(r"^-+$", line):
9090
# Process subheader
9191
current_subheader = sanitize_label(buffer.strip().lower().replace(" ", "_")) if buffer else None
92-
label = f".. _{current_chapter}_sub_{current_subheader}:\n\n" if current_subheader else None
92+
label = f".. _{current_chapter}_{current_subheader}:\n\n" if current_subheader else None
9393
if label and not line_count == 2:
9494
print(f"Detected subheader: {current_subheader}, adding label: {label.strip()}")
9595
output_lines.append(label)
@@ -100,7 +100,7 @@ def sync_labels(input_file, output_file):
100100
elif re.match(r"^~+$", line):
101101
# Process sub-subheader
102102
subsubheader_text = sanitize_label(buffer.strip().lower().replace(" ", "_")) if buffer else None
103-
label = f".. _{current_chapter}_sub2_{subsubheader_text}:\n\n" if subsubheader_text else None
103+
label = f".. _{current_chapter}_{subsubheader_text}:\n\n" if subsubheader_text else None
104104
if label and not line_count == 2:
105105
print(f"Detected sub-subheader: {subsubheader_text}, adding label: {label.strip()}")
106106
output_lines.append(label)

0 commit comments

Comments
 (0)