Open tymokvo opened 6 days ago
Ah yes, this rings a bell. Maybe adding --parameters root ""
will allow for an empty root and makes things relative but I haven't tested this.
Hm, that's a start. But it seems that flag works for build
but not for watch
. All of the static files generated in tmp/watch
are still using absolute URLs to localhost:8901
.
I think I figured out a patch in #925 . But I'm a little suspicious since there was a whole branch dedicated to preventing a user override of root
in watch
mode.
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 wheredotnet tool run fsdocs watch
is incompatible with a remote host because the relative links in the generated HTML are all rooted athttp://localhost:8901
.Would it be possible to configure
watch
to:{{root}}
value in HTML templates/tmp/watch
directory[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?