diff --git a/.gitignore b/.gitignore index 4422f38..675a7f6 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /_site/ extensions/check-new-content.sh extensions/yaml +extensions/authors diff --git a/assets/stylesheets/theme.scss b/assets/stylesheets/theme.scss index 5a8b982..b947150 100644 --- a/assets/stylesheets/theme.scss +++ b/assets/stylesheets/theme.scss @@ -22,7 +22,3 @@ vertical-align: top; text-transform: capitalize; } - -#title-block-header.quarto-title-block.default .quarto-title .title { - display: none; -} diff --git a/extensions/_author-listing.qmd b/extensions/_author-listing.qmd new file mode 100644 index 0000000..8fab3e8 --- /dev/null +++ b/extensions/_author-listing.qmd @@ -0,0 +1,33 @@ +--- +title: "<>" +image: https://github.com/<>.png +about: + id: about-<> + template: solana + image-width: 9em + image-shape: round + links: + - text: "{{< iconify octicon:mark-github-16 >}} GitHub" + href: "https://github.com/<>" +repo-actions: false +listing: + id: listing-extensions-<> + contents: + - ../yaml/<>--**.yml + type: grid + sort-ui: [title, date, author, file-modified] + sort: + - stars desc + filter-ui: true + categories: true + page-size: 10 + grid-columns: 2 + grid-item-align: center + max-description-length: 500 +--- + +::: {#about-<>} +::: + +::: {#listing-extensions-<>} +::: diff --git a/extensions/make-yaml.sh b/extensions/make-yaml.sh index 70c342b..d47195a 100755 --- a/extensions/make-yaml.sh +++ b/extensions/make-yaml.sh @@ -3,6 +3,7 @@ set -e mkdir -p extensions/yaml +mkdir -p extensions/authors # mkdir -p extensions/readme declare -A repos @@ -43,7 +44,6 @@ while IFS=, read -r entry; do fi repo_description=$(echo "${repo_description}" | sed 's/^[[:space:]]*//') repo_description=$(echo "${repo_description}" | sed -E 's/([^`])(<[^<>]+>)([^`])/\1`\2`\3/g') - repo_topics=$(echo "${repo_info}" | jq -r ".repositoryTopics") if [[ "${repo_topics}" = "null" ]]; then repo_topics="[]" @@ -56,10 +56,11 @@ while IFS=, read -r entry; do repo_topics=$(echo "${repo_topics}" | jq -r 'map(select(. | test("quarto|extension|^pub$") | not))') repo_topics=$(echo "${repo_topics}" | jq -c 'unique') fi + author_listing="extensions/authors/${repo%%/*}.qmd" echo -e \ "- title: $(basename ${repo})\n" \ " path: https://github.com/${repo}\n" \ - " author: \"[${repo_author}](https://github.com/${repo_owner}/)\"\n" \ + " author: \"[${repo_author}](/${author_listing})\"\n" \ " date: \"${repo_created}\"\n" \ " file-modified: \"${repo_updated}\"\n" \ " categories: ${repo_topics}\n" \ @@ -69,6 +70,9 @@ while IFS=, read -r entry; do " description: |\n ${repo_description}\n${yaml_usage}\n" \ > "${meta}" # echo -e $(gh api "repos/${repo}/contents/README.md" -H "Accept: application/vnd.github.v3.raw") > "${readme}" + if [[ ! -f "${author_listing}" ]]; then + sed -e "s/<>/${repo%%/*}/g" -e "s/<>/\[${repo_author}\]\(https:\/\/github.com\/${repo_owner}\)/g" extensions/_author-listing.qmd > "${author_listing}" + fi fi done < extensions/quarto-extensions.csv