Skip to content

Commit

Permalink
chore: harmonise reveal.js topics (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcanouil authored May 4, 2024
1 parent 2df4324 commit c8bb034
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion extensions/make-yaml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ while IFS=, read -r category repo; do
fi
description=$(echo "${description}" | sed 's/^[[:space:]]*//')
topics=$(gh api "repos/${repo}/topics" --jq ".names")
topics=$(echo "${topics}" | jq -r 'map(select(.) | sub("^quarto-"; "") | sub("-template[s]*"; "") | if test("filters$|formats$|journals$") then sub("s$"; "") else . end)')
topics=$(echo "${topics}" | jq -r 'map(select(.) | sub("^quarto-"; ""))')
topics=$(echo "${topics}" | jq -r 'map(select(.) | sub("-template[s]*"; ""))')
topics=$(echo "${topics}" | jq -r 'map(select(.) | if test("filters$|formats$|journals$") then sub("s$"; "") else . end)')
topics=$(echo "${topics}" | jq -r 'map(select(.) | sub("reveal-js"; "reveal.js") | sub("revealjs"; "reveal.js"))')
topics=$(echo "${topics}" | jq -r 'map(select(. | test("quarto|extension|^pub$") | not))')
topics=$(echo "${topics}" | jq -r 'unique')
yaml_usage="\n \n \`\`\`sh\n quarto add ${repo}\n \`\`\`"
Expand Down

0 comments on commit c8bb034

Please sign in to comment.