From 54221ae93800b21e10377da56f30741cfdeaa1ba Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Mon, 20 Jun 2022 18:55:35 -0400 Subject: [PATCH] Use cached responses for AUR badges --- README.rst | 4 ++-- docs/source/about/third_party_packages.rst | 9 +++------ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/README.rst b/README.rst index 0e24b0cd..bc2e01e0 100644 --- a/README.rst +++ b/README.rst @@ -60,8 +60,8 @@ Downloads :alt: GitHub Releases :target: https://github.com/SunshineStream/Sunshine/releases/latest -.. image:: https://img.shields.io/aur/version/sunshine-git?style=for-the-badge&logo=archlinux - :alt: AUR version +.. image:: https://img.shields.io/badge/dynamic/json?color=blue&label=AUR&style=for-the-badge&query=$.results.0.NumVotes&url=https%3A%2F%2Fgithub.com%2FSunshineStream%2Fservice-repo%2Freleases%2Fdownload%2Fdaily%2Faur_sunshine-git.json&logo=archlinux + :alt: AUR votes :target: https://aur.archlinux.org/packages/sunshine-git .. comment diff --git a/docs/source/about/third_party_packages.rst b/docs/source/about/third_party_packages.rst index 7877e09c..99c7e96c 100644 --- a/docs/source/about/third_party_packages.rst +++ b/docs/source/about/third_party_packages.rst @@ -8,17 +8,14 @@ Third Party Packages AUR (Arch Linux User Repository) -------------------------------- -.. image:: https://img.shields.io/aur/version/sunshine?style=for-the-badge&logo=archlinux +.. image:: https://img.shields.io/badge/dynamic/json?color=orange&label=AUR&style=for-the-badge&prefix=v&query=$.results.0.Version&url=https%3A%2F%2Fgithub.com%2FSunshineStream%2Fservice-repo%2Freleases%2Fdownload%2Fdaily%2Faur_sunshine.json&logo=archlinux :alt: AUR version :target: https://aur.archlinux.org/packages/sunshine -.. image:: https://img.shields.io/aur/last-modified/sunshine?style=for-the-badge&logo=archlinux - :alt: AUR last modified - -.. image:: https://img.shields.io/aur/votes/sunshine?style=for-the-badge&logo=archlinux +.. image:: https://img.shields.io/badge/dynamic/json?color=yellowgreen&label=votes&style=for-the-badge&query=$.results.0.NumVotes&url=https%3A%2F%2Fgithub.com%2FSunshineStream%2Fservice-repo%2Freleases%2Fdownload%2Fdaily%2Faur_sunshine.json&logo=archlinux :alt: AUR votes -.. image:: https://img.shields.io/aur/maintainer/sunshine?style=for-the-badge&logo=archlinux +.. image:: https://img.shields.io/badge/dynamic/json?color=blue&label=maintainer&style=for-the-badge&query=$.results.0.Maintainer&url=https%3A%2F%2Fgithub.com%2FSunshineStream%2Fservice-repo%2Freleases%2Fdownload%2Fdaily%2Faur_sunshine.json&logo=archlinux :alt: AUR maintainer Chocolatey