From: Jonathan S. Katz <jkatz@postgresql.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-www@lists.postgresql.org
Subject: Re: Website patch request: documentation style update
Date: Sat, 18 Apr 2020 16:12:00 -0400
Message-ID: <befabb29-a9f8-9352-88c4-39baf1147673@postgresql.org> (raw)
In-Reply-To: <11491.1587238456@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>
<11491.1587238456@sss.pgh.pa.us>
On 4/18/20 3:34 PM, Tom Lane wrote:
> "Jonathan S. Katz" <jkatz@postgresql.org> writes:
>> On 4/18/20 2:46 PM, Tom Lane wrote:
>>> I'd noticed that the website style wants to render function signatures
>>> in a very cramped way, with less inter-word spacing than normal; is that
>>> another aspect of this?
>
>> I believe that's one of the trademarks of the monospace font family, but
>> we may be able to adjust it.
>
> BTW, as far as that goes, I *don't* see equivalent cramping when building
> the docs without STYLE=website. Compare e.g. the renderings of concat_ws'
> description in table 9.10 (attached). So I think it's something that is
> being done intentionally somewhere in the website customization. I'm not
> sure where to look though.
I think this may be the pain of monospace, as it's browser/OS dependent,
though (comments below)...
> Also, now that I look at it, I see the website style seems to be rendering
> parents and brackets in the same font as the <code> items anyway. This
> does not seem like an improvement over what happens without that.
So, it seems like it's the same font, but it's a trompe-l'oeil: it is
the default font of the site (Open Sans). However, it appears the
old-style docs use a different browser/OS dependent font in "verdana".
When I force it to verdana, we get the attached (enum_first has verdana,
enum_list has Open Sans). This seems to get the desired effect on the
function definition line, but it sets the descriptions to be verdana,
which seems to clash with the rest of the site.
(With my other comment of "can we get said signature into its own
row/block, I can make said issue go away easily :) Per your upthread
comment, I believe that would entail taking a go at DocBook and ensuring
it still looks good in the PDF build, which I am not ruling out trying...)
Another option is to make the font large in the tables, which helps with
the spacing. I'm not as much of a fan of that solution.
I did try using the "letter-spacing" CSS property, but the results
become fairly comical, fairly quickly.
I think Door #1 would be the optimal quick/best approach for a short
term resolution, pending other structural changes.
Jonathan
Attachments:Screen Shot 2020-04-18 at 4.04.14 PM.png (image/png, 53.6K) downloadview image
signature.asc (application/pgp-signature, 832B) download
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: jkatz@postgresql.org, tgl@sss.pgh.pa.us
Subject: Re: Website patch request: documentation style update
In-Reply-To: <befabb29-a9f8-9352-88c4-39baf1147673@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> <11491.1587238456@sss.pgh.pa.us> <befabb29-a9f8-9352-88c4-39baf1147673@postgresql.org>
* 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