Skip to content

Commit

Permalink
tools: Reformat the README table entries in the same way as in google…
Browse files Browse the repository at this point in the history
…-cloud-dotnet
  • Loading branch information
jskeet committed Oct 25, 2024
1 parent a6e74a2 commit 84b9a83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Src/Tools/UpdateReadmePackageList/PackageTableEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand All @@ -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}) |";
}

0 comments on commit 84b9a83

Please sign in to comment.