Skip to content

Commit a1933fe

Browse files
authored
Update update_index_md.py
Updated the script to generate proper markdown files, especially for recent changes
1 parent 3b83d48 commit a1933fe

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/scripts/update_index_md.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ def main():
121121
demo_path_output = f'[/{REPO_NAME}/{title}/]({demo_path} "view the result of {title}")'
122122
if title == 'root' or title == '{init}':
123123
demo_path_output = f'[/{REPO_NAME}/]({demo_path} "view the result of {title}")'
124+
elif title == '{workflows}':
125+
demo_path_output = f'[/{REPO_NAME}/.github/workflows]({demo_path} "view the result of {title}")'
126+
elif title == '{scripts}':
127+
demo_path_output = f'[/{REPO_NAME}/.github/scripts]({demo_path} "view the result of {title}")'
128+
elif title == '{others}':
129+
demo_path_output = f'[/{REPO_NAME}/.github]({demo_path} "view the result of {title}")'
124130

125131
# Appending all data together
126132
updated_lines.append(f'| {title} | {contributors_names_output} | {pull_requests_output} | {demo_path_output} |\n')
@@ -137,4 +143,4 @@ def main():
137143

138144

139145
if __name__ == '__main__':
140-
main()
146+
main()

0 commit comments

Comments
 (0)