You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,8 @@
23
23
## [22.0.0-alpha.2] - 2026-03-13
24
24
25
25
### Added
26
+
* Add `--root` option to `fsdocs watch` to override the root URL for generated pages. Useful for serving docs via GitHub Codespaces, reverse proxies, or other remote hosting where `localhost` URLs are inaccessible. E.g. `fsdocs watch --root /` or `fsdocs watch --root https://example.com/docs/`. When not set, defaults to `http://localhost:<port>/` as before. [#924](https://github.com/fsprojects/FSharp.Formatting/issues/924)
27
+
* Fix `fsdocs watch` hot-reload WebSocket to connect using the page's actual host (`window.location.host`) instead of a hardcoded `localhost:<port>`, so hot-reload works correctly in GitHub Codespaces, behind reverse proxies, and over HTTPS. [#924](https://github.com/fsprojects/FSharp.Formatting/issues/924)
26
28
* Search dialog now auto-focuses the search input when opened, clears on close, and can be triggered with `Ctrl+K` / `Cmd+K` in addition to `/`.
27
29
* Add `dotnet fsdocs convert` command to convert a single `.md`, `.fsx`, or `.ipynb` file to HTML (or another output format) without building a full documentation site. [#811](https://github.com/fsprojects/FSharp.Formatting/issues/811)
28
30
*`fsdocs convert` now accepts the input file as a positional argument (e.g. `fsdocs convert notebook.ipynb -o notebook.html`). [#1019](https://github.com/fsprojects/FSharp.Formatting/pull/1019)
@@ -2330,6 +2333,9 @@ type CoreBuildOptions(watch) =
2330
2333
abstractport_option:int
2331
2334
defaultx.port_option=0
2332
2335
2336
+
abstractroot_override_option:stringoption
2337
+
defaultx.root_override_option= None
2338
+
2333
2339
/// Helpers for the <c>fsdocs convert</c> command.
2334
2340
moduleprivateConvertHelpers =
2335
2341
@@ -2746,3 +2752,12 @@ type WatchCommand() =
2746
2752
2747
2753
[<Option("port", Required =false, Default =8901, HelpText ="Port to serve content for http://localhost serving.")>]
2748
2754
member valport=8901with get, set
2755
+
2756
+
overridex.root_override_option=if x.root =""then None else Some x.root
2757
+
2758
+
[<Option("root",
2759
+
Required =false,
2760
+
Default ="",
2761
+
HelpText =
2762
+
"Override the root URL for generated pages. Useful for reverse proxies or GitHub Codespaces. E.g. --root / or --root https://example.com/docs/. When not set, defaults to http://localhost:<port>/.")>]
0 commit comments