From dfc64f9ffe0ceecf8e93d6eba3fdb7b1165c9c43 Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Thu, 18 Dec 2014 20:15:05 -0800 Subject: [PATCH] doc: Reduce the validation errors of the docbook input (this is different from previous version as it removes some broken and irrelevant changes to the protocol appendix). This removes all the validation errors except for missing link targets. You can test this by removing the --skip-validation from doc/publican/Makefile.am. Main changes are to avoid nesting commands. I also used in some places to reduce the amount of blank space. And the reference id's are prefixed with the chapter name to avoid collisions between libclient and libserver. PS: it would be useful if somebody who actually knows something about xslt would come up with a way to translate a block of text makde of commands unchanged, but add around plain text. Most of the difficulty is that doxygen's output is rather inconsistent here. Tested-by: Pekka Paalanen --- doc/publican/doxygen-to-publican.xsl | 44 ++++++++++--------------- doc/publican/protocol-interfaces-to-docbook.xsl | 8 +++-- doc/publican/protocol-to-docbook.xsl | 4 +-- 3 files changed, 23 insertions(+), 33 deletions(-) diff --git a/doc/publican/doxygen-to-publican.xsl b/doc/publican/doxygen-to-publican.xsl index 47bdc5a..5adbfa6 100644 --- a/doc/publican/doxygen-to-publican.xsl +++ b/doc/publican/doxygen-to-publican.xsl @@ -37,20 +37,16 @@ - - - - - + + + Methods for the respective classes. - - + - @@ -60,7 +56,7 @@ - + @@ -74,7 +70,7 @@ - + @@ -82,22 +78,18 @@ Returns: - + - - See also: - + See also: - - Since: - + Since: @@ -131,7 +123,7 @@ - + @@ -139,21 +131,19 @@ - - - - - + + + - + - - + + @@ -165,6 +155,6 @@ - + diff --git a/doc/publican/protocol-interfaces-to-docbook.xsl b/doc/publican/protocol-interfaces-to-docbook.xsl index fb1a816..57b3139 100644 --- a/doc/publican/protocol-interfaces-to-docbook.xsl +++ b/doc/publican/protocol-interfaces-to-docbook.xsl @@ -37,11 +37,13 @@ - - - - + + + + + diff --git a/doc/publican/protocol-to-docbook.xsl b/doc/publican/protocol-to-docbook.xsl index 443228d..a43c9fa 100644 --- a/doc/publican/protocol-to-docbook.xsl +++ b/doc/publican/protocol-to-docbook.xsl @@ -95,9 +95,7 @@ Value: - - - + -- 2.7.4