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