Skip to content

Commit c0355f5

Browse files
authored
Update convert_to_html_tables.py
1 parent 3eeab16 commit c0355f5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/scripts/convert_to_html_tables.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ def main():
9191
demo_path = details['demo-path']
9292
if ' ' in demo_path:
9393
demo_path = '%20'.join(demo_path.split())
94-
demo_path_output = f'<a href="{demo_path}" title="view the result of {title}">/{REPO_NAME}/{title}/</a>'
94+
demo_path_output = f'<a href="{demo_path}" title="view the result of {title}">/{REPO_NAME}/{title}/</a>'
95+
if title == 'root' or title == '{init}':
96+
demo_path_output = f'<a href="{demo_path}" title="view the result of {title}">/{REPO_NAME}/</a>'
97+
9598

9699
# Appending all data together
97100
updated_lines.append('\t<tr align="center">\n')
@@ -116,4 +119,4 @@ def main():
116119

117120

118121
if __name__ == '__main__':
119-
main()
122+
main()

0 commit comments

Comments
 (0)