Skip to content

Commit

Permalink
refactor: simplify csv format with repo only
Browse files Browse the repository at this point in the history
Fixes #47
  • Loading branch information
mcanouil committed Jul 5, 2024
1 parent 8421dd4 commit 67f74a9
Show file tree
Hide file tree
Showing 4 changed files with 172 additions and 173 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
error=false
add_extension=$(gh pr view "${NUMBER}" --json files --jq '.files[] | select(.path == "extensions/quarto-extensions.csv")')
if [[ -n "${add_extension}" ]]; then
gh pr diff ${NUMBER} --patch | grep -E '^(\+shortcodes-filters,|\+formats,)' > diff.patch
gh pr diff ${NUMBER} --patch | grep -E '^\+[^+]' > diff.patch
if [[ -s diff.patch ]]; then
while IFS=, read -r category repo; do
repo_topics=$(gh repo view --json repositoryTopics "${repo}" --jq ".repositoryTopics")
Expand All @@ -77,7 +77,7 @@ jobs:
error=false
add_extension=$(gh pr view "${NUMBER}" --json files --jq '.files[] | select(.path == "extensions/quarto-extensions.csv")')
if [[ -n "${add_extension}" ]]; then
gh pr diff ${NUMBER} --patch | grep -E '^(\+shortcodes-filters,|\+formats,)' > diff.patch
gh pr diff ${NUMBER} --patch | grep -E '^\+[^+]' > diff.patch
if [[ -s diff.patch ]]; then
while IFS=, read -r category repo; do
repo_description=$(gh repo view --json description "${repo}" --jq ".description")
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ To add your extension to this list, please submit a pull request to this reposit
Example:

```csv
shortcodes-filters,mcanouil/quarto-iconify
formats,mcanouil/quarto-revealjs-coeos
mcanouil/quarto-iconify
quarto-revealjs-coeos
```

> [!IMPORTANT]
Expand Down
7 changes: 3 additions & 4 deletions extensions/make-yaml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ mkdir -p extensions/yaml
# mkdir -p extensions/readme
declare -A repos

while IFS=, read -r category repo; do
while IFS=, read -r entry; do
repo=$(echo "${entry}" | cut -d'/' -f1,2)
repos["$repo"]=1
meta="extensions/yaml/${repo//\//--}.yml"
# readme="extensions/readme/${repo//\//--}.md"
if [[ ! -f "${meta}" || (-f "${meta}" && $(find "$meta" -mtime +30)) ]]; then
repo_info=$(gh repo view --json owner,description,createdAt,updatedAt,latestRelease,licenseInfo,stargazerCount,repositoryTopics "${repo}")
repo_created=$(echo "${repo_info}" | jq -r ".createdAt")
Expand Down Expand Up @@ -52,14 +52,13 @@ while IFS=, read -r category repo; do
repo_topics=$(echo "${repo_topics}" | jq -r 'map(select(. | test("quarto|extension|^pub$") | not))')
repo_topics=$(echo "${repo_topics}" | jq -c 'unique')
fi
yaml_usage="\n \n \`\`\`sh\n quarto add ${repo}\n \`\`\`"
yaml_usage="\n \n \`\`\`sh\n quarto add ${entry}\n \`\`\`"
echo -e \
"- title: $(basename ${repo})\n" \
" path: https://github.com/${repo}\n" \
" author: \"[${repo_author}](https://github.com/${repo_owner}/)\"\n" \
" date: \"${repo_created}\"\n" \
" file-modified: \"${repo_updated}\"\n" \
" type: [${category}]\n" \
" categories: ${repo_topics}\n" \
" license: \"${repo_license}\"\n" \
" stars: \"[$(printf "%05d\n" ${repo_stars})]{style='display: none;'}[[\`★\`{=html}]{style='color:#dcbe50;'} ${repo_stars}](https://github.com/${repo}/stargazers)\"\n" \
Expand Down
330 changes: 165 additions & 165 deletions extensions/quarto-extensions.csv
Original file line number Diff line number Diff line change
@@ -1,165 +1,165 @@
shortcodes-filters,mcanouil/quarto-lua-env
shortcodes-filters,mcanouil/quarto-spotlight
shortcodes-filters,mcanouil/quarto-iconify
shortcodes-filters,mcanouil/quarto-elevator
shortcodes-filters,mcanouil/quarto-animate
shortcodes-filters,mcanouil/quarto-version-badge
shortcodes-filters,mcanouil/quarto-preview-colour
formats,mcanouil/quarto-revealjs-coeos
formats,mcanouil/quarto-revealjs-storybook
formats,mcanouil/quarto-letter
formats,mcanouil/quarto-invoice
formats,RLille/quarto-revealjs-rlille
shortcodes-filters,quarto-ext/fancy-text
shortcodes-filters,quarto-ext/fontawesome
shortcodes-filters,quarto-ext/latex-environment
shortcodes-filters,quarto-ext/lightbox
shortcodes-filters,jmgirard/lordicon
shortcodes-filters,schochastics/academicons
shortcodes-filters,jmbuhr/quarto-molstar
shortcodes-filters,pandoc-ext/abstract-section
shortcodes-filters,andrie/reveal-auto-agenda
shortcodes-filters,schochastics/quarto-social-share
shortcodes-filters,schochastics/quarto-nutshell
shortcodes-filters,pandoc-ext/section-bibliographies
shortcodes-filters,jmbuhr/quarto-qrcode
shortcodes-filters,jjallaire/code-visibility
shortcodes-filters,EmilHvitfeldt/quarto-roughnotation
shortcodes-filters,quarto-ext/attribution
shortcodes-filters,quarto-ext/shinylive
shortcodes-filters,quarto-ext/pointer
shortcodes-filters,sellorm/quarto-social-embeds
shortcodes-filters,shafayetShafee/bsicons
shortcodes-filters,shafayetShafee/collapse-callout
shortcodes-filters,quarto-ext/include-code-files
shortcodes-filters,EmilHvitfeldt/quarto-designmode
shortcodes-filters,ArthurData/quarto-confetti
shortcodes-filters,feynlee/code-insertion
shortcodes-filters,EmilHvitfeldt/quarto-snow
shortcodes-filters,zachcp/quarto-swissbiopics
shortcodes-filters,dfalbel/chord-sheet
shortcodes-filters,jskherman/inadsense
shortcodes-filters,jlgraves-ubc/forms
shortcodes-filters,smutch/quarto-rev-history
shortcodes-filters,Martinomagnifico/quarto-verticator
shortcodes-filters,pandoc-ext/multibib
shortcodes-filters,CenterOnBudget/quarto-stata-facade
shortcodes-filters,kapsner/authors-block
shortcodes-filters,shafayetShafee/line-highlight
shortcodes-filters,sokotim/hedgedoc-slides
shortcodes-filters,shafayetShafee/collapse-social-embeds
shortcodes-filters,shafayetShafee/reveal-header
shortcodes-filters,shafayetShafee/downloadthis
shortcodes-filters,shafayetShafee/add-code-files
shortcodes-filters,shafayetShafee/hide-comment
shortcodes-filters,shafayetShafee/nameref
shortcodes-filters,shafayetShafee/material-icons
shortcodes-filters,coatless/quarto-webr
shortcodes-filters,coatless-quarto/pyodide
shortcodes-filters,coatless-quarto/adsense
shortcodes-filters,shafayetShafee/black-formatter
shortcodes-filters,jmgirard/embedpdf
shortcodes-filters,ute/custom-numbered-blocks
shortcodes-filters,shafayetShafee/interactive-sql
shortcodes-filters,andrewpbray/glossary
shortcodes-filters,EmilHvitfeldt/quarto-revealjs-codewindow
shortcodes-filters,EmilHvitfeldt/quarto-revealjs-highlightword
shortcodes-filters,rchaput/acronyms
formats,quarto-journals/acm
formats,quarto-journals/acs
formats,quarto-journals/agu
formats,quarto-journals/biophysical-journal
formats,quarto-journals/elsevier
formats,quarto-journals/jasa
formats,quarto-journals/jss
formats,quarto-journals/plos
formats,mikemahoney218/quarto-arxiv
formats,mikemahoney218/quarto-tandf
formats,smnnlt/sportrxiv
formats,computorg/computo-quarto-extension
formats,kelly-sovacool/asm-msystems
formats,juliantao/quarto-asce
formats,sebdunnett/quarto-iop
formats,espinielli/joas-template
formats,christopherkenny/pnas
formats,christopherkenny/apsr
formats,beatrizmilz/quarto-rladies-theme
formats,RLesur/onyxia-quarto
formats,hrbrmstr/quarto-organization-template
formats,schochastics/quarto-blackboard-theme
formats,EmilHvitfeldt/quarto-nes-theme
formats,padsInsper/quarto-insper-theme
formats,EmilHvitfeldt/quarto-revealjs-letterbox
formats,malcolmbarrett/kakashi-quarto-theme
formats,grantmcdermott/quarto-revealjs-clean
formats,EmilHvitfeldt/quarto-revealjs-cinco-de-mayo
formats,pharmaR/rvalhub-quarto
formats,ThinkR-open/quakr
formats,schochastics/quarto-sketchy-html
formats,mccarthy-m-g/quarto-lcars-theme
formats,juba/bookup-html
formats,andrewheiss/hikmah-academic-quarto
formats,nmfs-opensci/quarto_titlepages
formats,cmarquardt/quarto-simple-article
formats,juliantao/qletter
formats,nareal/nastatement
formats,nareal/naletter
formats,nareal/nanotes
formats,numbats/monash-quarto-letter
formats,numbats/monash-quarto-memo
formats,numbats/monash-quarto-workingpaper
formats,numbats/monash-quarto-report
formats,numbats/monash-quarto-thesis
formats,mavam/quarto-brief
formats,arcruz0/quarto-compact
formats,mps9506/quarto-cv
formats,spyrales/quarto-gouv
formats,davidcarayon/quarto-inrae-extension
formats,fredguth/tufte-quarto
formats,wjschne/apaquarto
shortcodes-filters,shafayetShafee/code-fullscreen
shortcodes-filters,leovan/quarto-pseudocode
shortcodes-filters,dialoa/first-line-indent
shortcodes-filters,dialoa/recursive-citeproc
shortcodes-filters,ute/search-replace
shortcodes-filters,ttalVlatt/Quarto-Docx-Horizontal-Rule
shortcodes-filters,clearmatics/qreacto
shortcodes-filters,data-intuitive/quarto-d2
shortcodes-filters,kdheepak/quarto-svgbob
shortcodes-filters,andrewheiss/quarto-wordcount
formats,coatless/quarto-illinois
shortcodes-filters,produnis/quarto-timer
shortcodes-filters,dragonstyle/share-post
shortcodes-filters,bcdavasconcelos/citetools
formats,produnis/hsnr-revealjs
formats,produnis/publicationlist
formats,produnis/quarto-cv
formats,produnis/quarto-cheatsheet
shortcodes-filters,mloubout/critic-markup
formats,mps9506/quarto-lapreprint
formats,gl-eb/minimal-doc
shortcodes-filters,gadenbuie/quarto-now
shortcodes-filters,coatless-quarto/embedio
shortcodes-filters,gadenbuie/countdown
shortcodes-filters,gadenbuie/revealjs-text-resizer
shortcodes-filters,mcanouil/quarto-highlight-text
formats,ihrke/mdpi
shortcodes-filters,AndreasThinks/quarto-mastodon-comments
shortcodes-filters,leovan/quarto-style-text
shortcodes-filters,dragonstyle/unsplash
shortcodes-filters,dialoa/imagify
shortcodes-filters,coatless-quarto/options
shortcodes-filters,coatless-quarto/codecelloptions
formats,christopherkenny/nature
formats,dfolio/quarto-ieee
formats,coatless-quarto/stanford
formats,AaronGullickson/aog-article-quarto
formats,cct-datascience/uaz-revealjs
formats,kazuyanagimoto/quarto-awesomecv-typst
shortcodes-filters,ofkoru/quarto-leader-line
shortcodes-filters,ofkoru/quarto-animate-graph
shortcodes-filters,coatless-quarto/assign
shortcodes-filters,coatless-quarto/panelize
shortcodes-filters,parmsam/quarto-flashcards
shortcodes-filters,pagiraud/fullframegraphics
shortcodes-filters,qmd-lab/scheduled-docs
mcanouil/quarto-lua-env
mcanouil/quarto-spotlight
mcanouil/quarto-iconify
mcanouil/quarto-elevator
mcanouil/quarto-animate
mcanouil/quarto-version-badge
mcanouil/quarto-preview-colour
mcanouil/quarto-revealjs-coeos
mcanouil/quarto-revealjs-storybook
mcanouil/quarto-letter
mcanouil/quarto-invoice
RLille/quarto-revealjs-rlille
quarto-ext/fancy-text
quarto-ext/fontawesome
quarto-ext/latex-environment
quarto-ext/lightbox
jmgirard/lordicon
schochastics/academicons
jmbuhr/quarto-molstar
pandoc-ext/abstract-section
andrie/reveal-auto-agenda
schochastics/quarto-social-share
schochastics/quarto-nutshell
pandoc-ext/section-bibliographies
jmbuhr/quarto-qrcode
jjallaire/code-visibility
EmilHvitfeldt/quarto-roughnotation
quarto-ext/attribution
quarto-ext/shinylive
quarto-ext/pointer
sellorm/quarto-social-embeds
shafayetShafee/bsicons
shafayetShafee/collapse-callout
quarto-ext/include-code-files
EmilHvitfeldt/quarto-designmode
ArthurData/quarto-confetti
feynlee/code-insertion
EmilHvitfeldt/quarto-snow
zachcp/quarto-swissbiopics
dfalbel/chord-sheet
jskherman/inadsense
jlgraves-ubc/forms
smutch/quarto-rev-history
Martinomagnifico/quarto-verticator
pandoc-ext/multibib
CenterOnBudget/quarto-stata-facade
kapsner/authors-block
shafayetShafee/line-highlight
sokotim/hedgedoc-slides
shafayetShafee/collapse-social-embeds
shafayetShafee/reveal-header
shafayetShafee/downloadthis
shafayetShafee/add-code-files
shafayetShafee/hide-comment
shafayetShafee/nameref
shafayetShafee/material-icons
coatless/quarto-webr
coatless-quarto/pyodide
coatless-quarto/adsense
shafayetShafee/black-formatter
jmgirard/embedpdf
ute/custom-numbered-blocks
shafayetShafee/interactive-sql
andrewpbray/glossary
EmilHvitfeldt/quarto-revealjs-codewindow
EmilHvitfeldt/quarto-revealjs-highlightword
rchaput/acronyms
quarto-journals/acm
quarto-journals/acs
quarto-journals/agu
quarto-journals/biophysical-journal
quarto-journals/elsevier
quarto-journals/jasa
quarto-journals/jss
quarto-journals/plos
mikemahoney218/quarto-arxiv
mikemahoney218/quarto-tandf
smnnlt/sportrxiv
computorg/computo-quarto-extension
kelly-sovacool/asm-msystems
juliantao/quarto-asce
sebdunnett/quarto-iop
espinielli/joas-template
christopherkenny/pnas
christopherkenny/apsr
beatrizmilz/quarto-rladies-theme
RLesur/onyxia-quarto
hrbrmstr/quarto-organization-template
schochastics/quarto-blackboard-theme
EmilHvitfeldt/quarto-nes-theme
padsInsper/quarto-insper-theme
EmilHvitfeldt/quarto-revealjs-letterbox
malcolmbarrett/kakashi-quarto-theme
grantmcdermott/quarto-revealjs-clean
EmilHvitfeldt/quarto-revealjs-cinco-de-mayo
pharmaR/rvalhub-quarto
ThinkR-open/quakr
schochastics/quarto-sketchy-html
mccarthy-m-g/quarto-lcars-theme
juba/bookup-html
andrewheiss/hikmah-academic-quarto
nmfs-opensci/quarto_titlepages
cmarquardt/quarto-simple-article
juliantao/qletter
nareal/nastatement
nareal/naletter
nareal/nanotes
numbats/monash-quarto-letter
numbats/monash-quarto-memo
numbats/monash-quarto-workingpaper
numbats/monash-quarto-report
numbats/monash-quarto-thesis
mavam/quarto-brief
arcruz0/quarto-compact
mps9506/quarto-cv
spyrales/quarto-gouv
davidcarayon/quarto-inrae-extension
fredguth/tufte-quarto
wjschne/apaquarto
shafayetShafee/code-fullscreen
leovan/quarto-pseudocode
dialoa/first-line-indent
dialoa/recursive-citeproc
ute/search-replace
ttalVlatt/Quarto-Docx-Horizontal-Rule
clearmatics/qreacto
data-intuitive/quarto-d2
kdheepak/quarto-svgbob
andrewheiss/quarto-wordcount
coatless/quarto-illinois
produnis/quarto-timer
dragonstyle/share-post
bcdavasconcelos/citetools
produnis/hsnr-revealjs
produnis/publicationlist
produnis/quarto-cv
produnis/quarto-cheatsheet
mloubout/critic-markup
mps9506/quarto-lapreprint
gl-eb/minimal-doc
gadenbuie/quarto-now
coatless-quarto/embedio
gadenbuie/countdown/quarto
gadenbuie/revealjs-text-resizer
mcanouil/quarto-highlight-text
ihrke/mdpi
AndreasThinks/quarto-mastodon-comments
leovan/quarto-style-text
dragonstyle/unsplash
dialoa/imagify
coatless-quarto/options
coatless-quarto/codecelloptions
christopherkenny/nature
dfolio/quarto-ieee
coatless-quarto/stanford
AaronGullickson/aog-article-quarto
cct-datascience/uaz-revealjs
kazuyanagimoto/quarto-awesomecv-typst
ofkoru/quarto-leader-line
ofkoru/quarto-animate-graph
coatless-quarto/assign
coatless-quarto/panelize
parmsam/quarto-flashcards
pagiraud/fullframegraphics
qmd-lab/scheduled-docs

0 comments on commit 67f74a9

Please sign in to comment.