Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Enable watch server from arbitrary host #924

Open
@tymokvo

Description

@tymokvo

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions