pg.ddx.io  pgsql-www@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-www@lists.postgresql.org
Subject: Website patch request: documentation style update
Date: Fri, 17 Apr 2020 16:44:41 -0400
Message-ID: <31464.1587156281@sss.pgh.pa.us> (raw)

In the thread at [1], we agreed to adopt a new layout for the
documentation's tables of functions/operators, which will require
a "hanging indent" layout for cells within those tables.  So far
as I've found, there's no good way to specify that within the .sgml
files proper.  The preferred way to do it seems to be to attach a
"role" attribute to affected <entry> tags, and then key off of that
to apply the appropriate style adjustments in CSS.  So I'd like to
request that the website be updated more or less per the attached.

It's likely that I've missed something about how best to do that ---
I'm not even totally sure that main.css is the best place to
put this change.  So feel free to adjust as you see fit.

			regards, tom lane

[1] https://www.postgresql.org/message-id/flat/8691.1586798003%40sss.pgh.pa.us

Attachments:

table-style-update.patch (text/x-diff, 489B) download --- main.css.orig 2020-04-16 18:46:26.040658279 -0400 +++ main.css 2020-04-16 19:18:15.689371719 -0400 @@ -791,6 +791,20 @@ word-break: unset; } +/* formatting for entries in tables of functions: indent all but first line */ + +#docContent table.table th.functableentry { + padding-left: 5em; + text-indent: -5em; + text-align: left; +} + +#docContent table.table td.functableentry { + padding-left: 5em; + text-indent: -5em; + text-align: left; +} + /** * Titles, Navigation */

view thread (10+ messages)  latest in thread

Message-ID: <31464.1587156281@sss.pgh.pa.us>
Permalink:  ../31464.1587156281@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/31464.1587156281@sss.pgh.pa.us

 ·  · 

reply

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
  Subject: Re: Website patch request: documentation style update
  In-Reply-To: <31464.1587156281@sss.pgh.pa.us>
  References: <31464.1587156281@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