Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8vmM-0002I1-J9 for pgsql-docs@arkaria.postgresql.org; Mon, 21 Nov 2016 21:05:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c8vmL-0007XO-TW for pgsql-docs@arkaria.postgresql.org; Mon, 21 Nov 2016 21:05:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c8vmL-0007XH-D4 for pgsql-docs@postgresql.org; Mon, 21 Nov 2016 21:05:29 +0000 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1c8vmG-0004xV-T5 for pgsql-docs@postgresql.org; Mon, 21 Nov 2016 21:05:28 +0000 Received: by mail-wm0-x232.google.com with SMTP id t79so3833215wmt.0 for ; Mon, 21 Nov 2016 13:05:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to; bh=jwzmbw/fSbMsPRI4qVlkyGAOymj6V64JzcLAO5wrxxE=; b=RvgwHmhoNddi0BDE2aMxffITY1VVdIGa3Ex+v8fivlKklhNRa+f66ihH1x9sjevVIZ JKD1CHrxF8IU8JJH94Gm0LdV4dTVkcYNKdZh4pmepIRLY4DzdWINRQAJDKiM9AVFLpnF XHyUSbapvwE4wMksj9KHFil7Fi7GUSR8wFemJ/zOfZy+RdS08SVxsOEGy3uijF/zPTXs U2qJShPAHvPwzmLWQ1zIj+m5xrBJB4sgAboYt51ie/3i3Rp8ZuX0TjfJPTETBLPNRm73 W7NKLmqY8U9fRYDv9BKz71WqGa6e4f4/9eIZ6sU8LWYQUk8VCnnPckdFsRhq7F8sc0iK mMHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to; bh=jwzmbw/fSbMsPRI4qVlkyGAOymj6V64JzcLAO5wrxxE=; b=Dy8D9BzbdaB3U3ufG9EmZWYPOYo5OwGSNZVO4sPFVKo07vq8IsnLPhdjZI5QTp01x9 Et1+KA2CHxUBlcbe8ZdrtFLXqgL2ldMNAkRN1cDFN+nBxYrz9lXCkcCPRN5x5i3lC+JH 2a9mCUSxRrP4dNtkuQ1Dzi2DSnwuZ56t7nQcis2QWz+6sE5Varv1s1viqTHSPXMtWjjy VWN7EhztdjnbmTaEf3z8T5WXbKjEyBBrAhMQw07ALkQd4kPuhxpzSlgQOwRwVjqPlclo CbH7rSrp9DJ8tpEH3ZDOHNVyBjfpP5iyuRh5E26nIyDXTkxdigHHmYdpi4XlkC64w4hB q9qQ== X-Gm-Message-State: AKaTC02DtAbJ5zgb3sVRI8MT6vEZhdwtTBbcNrBIkD75fFMt3vgJYRVLyBCNnlIhKfNHqA== X-Received: by 10.25.154.199 with SMTP id c190mr3646193lfe.76.1479762323661; Mon, 21 Nov 2016 13:05:23 -0800 (PST) Received: from [1.0.0.7] ([109.196.196.48]) by smtp.gmail.com with ESMTPSA id x4sm5736759lff.15.2016.11.21.13.05.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Nov 2016 13:05:23 -0800 (PST) Subject: Re: [HACKERS] switching documentation build to XSLT To: Tom Lane , Peter Eisentraut References: <2cdfe551-eb7b-b319-c96d-0d53cc0c2db8@2ndquadrant.com> <1aff5a5f-64aa-91c4-41c4-7952afe8a792@2ndquadrant.com> <31557.1479756998@sss.pgh.pa.us> Cc: pgsql-docs@postgreSQL.org From: Alexander Law Message-ID: <9cb9d7a2-c659-6100-fbbf-026d84776c9d@gmail.com> Date: Tue, 22 Nov 2016 00:05:21 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <31557.1479756998@sss.pgh.pa.us> Content-Type: multipart/mixed; boundary="------------D63FEF04C025ECC97196E890" X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org This is a multi-part message in MIME format. --------------D63FEF04C025ECC97196E890 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hello, Attached patches fix the issues. I wrote about these differences before -- see issues 12 and 20 in http://oc.postgrespro.ru/index.php/s/Gj2PGZ9IHUbDC5t/download (See https://www.postgresql.org/message-id/4ffd72d6-8ab6-37c6-d7d5-dfed8967c0fc%40gmail.com) If you find that some other differences are not improvements too, I can prepare corresponding patches. Best regards, Alexander 21.11.2016 22:36, Tom Lane пишет: > Peter Eisentraut writes: >> If you find any changes in the output that bother you, let pgsql-docs know. > The table of contents for Appendix F has gotten more verbose, in a way > that doesn't seem like an improvement; compare > > https://www.postgresql.org/docs/9.6/static/contrib.html > https://www.postgresql.org/docs/devel/static/contrib.html > > On the other hand, the table of contents disappeared entirely in > dblink, which is definitely not an improvement: > > https://www.postgresql.org/docs/9.6/static/dblink.html > https://www.postgresql.org/docs/devel/static/dblink.html > > regards, tom lane > > --------------D63FEF04C025ECC97196E890 Content-Type: text/x-patch; name="1-change-subtoc-condition.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="1-change-subtoc-condition.patch" commit e2434ec62315233bb22907fc2a6fb603e3fadd2f Author: Alexander Lakhin Date: Mon Nov 21 22:54:36 2016 +0300 Change subtoc output condition As in contrib.html: F.1. adminpack F.1.1. Functions Implemented F.2. auth_delay F.2.1. Configuration Parameters F.2.2. Author F.3. auto_explain -> F.1. adminpack F.2. auth_delay F.3. auto_explain diff --git a/doc/src/sgml/stylesheet.xsl b/doc/src/sgml/stylesheet.xsl index 42e8cce..494dbf5 100644 --- a/doc/src/sgml/stylesheet.xsl +++ b/doc/src/sgml/stylesheet.xsl @@ -384,4 +384,102 @@ Customization of header + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + 2 + 3 + 4 + 5 + 1 + 2 + 3 + 1 + + + + + + + 2 + 3 + 4 + 5 + 6 + 2 + 2 + 3 + 4 + 1 + + + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --------------D63FEF04C025ECC97196E890 Content-Type: text/x-patch; name="2-add-toc-to-sect1.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="2-add-toc-to-sect1.patch" commit f1094c3a9abcd6b3d23b85262a963f42ef9a9929 Author: Alexander Lakhin Date: Mon Nov 21 23:49:16 2016 +0300 Add TOC to sect1 As in spi-memory.html: 44.3. Memory Management -> 44.3. Memory Management Table of Contents SPI_palloc — allocate memory in the upper executor context SPI_repalloc — reallocate memory in the upper executor context diff --git a/doc/src/sgml/stylesheet-imports-xhtml.xsl b/doc/src/sgml/stylesheet-imports-xhtml.xsl new file mode 100644 index 0000000..4139d1d --- /dev/null +++ b/doc/src/sgml/stylesheet-imports-xhtml.xsl @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/src/sgml/stylesheet.xsl b/doc/src/sgml/stylesheet.xsl index 494dbf5..209afdf 100644 --- a/doc/src/sgml/stylesheet.xsl +++ b/doc/src/sgml/stylesheet.xsl @@ -9,6 +9,7 @@ exclude-result-prefixes="#default"> + @@ -482,4 +483,20 @@ Customization of header + + + + + + + + + + + + + + + + --------------D63FEF04C025ECC97196E890 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs --------------D63FEF04C025ECC97196E890--