Skip to content

Commit

Permalink
Fix docs for F# language (#17750)
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf authored Sep 16, 2024
1 parent 7bfb032 commit d30b976
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/release-notes/About.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion docs/release-notes/Language.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d30b976

Please sign in to comment.