FSharp.Formatting icon indicating copy to clipboard operation
FSharp.Formatting copied to clipboard

Enable `watch` server from arbitrary host

Open tymokvo opened this issue 1 year ago • 4 comments
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/watch directory
  • redirect requests to paths other than [content | reference]/* to index.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?

tymokvo avatar Jun 25 '24 15:06 tymokvo