From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jonathan S. Katz <jkatz@postgresql.org>
Cc: pgsql-www@lists.postgresql.org
Subject: Re: Website patch request: documentation style update
Date: Sat, 18 Apr 2020 15:09:11 -0400
Message-ID: <10286.1587236951@sss.pgh.pa.us> (raw)
In-Reply-To: <3f8560a6-9044-bdb8-6b3b-68842570db18@postgresql.org>
References: <31464.1587156281@sss.pgh.pa.us>
<a8585a71-1326-949b-32c6-f786417b8eff@postgresql.org>
<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>
"Jonathan S. Katz" <jkatz@postgresql.org> 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):
> <td class="functableentry">
> <code class="function">enum_first</code> ( <code
> class="type">anyenum</code> ) → <code class="returnvalue">anyenum</code>
> <br>
> Returns the first value of the input enum type.
> <br>
> <code class="literal">enum_first(null::rainbow)</code> → <code
> class="returnvalue">red</code>
> </td>
> 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 "<br>" in the "<td>" 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 <varlistentry>-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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-www@postgresql.org
Cc: tgl@sss.pgh.pa.us, jkatz@postgresql.org
Subject: Re: Website patch request: documentation style update
In-Reply-To: <10286.1587236951@sss.pgh.pa.us>
References: <31464.1587156281@sss.pgh.pa.us> <a8585a71-1326-949b-32c6-f786417b8eff@postgresql.org> <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> <10286.1587236951@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox