Re: Add html-serve target to autotools and meson

Peter Eisentraut <peter@eisentraut.org>

From: Peter Eisentraut <peter@eisentraut.org>
To: Tristan Partin <tristan@partin.io>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2024-11-09T08:26:20Z
Lists: pgsql-hackers
On 07.11.24 05:37, Tristan Partin wrote:
> When working on documentation, I find it useful to spawn an HTTP server 
> to serve docs for me to consume in a web browser. I went ahead and used 
> Python's builtin http.server module, but it could also be a run target 
> which just spawned `xdg-open builddir/doc/src/sgml/html/index.html`, 
> though I would doubt Windows has xdg-open(1).

What is the advantage of using an http server over just opening the file 
directly in a web browser (file:// scheme)?