Replies: 3 comments 1 reply
-
Hi @wangha81, thanks for your interest in gnext. This docs page is just for testing/debugging purpose. For the production environment you should use some self hosted documentation page. You can use However, for smaller projects it might be indeed helpful to define the custom public URL. So I will add such option in next version. I will let you know when it's implemented. |
Beta Was this translation helpful? Give feedback.
-
I've changed the URL to the relative one (just Please also note, that it won't work if files are in different locations. To cover such a case I would have to add another docs option. But I don't think this is a good idea. If someone hosts those files in different locations, they are probably in CDN or other file server (better and recommended way as I mentioned in a previous post). |
Beta Was this translation helpful? Give feedback.
-
I've released the version v0.8.0 with relative docs path. Does it work for you? If so, I will close the discussion. |
Beta Was this translation helpful? Give feedback.
-
I found
jsonUrl
was hardcode by "http://localhost:%s%s" only for localhostHope it can setup by args pass by default localhost like "http://:%s%s"
The code was at docs/handler.go
Beta Was this translation helpful? Give feedback.
All reactions