pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Get rid of parameterized marked sections in SGML
Date: Wed, 27 Sep 2017 15:28:04 +0000
Message-ID: <E1dxEFo-0006gS-DC@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Get rid of parameterized marked sections in SGML

Previously, we created a variant of the installation instructions for
producing the plain-text INSTALL file by marking up certain parts of
installation.sgml using SGML parameterized marked sections.  Marked
sections will not work anymore in XML, so before we can convert the
documentation to XML, we need a new approach.

DocBook provides a "profiling" feature that allows selecting content
based on attributes, which would work here.  But it imposes a noticeable
overhead when building the full documentation and causes complications
when building some output formats, and given that we recently spent a
fair amount of effort optimizing the documentation build time, it seems
sad to have to accept that.

So as an alternative, (1) we create our own mini-profiling layer that
adjusts just the text we want, and (2) assemble the pieces of content
that we want in the INSTALL file using XInclude.  That way, there is no
overhead when building the full documentation and most of the "ugly"
stuff in installation.sgml can be removed and dealt with out of line.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/684cf76b83e9dc8aed12aeb9131d2208f61bd31f

Modified Files
--------------
doc/src/sgml/Makefile                |   5 +-
doc/src/sgml/filelist.sgml           |   9 --
doc/src/sgml/installation.sgml       | 245 +++++------------------------------
doc/src/sgml/standalone-install.sgml |  28 ----
doc/src/sgml/standalone-install.xml  | 167 ++++++++++++++++++++++++
doc/src/sgml/standalone-profile.xsl  |  81 ++++++++++++
6 files changed, 280 insertions(+), 255 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1dxEFo-0006gS-DC@gemulon.postgresql.org>
Permalink:  ../E1dxEFo-0006gS-DC@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1dxEFo-0006gS-DC@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: peter_e@gmx.net
  Subject: Re: pgsql: Get rid of parameterized marked sections in SGML
  In-Reply-To: <E1dxEFo-0006gS-DC@gemulon.postgresql.org>
  References: <E1dxEFo-0006gS-DC@gemulon.postgresql.org>

* 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