Add XSL stylesheet to fix up SVG files

Started by Peter Eisentrautover 7 years ago3 messagesdocs
Beta feature

Hackorum builds and tests every patch posted to the lists, not only commitfest submissions. This is Hackorum's own CI rather than the PostgreSQL project's, and it is still under testing - please report anything that looks wrong.

won't retrysuccessCI history

You can run a PostgreSQL built from this patch straight from Docker, with no checkout and no build:

docker run --rm -p 5432:5432 ghcr.io/hackorum-dev/postgres-patch:t76491
psql -h localhost -U postgres

Built from patchset v1 (message #1), July 28, 2026 at 04:11 AM.

Every patchset is also pushed to a branch of our PostgreSQL fork, so you can check out the same tree CI built. Without a PostgreSQL checkout:

git clone --branch t76491_1 https://github.com/hackorum-dev/postgres.git

In a checkout you already have, add the fork once:

git remote add hackorum https://github.com/hackorum-dev/postgres.git

then, for this patchset and every later one:

git fetch hackorum t76491_1 && git checkout t76491_1

Patchset v1 (message #1) is on t76491_1

Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

Commit 29046c44f36099f4c979b1491fcf27db2f9184f9 manually edited the SVG
file generated by Ditaa, which was kind of what we wanted to avoid
having to do. Here is an automated way to take care of the same thing,
by using an XSLT stylesheet. This also takes care of another smaller
issue in the SVG generated by Graphviz.

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachments:

t76491_1
0001-Add-XSL-stylesheet-to-fix-up-SVG-files.patchtext/plain; charset=UTF-8; name=0001-Add-XSL-stylesheet-to-fix-up-SVG-files.patch; x-mac-creator=0; x-mac-type=0Download+119-82
#2Peter Eisentraut
peter_e@gmx.net
In reply to: Peter Eisentraut (#1)
Re: Add XSL stylesheet to fix up SVG files

On 2019-06-11 13:19, Peter Eisentraut wrote:

Commit 29046c44f36099f4c979b1491fcf27db2f9184f9 manually edited the SVG
file generated by Ditaa, which was kind of what we wanted to avoid
having to do. Here is an automated way to take care of the same thing,
by using an XSLT stylesheet. This also takes care of another smaller
issue in the SVG generated by Graphviz.

committed

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

#3Jonathan S. Katz
jkatz@postgresql.org
In reply to: Peter Eisentraut (#2)
Re: Add XSL stylesheet to fix up SVG files

On 6/20/19 4:32 AM, Peter Eisentraut wrote:

On 2019-06-11 13:19, Peter Eisentraut wrote:

Commit 29046c44f36099f4c979b1491fcf27db2f9184f9 manually edited the SVG
file generated by Ditaa, which was kind of what we wanted to avoid
having to do. Here is an automated way to take care of the same thing,
by using an XSLT stylesheet. This also takes care of another smaller
issue in the SVG generated by Graphviz.

committed

I have been away and have not been able to review/test this until now.
That said, I looked at the pages with SVGs on the devel docs and they
are still scaling correctly based on the viewport.

Thanks for automating the generation to handle this!

Jonathan