FSharp.Formatting
FSharp.Formatting copied to clipboard
Enable `watch` server from arbitrary host
trafficstars
While working on a project with a new developer in a GitHub Codespace today, I wanted to be able to serve the documentation of our feature branch. However, I ran into a limitation of the watch command where dotnet tool run fsdocs watch is incompatible with a remote host because the relative links in the generated HTML are all rooted at http://localhost:8901.
Would it be possible to configure watch to:
- use an empty string for the
{{root}}value in HTML templates - serve the
/tmp/watchdirectory - redirect requests to paths other than
[content | reference]/*toindex.html
I think something as simple as dotnet tool run fsdocs watch --remote would be very convenient. Though, maybe there is already a way to accomplish this with a combination of existing flags?