1
0
mirror of synced 2025-01-18 14:31:40 +03:00

docbook docs are now able to do syntax highlighting.

This commit is contained in:
pookey 2007-05-31 19:18:25 +00:00
parent 6c42ff9216
commit 6bd0bfe206
5 changed files with 13 additions and 4 deletions

View File

@ -1,7 +1,7 @@
XSLSTYLE=doctrine.xsl XSLSTYLE=doctrine.xsl
XSLSTYLE_CHUNKED=doctrine-chunked.xsl XSLSTYLE_CHUNKED=doctrine-chunked.xsl
%.html: %.xml %.html: %.xml
xsltproc --output $@ $(XSLSTYLE) $< xsieve -xinclude --output $@ $(XSLSTYLE) $<
xsltproc --stringparam base.dir html/ $(XSLSTYLE_CHUNKED) $< xsieve -xinclude --stringparam base.dir html/ $(XSLSTYLE_CHUNKED) $<
html: doctrine.html html: doctrine.html

View File

@ -1,5 +1,7 @@
<?xml version='1.0'?> <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets-1.70.1/xhtml/chunk.xsl"/> <xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets-1.70.1/xhtml/chunk.xsl"/>
<xsl:param name="html.stylesheet" select="'doctrine.css'"/> <xsl:import href="/root/src/xsieve/experiments/programlisting/colorer.xsl"/>
<xsl:import href="/root/src/xsieve/experiments/programlisting/colorer-html.xsl"/>
<xsl:param name="html.stylesheet" select="'../doctrine.css'"/>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -2,3 +2,8 @@ body, p, td
{ {
font-family: arial, "lucida console", sans-serif font-family: arial, "lucida console", sans-serif
} }
.programlisting
{
margin: 10px;
background-color: #eeeeee;
}

View File

@ -171,7 +171,7 @@
If the power of DQL isn't enough, you should consider using the rawSql API for object population. If the power of DQL isn't enough, you should consider using the rawSql API for object population.
</para> </para>
<programlisting><![CDATA[ <programlisting role="php"><![CDATA[
<?php <?php
// DO NOT USE THE FOLLOWING CODE // DO NOT USE THE FOLLOWING CODE
// (using many sql queries for object population): // (using many sql queries for object population):

View File

@ -1,5 +1,7 @@
<?xml version='1.0'?> <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets-1.70.1/xhtml/docbook.xsl"/> <xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets-1.70.1/xhtml/docbook.xsl"/>
<xsl:import href="/root/src/xsieve/experiments/programlisting/colorer.xsl"/>
<xsl:import href="/root/src/xsieve/experiments/programlisting/colorer-html.xsl"/>
<xsl:param name="html.stylesheet" select="'doctrine.css'"/> <xsl:param name="html.stylesheet" select="'doctrine.css'"/>
</xsl:stylesheet> </xsl:stylesheet>