Skip to content

Commit

Permalink
Merge pull request #797 from felix-alonso/update-ms-external-links
Browse files Browse the repository at this point in the history
chore: Update MS external links from docs subdomain to learn subdomain
  • Loading branch information
nojaf authored Feb 21, 2023
2 parents a9ecebc + d495484 commit e665aa9
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .paket/Paket.Restore.targets
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
<MSBuild Projects="$(PaketToolsPath)paket.bootstrapper.proj" Targets="Restore" />
</Target>

<!-- Official workaround for https://docs.microsoft.com/en-us/visualstudio/msbuild/getfilehash-task?view=vs-2019 -->
<!-- Official workaround for https://learn.microsoft.com/en-us/visualstudio/msbuild/getfilehash-task?view=vs-2019 -->
<UsingTask TaskName="Microsoft.Build.Tasks.GetFileHash" AssemblyName="Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Condition=" '$(MSBuildSupportsHashing)' == 'true' And '$(DetectedMSBuildVersion)' &lt; '16.0.360' " />
<UsingTask TaskName="Microsoft.Build.Tasks.VerifyFileHash" AssemblyName="Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Condition=" '$(MSBuildSupportsHashing)' == 'true' And '$(DetectedMSBuildVersion)' &lt; '16.0.360' " />
<Target Name="PaketRestore" Condition="'$(PaketRestoreDisabled)' != 'True'" BeforeTargets="_GenerateDotnetCliToolReferenceSpecs;_GenerateProjectRestoreGraphPerFramework;_GenerateRestoreGraphWalkPerFramework;CollectPackageReferences" DependsOnTargets="SetPaketCommand;PaketBootstrapping">
Expand Down
4 changes: 4 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 17.2.3

* Fix external docs link [#794](https://github.com/fsprojects/FSharp.Formatting/issues/794)

## 17.2.2

* Improvement for `<seealso/>` [#789](https://github.com/fsprojects/FSharp.Formatting/issues/789)
Expand Down
2 changes: 1 addition & 1 deletion docs/apidocs.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Usually the same template can be used as for [other content](content.html).
## Classic XML Doc Comments
XML Doc Comments may use [the normal F# and C# XML doc standards](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/xmldoc/).
XML Doc Comments may use [the normal F# and C# XML doc standards](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/xmldoc/).
The tags that form the core of the XML doc specification are:
Expand Down
2 changes: 1 addition & 1 deletion docs/content/fsdocs-default.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ blockquote {


/*--------------------------------------------------------------------------
Formatting tables in fsdocs-content, using docs.microsoft.com tables
Formatting tables in fsdocs-content, using learn.microsoft.com tables
/*--------------------------------------------------------------------------*/

#fsdocs-content .table {
Expand Down
2 changes: 1 addition & 1 deletion src/FSharp.Formatting.ApiDocs/GenerateModel.fs
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ type internal CrossReferenceResolver(root, collectionName, qualify, extensions)

let docs = noParen.Replace("``", "").Replace("`", "-").ToLower()

let link = sprintf "https://docs.microsoft.com/dotnet/api/%s" docs
let link = sprintf "https://learn.microsoft.com/dotnet/api/%s" docs

{ IsInternal = false
ReferenceLink = link
Expand Down
6 changes: 3 additions & 3 deletions tests/FSharp.ApiDocs.Tests/ApiDocsTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ let ``ApiDocs test that cref generation works`` (format: OutputFormat) =
|> shouldContainText "Assembly"

files.[(sprintf "creflib4-class4.%s" format.Extension)]
|> shouldContainText "https://docs.microsoft.com/dotnet/api/system.reflection.assembly"
|> shouldContainText "https://learn.microsoft.com/dotnet/api/system.reflection.assembly"

// F# tests (at least we not not crash for them, compiler doesn't resolve anything)
// reference class in same assembly
Expand All @@ -660,7 +660,7 @@ let ``ApiDocs test that cref generation works`` (format: OutputFormat) =

files.[(sprintf "creflib2-class4.%s" format.Extension)]
|> shouldContainText "Assembly"
//files.[(sprintf "creflib2-class4.%s" format.Extension)] |> shouldContainText "https://docs.microsoft.com/dotnet/api/system.reflection.assembly"
//files.[(sprintf "creflib2-class4.%s" format.Extension)] |> shouldContainText "https://learn.microsoft.com/dotnet/api/system.reflection.assembly"

// F# tests (fully quallified)
// reference class in same assembly
Expand Down Expand Up @@ -689,7 +689,7 @@ let ``ApiDocs test that cref generation works`` (format: OutputFormat) =
|> shouldContainText "Assembly"

files.[(sprintf "creflib2-class8.%s" format.Extension)]
|> shouldContainText "https://docs.microsoft.com/dotnet/api/system.reflection.assembly"
|> shouldContainText "https://learn.microsoft.com/dotnet/api/system.reflection.assembly"

[<Test>]
[<TestCaseSource("formats")>]
Expand Down

0 comments on commit e665aa9

Please sign in to comment.