Skip to content

Commit

Permalink
Update generated content script and change style
Browse files Browse the repository at this point in the history
  • Loading branch information
tungbq committed May 25, 2024
1 parent 37fa559 commit 1ac569b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions generate_content.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ generate_repo_table() {
repo_base_name=$(basename $repo_name)

local repo_hyperlink="<a href=\"https://github.com/$repo_name\">$repo_name</a>"
local stars="<a href=\"https://github.com/$repo_name/stargazers\"><img alt=\"GitHub Repo stars\" src=\"https://img.shields.io/github/stars/$repo_name?style=social\"/></a>"
local stars="<a href=\"https://github.com/$repo_name/stargazers\"><img alt=\"GitHub Repo stars\" src=\"https://img.shields.io/github/stars/$repo_name?style=flat\"/></a>"

# At header in the first run
if [[ "$index" == "1" ]]; then
Expand All @@ -50,7 +50,6 @@ generate_repo_table() {
fi

echo "| $index | $repo_hyperlink | $description | $stars |" >> README.md

}

# Start README file with header
Expand Down Expand Up @@ -87,11 +86,5 @@ while IFS= read -r repo_name; do
((index++))
done <"$REPOSITORY_LIST"

## Table closing
if [[ "$MODE" == "table" ]]; then
# End HTML table
echo "</table>" >>README.md
fi

echo "" >>README.md
echo "For full list of repositories, click [**here**](https://github.com/${GITHUB_OWNER}?tab=repositories&q=&type=&language=&sort=stargazers)." >>README.md

0 comments on commit 1ac569b

Please sign in to comment.