Re: doc: add missing "id" attributes to extension packaging page
Karl O. Pinc <kop@karlpinc.com>
From: "Karl O. Pinc" <kop@karlpinc.com>
To: Brar Piening <brar@gmx.de>
Cc: Peter Eisentraut <peter.eisentraut@enterprisedb.com>, Tom Lane
<tgl@sss.pgh.pa.us>, vignesh C <vignesh21@gmail.com>, Alvaro Herrera
<alvherre@alvh.no-ip.org>, Ian Lawrence Barwick <barwick@gmail.com>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2023-03-23T12:51:44Z
Lists: pgsql-hackers
On Thu, 23 Mar 2023 08:24:48 +0100
Brar Piening <brar@gmx.de> wrote:
> On 23.03.2023 at 04:09, Karl O. Pinc wrote:
> > Sorry for the extra work I've put you through.
>
> No problem. As always I've learnt something which may help me in the
> future.
I don't know about you, but sadly, my brain eventually leaks. ;-)
> > I'm attaching 2 patches
> > with only minor changes.
> > 001-add-needed-ids_v1.patch
> >
> > This separates out the addition of ids from the XSLT changes, just
> > to keep things tidy.
> > 002-make_html_ids_discoverable_v4.patch
> >
> > I changed the linked text, the #, so that the leading space
> > is not linked. This is arguable, as the extra space makes
> > it easier to put the mouse on the region.
> I tend to prefer a slightly bigger mouseover-region but I don't
> really mind.
I'm leaving it for the committer to review.
> I've changed the format of
> > the error message. What do you think? (Try it out by _not_
> > applying 001-add-needed-ids_v1.patch.)
> >
> > Also, the error message now has leading and trailing newlines to
> > make it stand out.
Including the error message/make output here, so everyone can see
easily.
--------------<snip>------------
/usr/bin/xsltproc --nonet --path . --stringparam pg.version '16devel' stylesheet.xsl postgres-full.xml
Ids are required in order to provide the public HTML documentation with stable URLs for <varlistentry> element content; id missing at: /book[@id = 'postgres']/part[@id = 'appendixes']/appendix[@id = 'contrib']/sect1[@id = 'pgwalinspect']/sect2[@id = 'pgwalinspect-funcs']/variablelist
no result for postgres-full.xml
make: *** [Makefile:146: html-stamp] Error 10
--------------<snip>------------
> I like it and think it's ready for commiter.
I've marked it ready for the committer in the commitfest.
> > Outstanding questions (for committer?):
> >
> > The 002-make_html_ids_discoverable_v4.patch generates xhtml <h1>,
> > <h2>, etc. attributes using a XSLT <element> element with a
> > "namespace" attribute.
>
> I'm not sure I follow. I cannot see any namespacing weirdness in my
> output.
There's nothing weird in the output, it's all about how
you're generating it in the xslt with
<xsl:element name="h$level" namespace="...
Output looks right to me.
> Are you using the v1.79.2 styleshhets?
Yes. But I've got both the ones with namespaces and without
installed.
I've just never had to look at what PG is doing with namespaces
before. What you've done looks right to me, but I'm pretty
clueless so somebody else should double check.]
> > What character should be used to represent a link anchor?
> Personally I'd advise to stick with ASCII for now.
+1
Regards,
Karl <kop@karlpinc.com>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein
Commits
-
doc: Make HTML ids discoverable
- e2922702a302 16.0 landed
-
Add missing XML ID attribute
- a34901dd03ed 16.0 landed
-
postgres_fdw: Add support for parallel abort.
- 983ec23007bd 16.0 cited
-
Add missing XML ID attributes
- 3077324b03e8 16.0 landed
-
Add XML ID attributes to create_subscription.sgml.
- de5a47af2d80 16.0 cited
-
Stop recommending auto-download of DTD files, and indeed disable it.
- 969509c3f2e3 16.0 cited
-
Doc: add XML ID attributes to <sectN> and <varlistentry> tags.
- 78ee60ed84bb 16.0 landed
-
Allow left join removals and unique joins on partitioned tables
- 3c569049b7b5 16.0 cited
-
Improve GIN cost estimation
- cd9479af2af2 16.0 cited