Skip to content

Commit e665aa9

Browse files
authored
Merge pull request #797 from felix-alonso/update-ms-external-links
chore: Update MS external links from docs subdomain to learn subdomain
2 parents a9ecebc + d495484 commit e665aa9

File tree

6 files changed

+11
-7
lines changed

6 files changed

+11
-7
lines changed

.paket/Paket.Restore.targets

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
<MSBuild Projects="$(PaketToolsPath)paket.bootstrapper.proj" Targets="Restore" />
112112
</Target>
113113

114-
<!-- Official workaround for https://docs.microsoft.com/en-us/visualstudio/msbuild/getfilehash-task?view=vs-2019 -->
114+
<!-- Official workaround for https://learn.microsoft.com/en-us/visualstudio/msbuild/getfilehash-task?view=vs-2019 -->
115115
<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' " />
116116
<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' " />
117117
<Target Name="PaketRestore" Condition="'$(PaketRestoreDisabled)' != 'True'" BeforeTargets="_GenerateDotnetCliToolReferenceSpecs;_GenerateProjectRestoreGraphPerFramework;_GenerateRestoreGraphWalkPerFramework;CollectPackageReferences" DependsOnTargets="SetPaketCommand;PaketBootstrapping">

RELEASE_NOTES.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 17.2.3
2+
3+
* Fix external docs link [#794](https://github.com/fsprojects/FSharp.Formatting/issues/794)
4+
15
## 17.2.2
26

37
* Improvement for `<seealso/>` [#789](https://github.com/fsprojects/FSharp.Formatting/issues/789)

docs/apidocs.fsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Usually the same template can be used as for [other content](content.html).
6464
6565
## Classic XML Doc Comments
6666
67-
XML Doc Comments may use [the normal F# and C# XML doc standards](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/xmldoc/).
67+
XML Doc Comments may use [the normal F# and C# XML doc standards](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/xmldoc/).
6868
6969
The tags that form the core of the XML doc specification are:
7070

docs/content/fsdocs-default.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ blockquote {
103103

104104

105105
/*--------------------------------------------------------------------------
106-
Formatting tables in fsdocs-content, using docs.microsoft.com tables
106+
Formatting tables in fsdocs-content, using learn.microsoft.com tables
107107
/*--------------------------------------------------------------------------*/
108108

109109
#fsdocs-content .table {

src/FSharp.Formatting.ApiDocs/GenerateModel.fs

+1-1
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ type internal CrossReferenceResolver(root, collectionName, qualify, extensions)
947947

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

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

952952
{ IsInternal = false
953953
ReferenceLink = link

tests/FSharp.ApiDocs.Tests/ApiDocsTests.fs

+3-3
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ let ``ApiDocs test that cref generation works`` (format: OutputFormat) =
644644
|> shouldContainText "Assembly"
645645

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

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

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

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

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

694694
[<Test>]
695695
[<TestCaseSource("formats")>]

0 commit comments

Comments
 (0)