From 84b9a83f0f063066cfe22b938634c317611902c4 Mon Sep 17 00:00:00 2001 From: jon Date: Fri, 25 Oct 2024 11:34:19 +0100 Subject: [PATCH] tools: Reformat the README table entries in the same way as in google-cloud-dotnet --- Src/Tools/UpdateReadmePackageList/PackageTableEntry.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Src/Tools/UpdateReadmePackageList/PackageTableEntry.cs b/Src/Tools/UpdateReadmePackageList/PackageTableEntry.cs index 8ffe9d95a3e..cb215a964ed 100644 --- a/Src/Tools/UpdateReadmePackageList/PackageTableEntry.cs +++ b/Src/Tools/UpdateReadmePackageList/PackageTableEntry.cs @@ -24,6 +24,7 @@ internal class PackageTableEntry { public string PackageName { get; } public string NugetLink => $"https://www.nuget.org/packages/{PackageName}"; + public string NugetBadgeLink => $"https://img.shields.io/nuget/v/{PackageName}"; public string ReferenceDocsLink => $"https://googleapis.dev/dotnet/{PackageName}/latest/api/{PackageName}.html"; public string ApiDocsLink { get; } public string ApiName { get; } @@ -39,5 +40,5 @@ public static PackageTableEntry Load(string discoveryFilePath) => new(Discovery.ParseDiscoveryJson(File.ReadAllText(discoveryFilePath))); internal string ToMarkdown() => - $"|[{ApiName}]({ApiDocsLink})|[{PackageName}]({NugetLink})|[Library documentation]({ReferenceDocsLink})|"; + $"| [{PackageName}]({ReferenceDocsLink}) | [![NuGet]({NugetBadgeLink})]({NugetLink}) | [{ApiName}]({ApiDocsLink}) |"; }