Skip to content

Commit

Permalink
Added description for all release files
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlGao4 committed Aug 18, 2024
1 parent aad78e4 commit 1ae413b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update-gh-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ jobs:
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.PAGES_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/CarlGao4/ms-sounds-pages/actions/workflows/jekyll-gh-pages.yml/dispatches \
-d '{"ref":"main"}'
https://api.github.com/repos/CarlGao4/ms-sounds-pages/dispatches \
-d '{"event_type":"update-pages"}'
4 changes: 2 additions & 2 deletions gh-actions-generate-toc.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def human_readable_size(size):
markdown += f"### {catagory}\n\n"
for name in sorted(release_files[catagory].keys()):
markdown += f"#### {name}\n"
for asset in sorted(release_files[catagory][name], key=lambda x: x.rsplit(".", 1), reverse=True):
for asset in sorted(release_files[catagory][name], key=lambda x: reversed(x.rsplit(".", 1))):
asset_name = asset.replace("\\_", "_").replace("\\[", "[").replace("\\]", "]").replace("\\\\", "\\")
markdown += f"<details><summary>{asset_name}</summary>\n\n"
if (catagory, name, asset) in descriptions:
Expand All @@ -174,7 +174,7 @@ def human_readable_size(size):
markdown += f"#### [{name}]({instrument_urls[catagory][name]})\n"
else:
markdown += f"#### {name}\n"
for asset in sorted(instruments[catagory][name].keys(), key=lambda x: x.rsplit(".", 1), reverse=True):
for asset in sorted(instruments[catagory][name].keys(), key=lambda x: reversed(x.rsplit(".", 1))):
asset_name = asset.replace("\\_", "_").replace("\\[", "[").replace("\\]", "]").replace("\\\\", "\\")
markdown += f"<details><summary>{asset_name}</summary>\n\n"
if (catagory, name, asset) in descriptions:
Expand Down

0 comments on commit 1ae413b

Please sign in to comment.