Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4plD-0008Pb-Vw for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Nov 2016 13:51:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c4plD-00056G-5s for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Nov 2016 13:51:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c4pjn-0003Tt-Mb for pgsql-hackers@postgresql.org; Thu, 10 Nov 2016 13:49:55 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c4pjl-0006CA-0N for pgsql-hackers@postgresql.org; Thu, 10 Nov 2016 13:49:54 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 4E9E221EF7 for ; Thu, 10 Nov 2016 08:49:52 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Thu, 10 Nov 2016 08:49:52 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=smtpout; bh=6gwudGxKNG3zPhWZcV67f6hWUNI=; b=ngOAT At2HuwO+ZB9ZO0Zj2WmuJUjGacjGAn1SOzAtki5L5iprHFOos/Aj8esCbjZP3mKY yKRsNBsDc3gT5UZs+oOFr8AMDRf5PIzst9VMehPT4HVTfbuFVR6q7Z5f6S9lIF4w QUHnuV5hAXkPOtJD9frda9sK+KmE7o424IPc8k= X-ME-Sender: X-Sasl-enc: e/kDFJjaxnhXkP8AZ6nk3A2sBN37xBKlON++YRcy/oAI 1478785792 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 0CAFB25070 for ; Thu, 10 Nov 2016 08:49:52 -0500 (EST) From: Peter Eisentraut Subject: switching documentation build to XSLT Organization: 2ndQuadrant To: pgsql-hackers Message-ID: <2cdfe551-eb7b-b319-c96d-0d53cc0c2db8@2ndquadrant.com> Date: Thu, 10 Nov 2016 08:49:55 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------62964F18F20E3446C99A19B8" X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org This is a multi-part message in MIME format. --------------62964F18F20E3446C99A19B8 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Some work has been going on recently to be able to update our documentation build tool chain. After discussion on pgsql-docs, the people involved agree that it is time to move forward. We are now proposing that we change the way the HTML documentation is built from jade/openjade+docbook-dsssl to xsltproc+docbook-xsl. If you can build the man pages now (make man, also included in make world), then you don't need any new tools. The new HTML build will be using the same tools. Otherwise, follow the documentation to set up those tools and make that work. The actual patch to make this change is attached. For the build process, nothing changes, e.g., 'make' or 'make html' will still have the same purposes. For the time being, you will still be able to build the documentation the old way with 'make oldhtml', but this is mainly so that we can compare the output and work out any formatting kinks. Before this patch, you can also build the documentation the new way using 'make xslthtml', but that will go away. I will submit a separate patch to the web site team to update the CSS style sheets for the web site to match the new output. There are more steps to be done after this, to move over the other output formats (PDF), adjust the configure script, the documentation, work out any remaining formatting problems, etc., so now is a good time to get this rolling so that we have a good chance of reaching a steady state before the end of the development cycle. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services --------------62964F18F20E3446C99A19B8 Content-Type: text/x-patch; name="0001-Build-HTML-documentation-using-XSLT-stylesheets-by-d.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename*0="0001-Build-HTML-documentation-using-XSLT-stylesheets-by-d.pa"; filename*1="tch" =46rom e2e142b69e3e299932219bb5659f1bef2c78f26a Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 8 Nov 2016 12:00:00 -0500 Subject: [PATCH] Build HTML documentation using XSLT stylesheets by default The old DSSSL build is still available for a while using the make target "oldhtml". --- doc/src/sgml/Makefile | 8 ++++---- doc/src/sgml/stylesheet.css | 50 +++++++++++++++++------------------------= ---- 2 files changed, 23 insertions(+), 35 deletions(-) diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile index 84c94e8..fe7ca65 100644 --- a/doc/src/sgml/Makefile +++ b/doc/src/sgml/Makefile @@ -106,9 +106,9 @@ draft: postgres.sgml $(ALMOSTALLSGML) stylesheet.dsl $(JADE.html.call) -V draft-mode $< cp $(srcdir)/stylesheet.css html/ =20 -html: html-stamp +oldhtml: oldhtml-stamp =20 -html-stamp: postgres.sgml $(ALLSGML) stylesheet.dsl +oldhtml-stamp: postgres.sgml $(ALLSGML) stylesheet.dsl $(MAKE) check-tabs $(MKDIR_P) html $(JADE.html.call) -i include-index $< @@ -258,9 +258,9 @@ ifeq ($(STYLE),website) XSLTPROC_HTML_FLAGS +=3D --param website.stylesheet 1 endif =20 -xslthtml: xslthtml-stamp +html: html-stamp =20 -xslthtml-stamp: stylesheet.xsl postgres.xml +html-stamp: stylesheet.xsl postgres.xml $(XMLLINT) --noout --valid postgres.xml $(XSLTPROC) $(XSLTPROCFLAGS) $(XSLTPROC_HTML_FLAGS) $^ cp $(srcdir)/stylesheet.css html/ diff --git a/doc/src/sgml/stylesheet.css b/doc/src/sgml/stylesheet.css index 60dcc76..f845876 100644 --- a/doc/src/sgml/stylesheet.css +++ b/doc/src/sgml/stylesheet.css @@ -2,18 +2,18 @@ =20 /* color scheme similar to www.postgresql.org */ =20 -BODY { +body { color: #000000; background: #FFFFFF; font-family: verdana, sans-serif; } =20 -A:link { color:#0066A2; } -A:visited { color:#004E66; } -A:active { color:#0066A2; } -A:hover { color:#000000; } +a:link { color:#0066A2; } +a:visited { color:#004E66; } +a:active { color:#0066A2; } +a:hover { color:#000000; } =20 -H1 { +h1 { font-size: 1.4em; font-weight: bold; margin-top: 0em; @@ -21,34 +21,34 @@ H1 { color: #EC5800; } =20 -H2 { +h2 { font-size: 1.2em; margin: 1.2em 0em 1.2em 0em; font-weight: bold; - color: #666; + color: #EC5800; } =20 -H3 { +h3 { font-size: 1.1em; margin: 1.2em 0em 1.2em 0em; font-weight: bold; color: #666; } =20 -H4 { +h4 { font-size: 0.95em; margin: 1.2em 0em 1.2em 0em; font-weight: normal; color: #666; } =20 -H5 { +h5 { font-size: 0.9em; margin: 1.2em 0em 1.2em 0em; font-weight: normal; } =20 -H6 { +h6 { font-size: 0.85em; margin: 1.2em 0em 1.2em 0em; font-weight: normal; @@ -56,13 +56,13 @@ H6 { =20 /* center some titles */ =20 -.BOOK .TITLE, .BOOK .CORPAUTHOR, .BOOK .COPYRIGHT { +.book .title, .book .corpauthor, .book .copyright { text-align: center; } =20 /* decoration for formal examples */ =20 -DIV.EXAMPLE { +div.example { padding-left: 15px; border-style: solid; border-width: 0px; @@ -71,28 +71,16 @@ DIV.EXAMPLE { margin: 0.5ex; } =20 -/* less dense spacing of TOC */ - -.BOOK .TOC DL DT { - padding-top: 1.5ex; - padding-bottom: 1.5ex; -} - -.BOOK .TOC DL DL DT { - padding-top: 0ex; - padding-bottom: 0ex; -} - /* miscellaneous */ =20 -PRE.LITERALLAYOUT, .SCREEN, .SYNOPSIS, .PROGRAMLISTING { +pre.literallayout, .screen, .synopsis, .programlisting { margin-left: 4ex; } =20 -.COMMENT { color: red; } +.comment { color: red; } =20 -VAR { font-family: monospace; font-style: italic; } +var { font-family: monospace; font-style: italic; } /* Konqueror's standard style for ACRONYM is italic. */ -ACRONYM { font-style: inherit; } +acronym { font-style: inherit; } =20 -.OPTION { white-space: nowrap; } +.option { white-space: nowrap; } --=20 2.10.2 --------------62964F18F20E3446C99A19B8 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers --------------62964F18F20E3446C99A19B8--