From d30b9761e5f645fcb8d6fdec846589299fc3b627 Mon Sep 17 00:00:00 2001 From: Florian Verdonck Date: Mon, 16 Sep 2024 20:11:35 +0200 Subject: [PATCH] Fix docs for F# language (#17750) --- docs/release-notes/About.md | 2 +- docs/release-notes/Language.fsx | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/release-notes/About.md b/docs/release-notes/About.md index 20e5138533c..5a8434709d3 100644 --- a/docs/release-notes/About.md +++ b/docs/release-notes/About.md @@ -7,7 +7,7 @@ title: About # About -The release notes for the [F\# language](./Language.md), [FSharp.Core](./FSharp.Core.md) and [FSharp.Compiler.Service](./FSharp.Compiler.Service.md) are based on the [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) format. +The release notes for the [F\# language](./Language.html), [FSharp.Core](./FSharp.Core.html) and [FSharp.Compiler.Service](./FSharp.Compiler.Service.html) are based on the [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) format. The target audience of these release notes are the respective end-users. ## Writing a changelog entry diff --git a/docs/release-notes/Language.fsx b/docs/release-notes/Language.fsx index 73c173e7774..3bcd6f14c3d 100644 --- a/docs/release-notes/Language.fsx +++ b/docs/release-notes/Language.fsx @@ -25,7 +25,11 @@ Directory.EnumerateFiles(path, "*.md") | "preview", "preview" -> 0 | "preview", _ -> -1 | _, "preview" -> 1 - | _, _ -> compare (int b) (int a)) + | _, _ -> + match System.Decimal.TryParse(b), System.Decimal.TryParse(b) with + | (true, a) , ( true, b) -> compare (int b) (int a) + | _ -> failwithf "Cannot compare %s with %s" b a + ) |> Seq.map (fun file -> let version = Path.GetFileNameWithoutExtension(file) let version = if version = "preview" then "Preview" else version