Re: [PATCH] Add CSS to support discoverable ids in the public documentation website

From: "Jonathan S(dot) Katz" <jkatz(at)postgresql(dot)org>
To: Brar Piening <brar(at)gmx(dot)de>, pgsql-www(at)lists(dot)postgresql(dot)org
Cc: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
Subject: Re: [PATCH] Add CSS to support discoverable ids in the public documentation website
Date: 2023-04-18 19:33:40
Message-ID: c3efe7ff-48ac-0907-201c-b16a1e9301bd@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-www

Hi,

On 4/13/23 9:41 AM, Brar Piening wrote:
> Dear PostgreSQL website maintainers,
>
> commit e2922702a3 added the XSLT transformation to add links (<a
> href="#...">#</a>) that make elements with ids discoverable to the
> postgresql docs. I expect the links to (unconditionally due to the lack
> of CSS support for now) appear in the devel-docs with the next nightly
> build.
>
> As suggested in [1] I've created a patch for pgweb that adds the CSS to
> hide the links and display them when hovering the element they are
> referring to.
>
> Since I wasn't fully aware of the correct procedure, I initially sent
> the patch to pgsql-hackers but I've learnt that it should be sent to
> this list instead.
>
> Attached is the (unmodified) patch I initially sent to pgsql-hackers in
> [2]. Please see the thread in pgsql-hackers for the discussion so far.

Thanks for doing this! This is something I've personally wanted for the
docs for years and I'm glad to see it's being done.

I did start testing and overall it looks good -- I have not found any
glaring problems. I'd like to go through a bit more before committing,
but that's certainly doable before the PG16 Beta 1 release.

There is a bikesheddable[1] element over what icon we should use: I see
this range from #, paper clip, paragraph symbol, et al., with those 3
being the most common.

I personally like the paperclip given how it's synonymous with "link",
but that may also give the illusion that we also automatically copy the
link to the clipboard. Perhaps "#" is good enough?

Thanks,

Jonathan

[1] https://en.wiktionary.org/wiki/bikeshedding

In response to

Responses

Browse pgsql-www by date

  From Date Subject
Next Message Melanie Plageman 2023-04-19 20:21:01 Re: [PATCH] Add CSS to support discoverable ids in the public documentation website
Previous Message Joe Conway 2023-04-15 15:07:30 Re: Wiki editor request