Re: Request to add indentation to the documentation indexes

From: "Jonathan S(dot) Katz" <jkatz(at)postgresql(dot)org>
To: Ian Barwick <ian(dot)barwick(at)2ndquadrant(dot)com>, pgsql-www(at)lists(dot)postgresql(dot)org
Subject: Re: Request to add indentation to the documentation indexes
Date: 2019-08-21 18:33:11
Message-ID: e4764910-b1e1-407d-e2db-48d9bd5b6f26@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-www

On 8/21/19 2:10 AM, Ian Barwick wrote:
> Hi
>
> Would it be possible to tweak the stylesheet to indent the lines in the index
> representing the secondary enries?
>
> To grab a random example, the "alias" entry currently is formatted like
> this (*bolded*):
>
> *alias*, Table and Column Aliases, Column Labels
> *for table name in query*, Joins Between Tables
> *in the FROM clause*, Table and Column Aliases
> *in the select list*, Column Labels
>
> which is hard-to-read and makes hard to distinguish the bolded secondary
> entries from the actual index entries, and is (for me at leas) a
> usability regression
> compared to the old website.
>
> Something like this would be vastly more readable:
>
> *alias*, Table and Column Aliases, Column Labels
> *for table name in query*, Joins Between Tables
> *in the FROM clause*, Table and Column Aliases
> *in the select list*, Column Labels
>
> (which is the format used when building the docs from source with
> the default stylesheet).

At present, any changes to indentation would need to be done in the XML
source. There are pages that already have this, e.g.:

https://www.postgresql.org/docs/11/queries-table-expressions.html

Similarly, if we wanted to add emphasis, we'd have to add that to the
XML source as well, and then the website can interpret it.

There are some options for adding syntax highlighting, though the ones
I've seen (and used) involve Javascript, which we've tried to avoid
adding on the site except in situations that involve interactivity.
However it could be something we consider as long as we have a decent
fallback to the current way we display syntax.

Thanks,

Jonathan

In response to

Responses

Browse pgsql-www by date

  From Date Subject
Next Message Ian Barwick 2019-08-22 01:11:47 Re: Request to add indentation to the documentation indexes
Previous Message Daniel Gustafsson 2019-08-21 13:05:45 Re: Windows download page's narrow mode mislabels links