Add html-serve target to autotools and meson

From: "Tristan Partin" <tristan(at)partin(dot)io>
To: "pgsql-hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Add html-serve target to autotools and meson
Date: 2024-11-07 04:37:22
Message-ID: D5FO2HAIQQ14.ONGEFJNG2S0Q@partin.io
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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).

The one controversial part of this patch might be using "port" 0, which
asks the kernel to assign an unused port. I'm not sure if that exists on
Windows, or is even desireable. Should we have a build option for the
port? What would a good default be?

--
Tristan Partin
Neon (https://neon.tech)

Attachment Content-Type Size
html-serve.diff text/x-patch 1.2 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2024-11-07 05:34:35 Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY
Previous Message jian he 2024-11-07 04:15:05 split func.sgml to separated individual sgml files