mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
doc: (re)add single page HTML generation
This commit is contained in:
@@ -36,6 +36,11 @@ html-stamp: stylesheet.xsl repmgr.sgml $(ALLSGML) $(GENERATED_SGML)
|
|||||||
cp $(srcdir)/stylesheet.css html/
|
cp $(srcdir)/stylesheet.css html/
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
|
# single-page HTML
|
||||||
|
repmgr.html: stylesheet-html-nochunk.xsl repmgr.sgml $(ALLSGML) $(GENERATED_SGML)
|
||||||
|
$(XMLLINT) $(XMLINCLUDE) --noout --valid $(word 2,$^)
|
||||||
|
$(XSLTPROC) $(XMLINCLUDE) $(XSLTPROCFLAGS) $(XSLTPROC_HTML_FLAGS) -o $@ $(wordlist 1,2,$^)
|
||||||
|
|
||||||
version.sgml: $(repmgr_top_builddir)/repmgr_version.h
|
version.sgml: $(repmgr_top_builddir)/repmgr_version.h
|
||||||
{ \
|
{ \
|
||||||
echo "<!ENTITY repmgrversion \"$(REPMGR_VERSION)\">"; \
|
echo "<!ENTITY repmgrversion \"$(REPMGR_VERSION)\">"; \
|
||||||
|
|||||||
23
doc/stylesheet-html-nochunk.xsl
Normal file
23
doc/stylesheet-html-nochunk.xsl
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<?xml version='1.0'?>
|
||||||
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
|
version='1.0'
|
||||||
|
xmlns="http://www.w3.org/TR/xhtml1/transitional"
|
||||||
|
exclude-result-prefixes="#default">
|
||||||
|
|
||||||
|
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
|
||||||
|
<xsl:include href="stylesheet-common.xsl" />
|
||||||
|
<xsl:include href="stylesheet-html-common.xsl" />
|
||||||
|
<xsl:include href="stylesheet-speedup-xhtml.xsl" />
|
||||||
|
|
||||||
|
<!-- embed SVG images into output file -->
|
||||||
|
<xsl:template match="imagedata[@format='SVG']">
|
||||||
|
<xsl:variable name="filename">
|
||||||
|
<xsl:call-template name="mediaobject.filename">
|
||||||
|
<xsl:with-param name="object" select=".."/>
|
||||||
|
</xsl:call-template>
|
||||||
|
</xsl:variable>
|
||||||
|
|
||||||
|
<xsl:copy-of select="document($filename)"/>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
</xsl:stylesheet>
|
||||||
Reference in New Issue
Block a user