Skip to content

Commit

Permalink
Update readme link (#9358)
Browse files Browse the repository at this point in the history
* update reference link
  • Loading branch information
lyndaidaii authored Jan 31, 2023
1 parent 6f0bd1e commit 83f98b7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions src/NuGetGallery/Strings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/NuGetGallery/Strings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -539,10 +539,10 @@ For more information, please contact '{2}'.</value>
<value>The Documentation URL must be a raw Markdown file hosted on GitHub.</value>
</data>
<data name="UploadPackage_MissingReadmeHtml" xml:space="preserve">
<value>&lt;strong&gt;Readme&lt;/strong&gt; missing.&lt;a href="https://learn.microsoft.com/nuget/create-packages/package-authoring-best-practices#readme"&gt; See how to include a readme file within the package&lt;/a&gt;, or add it as you upload.</value>
<value>&lt;strong&gt;Readme&lt;/strong&gt; missing.&lt;a href="https://aka.ms/nuget-include-readme"&gt; See how to include a readme file within the package&lt;/a&gt;, or add it as you upload.</value>
</data>
<data name="UploadPackage_MissingReadme" xml:space="preserve">
<value>Readme missing. Go to https://learn.microsoft.com/nuget/create-packages/package-authoring-best-practices#readme learn How to include a readme file within the package.</value>
<value>Readme missing. Go to https://aka.ms/nuget-include-readme learn How to include a readme file within the package.</value>
</data>
<data name="ReservedNamespace_OwnerAdded" xml:space="preserve">
<value>The user '{0}' is now an owner of the prefix '{1}'.</value>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1500,8 +1500,8 @@ public async Task WarnsAboutPackagesWithoutReadmeWhenDisplayUploadWarningV2Enabl
Assert.Null(result.Message);
var warning = Assert.Single(result.Warnings);
Assert.IsType<UploadPackageMissingReadme>(warning);
Assert.StartsWith("Readme missing. Go to https://learn.microsoft.com/nuget/create-packages/package-authoring-best-practices#readme learn How to include a readme file within the package.", warning.PlainTextMessage);
Assert.StartsWith("<strong>Readme</strong> missing.<a href=\"https://learn.microsoft.com/nuget/create-packages/package-authoring-best-practices#readme\"> See how to include a readme file within the package</a>, or add it as you upload.", warning.RawHtmlMessage);
Assert.StartsWith("Readme missing. Go to https://aka.ms/nuget-include-readme learn How to include a readme file within the package.", warning.PlainTextMessage);
Assert.StartsWith("<strong>Readme</strong> missing.<a href=\"https://aka.ms/nuget-include-readme\"> See how to include a readme file within the package</a>, or add it as you upload.", warning.RawHtmlMessage);
}

[Fact]
Expand All @@ -1527,8 +1527,8 @@ public async Task WarnsAboutPackagesWithoutWhenEmbeddedReadmeNotEnabledAndDispla
Assert.Null(result.Message);
var warning = Assert.Single(result.Warnings);
Assert.IsType<UploadPackageMissingReadme>(warning);
Assert.StartsWith("Readme missing. Go to https://learn.microsoft.com/nuget/create-packages/package-authoring-best-practices#readme learn How to include a readme file within the package.", warning.PlainTextMessage);
Assert.StartsWith("<strong>Readme</strong> missing.<a href=\"https://learn.microsoft.com/nuget/create-packages/package-authoring-best-practices#readme\"> See how to include a readme file within the package</a>, or add it as you upload.", warning.RawHtmlMessage);
Assert.StartsWith("Readme missing. Go to https://aka.ms/nuget-include-readme learn How to include a readme file within the package.", warning.PlainTextMessage);
Assert.StartsWith("<strong>Readme</strong> missing.<a href=\"https://aka.ms/nuget-include-readme\"> See how to include a readme file within the package</a>, or add it as you upload.", warning.RawHtmlMessage);
}

private async Task<PackageValidationResult> ValidatePackageWithReadme(string readmePath, byte[] readmeFileData)
Expand Down

0 comments on commit 83f98b7

Please sign in to comment.