Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPsq7-0008Hk-Vb for pgsql-www@arkaria.postgresql.org; Sat, 18 Apr 2020 19:09:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jPsq4-00082r-Jy for pgsql-www@arkaria.postgresql.org; Sat, 18 Apr 2020 19:09:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPsq4-00082k-Ei for pgsql-www@lists.postgresql.org; Sat, 18 Apr 2020 19:09:16 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPsq1-0000We-IS; Sat, 18 Apr 2020 19:09:16 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 03IJ9BwK010287; Sat, 18 Apr 2020 15:09:11 -0400 From: Tom Lane To: "Jonathan S. Katz" cc: pgsql-www@lists.postgresql.org Subject: Re: Website patch request: documentation style update In-reply-to: <3f8560a6-9044-bdb8-6b3b-68842570db18@postgresql.org> References: <31464.1587156281@sss.pgh.pa.us> <11946.1587171073@sss.pgh.pa.us> <887f49f7-42e0-5a80-9962-4a0a69daf7ec@postgresql.org> <9307.1587235619@sss.pgh.pa.us> <3f8560a6-9044-bdb8-6b3b-68842570db18@postgresql.org> Comments: In-reply-to "Jonathan S. Katz" message dated "Sat, 18 Apr 2020 15:01:27 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <10285.1587236951.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Sat, 18 Apr 2020 15:09:11 -0400 Message-ID: <10286.1587236951@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Jonathan S. Katz" writes: > I'm not sure how much more can be done in DocBook (and if need be I'll > opine again on the other thread) but I will note that the HTML that is > generated is a bit odd to deal with. For example (simplifying it a bit): > > enum_first ( class="type">anyenum ) → anyenum >
> Returns the first value of the input enum type. >
> enum_first(null::rainbow) → class="returnvalue">red > > A few things to note: > 1. The "(" seem to not be included in the "code" blocks. If they are all > together, that may help with some of the cramped/spacingness, as I can > uniformly apply rules. I did that intentionally, because rendering parens and brackets and such in a different font seems helpful. In any case, it's not very clear how to do it differently in DocBook without really bogus markup. > 2. The "
" in the "" block is definitely an anti-pattern. Yeah, I agree, it's a hack. As I mentioned in the commit message, this is basically a way of getting a -like layout without the extra vertical space that that construct wants to add. If you have a better idea about how to implement that, it's not too late to reconsider the markup. But we do need to keep an eye on how it renders in PDF, too. regards, tom lane