New doc build system
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2208 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
7aef081d03
commit
dca5f97635
|
@ -0,0 +1,19 @@
|
|||
XSLTPROC = xsltproc --xinclude
|
||||
|
||||
default:
|
||||
@echo -e "The following make targets are available:\n"
|
||||
@echo -e "\thtml\t\tA single HTML page\n"
|
||||
@echo -e "\tman\t\tMan pages for all functions\n"
|
||||
|
||||
all: html man
|
||||
|
||||
clean:
|
||||
rm -rf html man
|
||||
|
||||
html:
|
||||
$(XSLTPROC) -o html/api.html src/api/html.xsl src/api/api.xml
|
||||
|
||||
man:
|
||||
$(XSLTPROC) -o man/ src/api/man.xsl src/api/api.xml
|
||||
|
||||
.SILENT:
|
|
@ -1,5 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet href="api.xsl" type="text/xsl"?>
|
||||
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.2//EN"
|
||||
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
|
||||
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE stylesheet [
|
||||
<!ENTITY css SYSTEM "api.css">
|
||||
]>
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
<xsl:import href="/usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl"/>
|
||||
<xsl:param name="toc.section.depth" select="0"/>
|
||||
<xsl:template name="user.head.content">
|
||||
<style type="text/css">
|
||||
<xsl:comment>
|
||||
&css;
|
||||
</xsl:comment>
|
||||
</style>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
<xsl:import href="/usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl"/>
|
||||
</xsl:stylesheet>
|
Loading…
Reference in New Issue