Skip to content

Commit

Permalink
update papers from Prof. Toby Li
Browse files Browse the repository at this point in the history
  • Loading branch information
boyugou committed Dec 18, 2024
1 parent 56689b0 commit e931326
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ jobs:
- name: Generate keyword grouping and update temp_readme.md
run: |
# Dynamically generate a Markdown table for keywords
# Generate a Markdown table for keywords with proper URL encoding
GROUPED_KEYWORDS="|"
ROW_COUNT=0
for file in paper_by_key/*.md; do
# Extract keyword and format it for display and link
KEYWORD=$(basename "$file" .md | sed 's/^paper_//' | tr '_' ' ')
LINK="[${KEYWORD^}](paper_by_key/$(basename "$file"))"
ENCODED_KEYWORD=$(echo "$KEYWORD" | sed 's/ /%20/g')
LINK="[${KEYWORD}](paper_by_key/$(basename "$file"))"
GROUPED_KEYWORDS+="$LINK |"
ROW_COUNT=$((ROW_COUNT + 1))
Expand Down

0 comments on commit e931326

Please sign in to comment.