Merge branch 'jn/maint-doc-user-manual-html-doctype'
authorJunio C Hamano <gitster@pobox.com>
Fri, 3 Sep 2010 16:43:44 +0000 (09:43 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 3 Sep 2010 16:43:44 +0000 (09:43 -0700)
* jn/maint-doc-user-manual-html-doctype:
docs: fix Makefile dependency for user manual
Documentation: set a !DOCTYPE for user manual

Documentation/Makefile
Documentation/docbook.xsl
index a4c4063e50d3eb3bd36d94b399f790e56fe4b050..e117bc4315f6e288e89cf83fb80e876bee7a7dc2 100644 (file)
@@ -279,7 +279,7 @@ $(patsubst %,%.html,$(API_DOCS) technical/api-index): %.html : %.txt
 XSLT = docbook.xsl
 XSLTOPTS = --xinclude --stringparam html.stylesheet docbook-xsl.css
 
-user-manual.html: user-manual.xml
+user-manual.html: user-manual.xml $(XSLT)
        $(QUIET_XSLTPROC)$(RM) $@+ $@ && \
        xsltproc $(XSLTOPTS) -o $@+ $(XSLT) $< && \
        mv $@+ $@
index 9a6912c641edf52083b8996fdce3a0be2f4dba45..da8b05b92283a37b9552f322bbe31df884a3cae7 100644 (file)
@@ -1,5 +1,8 @@
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version='1.0'>
  <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/>
- <xsl:output method="html" encoding="UTF-8" indent="no" />
+ <xsl:output method="html"
+     encoding="UTF-8" indent="no"
+     doctype-public="-//W3C//DTD HTML 4.01//EN"
+     doctype-system="http://www.w3.org/TR/html4/strict.dtd" />
 </xsl:stylesheet>