diff options
author | Benjamin Kosnik <bkoz@redhat.com> | 2012-01-17 23:39:21 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2012-01-17 23:39:21 +0000 |
commit | 43fe49ecf1a85a42557d9fc9d54c4043f9863cb5 (patch) | |
tree | cf6825c30831db83803362c1b76e68e46e2dd688 /libstdc++-v3/doc | |
parent | 3bdb97b8b97757eaf5aae67bd300c1a58dd00027 (diff) | |
download | gcc-43fe49ecf1a85a42557d9fc9d54c4043f9863cb5.zip gcc-43fe49ecf1a85a42557d9fc9d54c4043f9863cb5.tar.gz gcc-43fe49ecf1a85a42557d9fc9d54c4043f9863cb5.tar.bz2 |
configure.ac (BUILD_EPUB): Adjust for epub3.
2012-01-17 Benjamin Kosnik <bkoz@redhat.com>
* configure.ac (BUILD_EPUB): Adjust for epub3.
* configure: Regenerate.
* Makefile.in: Same.
* doc/Makefile.am (stamp-epub-docbook): Update for epub3.
* doc/Makefile.in: Regenerate.
* include/Makefile.in: Same.
* libsupc++/Makefile.in: Same.
* po/Makefile.in: Same.
* python/Makefile.in: Same.
* src/Makefile.in: Same.
* testsuite/Makefile.in: Same.
* doc/xml/manual/documentation_hacking.xml: Update.
From-SVN: r183263
Diffstat (limited to 'libstdc++-v3/doc')
-rw-r--r-- | libstdc++-v3/doc/Makefile.am | 16 | ||||
-rw-r--r-- | libstdc++-v3/doc/Makefile.in | 17 | ||||
-rw-r--r-- | libstdc++-v3/doc/xml/manual/documentation_hacking.xml | 10 |
3 files changed, 32 insertions, 11 deletions
diff --git a/libstdc++-v3/doc/Makefile.am b/libstdc++-v3/doc/Makefile.am index 3cb6dce..0f7b285 100644 --- a/libstdc++-v3/doc/Makefile.am +++ b/libstdc++-v3/doc/Makefile.am @@ -467,10 +467,11 @@ XSLT_PARAM = --param toc.section.depth 4 XSL_FO_STYLE = $(XSL_STYLE_DIR)/fo/docbook.xsl XSL_HTML_STYLE = $(XSL_STYLE_DIR)/xhtml-1_1/chunk.xsl XSL_HTML_SINGLE_STYLE = $(XSL_STYLE_DIR)/xhtml-1_1/docbook.xsl -XSL_EPUB_STYLE = $(XSL_STYLE_DIR)/epub/docbook.xsl +XSL_EPUB_STYLE = $(XSL_STYLE_DIR)/epub3/chunk.xsl ${docbook_outdir}/epub: mkdir -p ${docbook_outdir}/epub + mkdir -p ${docbook_outdir}/epub/OEBPS/images ${docbook_outdir}/fo: mkdir -p ${docbook_outdir}/fo @@ -592,20 +593,25 @@ doc-texinfo-docbook: stamp-texinfo-docbook doc-info-docbook: stamp-info-docbook -# EPUB, via ruby + dbtoepub -# Can verify document with: epubcheck +# EPUB version 3 +# http://sourceforge.net/projects/docbook/files/epub3/ +# Can verify document with epubcheck manual_epub = ${docbook_outdir}/epub/libstdc++-manual.epub stamp-epub-docbook: stamp-xml-single-docbook ${docbook_outdir}/epub @echo "Generating epub files..." if [ ! -d "${docbook_outdir}/images" ]; then \ $(LN_S) ${top_srcdir}/doc/xml/images ${docbook_outdir}/; \ fi - ${XSL_STYLE_DIR}/epub/bin/dbtoepub -v -d -o ${manual_epub} ${set_xml} + $(XSLTPROC) $(XSLT_PARAM) $(XSLT_FLAGS) \ + --stringparam base.dir "${docbook_outdir}/epub/OEBPS/" \ + $(XSL_EPUB_STYLE) ${top_srcdir}/doc/xml/spine.xml + $(INSTALL_DATA) $(xml_images) ${docbook_outdir}/epub/OEBPS/images + zip -X0 ${manual_epub} ${docbook_outdir}/epub/mimetype + zip -r -X9 ${manual_epub} ${docbook_outdir}/epub/META-INF ${docbook_outdir}/epub/OEBPS $(STAMP) stamp-epub-docbook doc-epub-docbook: stamp-epub-docbook - # Performance doc and graph configuration. # Assumes pychart, beautiful soup installed. # Generates the plots/graph imagery for performance testing. diff --git a/libstdc++-v3/doc/Makefile.in b/libstdc++-v3/doc/Makefile.in index c79af0f..7a5498e 100644 --- a/libstdc++-v3/doc/Makefile.in +++ b/libstdc++-v3/doc/Makefile.in @@ -107,7 +107,6 @@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ C_INCLUDE_DIR = @C_INCLUDE_DIR@ DBLATEX = @DBLATEX@ -DBTOEPUB = @DBTOEPUB@ DEBUG_FLAGS = @DEBUG_FLAGS@ DEFS = @DEFS@ DOT = @DOT@ @@ -163,7 +162,6 @@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PDFLATEX = @PDFLATEX@ RANLIB = @RANLIB@ -RUBY = @RUBY@ SECTION_FLAGS = @SECTION_FLAGS@ SECTION_LDFLAGS = @SECTION_LDFLAGS@ SED = @SED@ @@ -518,7 +516,7 @@ XSLT_PARAM = --param toc.section.depth 4 XSL_FO_STYLE = $(XSL_STYLE_DIR)/fo/docbook.xsl XSL_HTML_STYLE = $(XSL_STYLE_DIR)/xhtml-1_1/chunk.xsl XSL_HTML_SINGLE_STYLE = $(XSL_STYLE_DIR)/xhtml-1_1/docbook.xsl -XSL_EPUB_STYLE = $(XSL_STYLE_DIR)/epub/docbook.xsl +XSL_EPUB_STYLE = $(XSL_STYLE_DIR)/epub3/chunk.xsl LINT_FLAGS = --debug --xinclude --noent --noblanks --noout SCHEMA_FLAGS = http://www.docbook.org/xml/5.0/dtd/docbook.dtd #SCHEMA_FLAGS = --nonet /usr/share/xml/docbook5/schema/dtd/5.0/docbook.dtd @@ -549,8 +547,9 @@ DB2TEXI_FLAGS = \ --string-param explicit-node-names=true -# EPUB, via ruby + dbtoepub -# Can verify document with: epubcheck +# EPUB version 3 +# http://sourceforge.net/projects/docbook/files/epub3/ +# Can verify document with epubcheck manual_epub = ${docbook_outdir}/epub/libstdc++-manual.epub # Performance doc and graph configuration. @@ -871,6 +870,7 @@ doc-man-doxygen: stamp-man-doxygen ${docbook_outdir}/epub: mkdir -p ${docbook_outdir}/epub + mkdir -p ${docbook_outdir}/epub/OEBPS/images ${docbook_outdir}/fo: mkdir -p ${docbook_outdir}/fo @@ -965,7 +965,12 @@ stamp-epub-docbook: stamp-xml-single-docbook ${docbook_outdir}/epub if [ ! -d "${docbook_outdir}/images" ]; then \ $(LN_S) ${top_srcdir}/doc/xml/images ${docbook_outdir}/; \ fi - ${XSL_STYLE_DIR}/epub/bin/dbtoepub -v -d -o ${manual_epub} ${set_xml} + $(XSLTPROC) $(XSLT_PARAM) $(XSLT_FLAGS) \ + --stringparam base.dir "${docbook_outdir}/epub/OEBPS/" \ + $(XSL_EPUB_STYLE) ${top_srcdir}/doc/xml/spine.xml + $(INSTALL_DATA) $(xml_images) ${docbook_outdir}/epub/OEBPS/images + zip -X0 ${manual_epub} ${docbook_outdir}/epub/mimetype + zip -r -X9 ${manual_epub} ${docbook_outdir}/epub/META-INF ${docbook_outdir}/epub/OEBPS $(STAMP) stamp-epub-docbook doc-epub-docbook: stamp-epub-docbook diff --git a/libstdc++-v3/doc/xml/manual/documentation_hacking.xml b/libstdc++-v3/doc/xml/manual/documentation_hacking.xml index f6d7d55..2fe7692 100644 --- a/libstdc++-v3/doc/xml/manual/documentation_hacking.xml +++ b/libstdc++-v3/doc/xml/manual/documentation_hacking.xml @@ -611,6 +611,12 @@ <entry>info output</entry> </row> + <row> + <entry>epub3 stylesheets</entry> + <entry>b3</entry> + <entry>epub output</entry> + </row> + </tbody> </tgroup> </table> @@ -675,6 +681,10 @@ For Texinfo output, something that transforms valid Docbook XML to Texinfo is required. The default choice is <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://docbook2x.sourceforge.net/">docbook2X</link>. </para> + + <para> + For epub output, the <link xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:href="http://sourceforge.net/projects/docbook/files/epub3/">stylesheets</link> for EPUB3 are required. These stylesheets are still in development. To validate the created file, <link xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:href="https://code.google.com/p/epubcheck/">epubcheck</link> is necessary. + </para> </section> <section xml:id="docbook.rules"><info><title>Generating the DocBook Files</title></info> |