Skip to content

Commit bec9a63

Browse files
committed
Updated all tests to incorporate the latest changes
1 parent d96aeba commit bec9a63

22 files changed

+50
-29
lines changed

scripts/HPC_chatbot_preprocessor/chatbot_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def make_valid_link(link, main_title, is_linux_tutorial):
165165
link = link.replace('../', '')
166166

167167
if link.startswith("#"):
168-
link = DOCS_URL + '/' + linux_part + main_title + "/" + link
168+
link = DOCS_URL + '/' + linux_part + main_title.replace(".md", "") + "/" + link
169169
elif link.endswith(".md") and ("/" not in link or "." not in link.split("/")[0]):
170170
link = DOCS_URL + '/' + linux_part + link.replace(".md", "")
171171
elif '.md#' in link:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"parent_title": "",
1111
"previous_title": null,
12-
"next_title": "tps1_paragraph_2",
12+
"next_title": "tps1_paragraph_002",
1313
"OS": "generic",
1414
"reference_link": "https://docs.hpc.ugent.be/tps1/#main-title"
1515
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"title_depth": 2,
66
"directory": "tps1",
77
"parent_title": "",
8-
"previous_title": "tps1_paragraph_2",
8+
"previous_title": "tps1_paragraph_002",
99
"next_title": null,
1010
"OS": "generic",
1111
"reference_link": "https://docs.hpc.ugent.be/tps1/#conclusion"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"links": {
99
"0": "https://docs.hpc.ugent.be/linuxmacos"
1010
},
11-
"previous_title": "tps1_paragraph_1",
12-
"next_title": "tps1_linux_paragraph_2.2",
11+
"previous_title": "tps1_paragraph_001",
12+
"next_title": "tps1_linux_paragraph_002.002",
1313
"OS": "linux",
1414
"reference_link": "https://docs.hpc.ugent.be/Linux/tps1/#os-specific-sections"
1515
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"title_depth": 3,
66
"directory": "tps1",
77
"parent_title": "OS-specific-sections",
8-
"previous_title": "tps1_linux_paragraph_2.1",
9-
"next_title": "tps1_paragraph_3",
8+
"previous_title": "tps1_linux_paragraph_002.001",
9+
"next_title": "tps1_paragraph_003",
1010
"OS": "linux",
1111
"reference_link": "https://docs.hpc.ugent.be/Linux/tps1/#non-windows-section"
1212
}

0 commit comments

Comments
 (0)