diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2015-06-12 21:26:32 +0100 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2015-06-18 11:32:08 +0100 |
commit | e9549aef386be18950029b9a7f178467b32c670e (patch) | |
tree | 712d3b1a5716917d16d9a41f0b5549f3a18caed7 /winsup | |
parent | 94f16969d39dfc0de3eefb75a4793367da76fe00 (diff) | |
download | newlib-e9549aef386be18950029b9a7f178467b32c670e.zip newlib-e9549aef386be18950029b9a7f178467b32c670e.tar.gz newlib-e9549aef386be18950029b9a7f178467b32c670e.tar.bz2 |
winsup/doc: Add man.xsl customization stylesheet
2015-06-17 Jon Turney <jon.turney@dronecode.org.uk>
* man.xsl: New file.
* Makefile.in (utils2man.stamp, api2man.stamp): Use it.
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/doc/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/doc/Makefile.in | 8 | ||||
-rw-r--r-- | winsup/doc/man.xsl | 13 |
3 files changed, 22 insertions, 4 deletions
diff --git a/winsup/doc/ChangeLog b/winsup/doc/ChangeLog index 9e796d2..4077ec2 100644 --- a/winsup/doc/ChangeLog +++ b/winsup/doc/ChangeLog @@ -1,5 +1,10 @@ 2015-06-17 Jon Turney <jon.turney@dronecode.org.uk> + * man.xsl: New file. + * Makefile.in (utils2man.stamp, api2man.stamp): Use it. + +2015-06-17 Jon Turney <jon.turney@dronecode.org.uk> + * Makefile.in (api2man.stamp): Add rules to build and install manpages for cygwin-api. diff --git a/winsup/doc/Makefile.in b/winsup/doc/Makefile.in index f308ab2..60b375a 100644 --- a/winsup/doc/Makefile.in +++ b/winsup/doc/Makefile.in @@ -97,8 +97,8 @@ cygwin-ug-net/cygwin-ug-net.html : $(cygwin-ug-net_SOURCES) html.xsl cygwin-ug-net/cygwin-ug-net.pdf : $(cygwin-ug-net_SOURCES) fo.xsl -$(XMLTO) pdf -o cygwin-ug-net/ -m $(srcdir)/fo.xsl $< -utils2man.stamp: $(cygwin-ug-net_SOURCES) - $(XMLTO) man $< +utils2man.stamp: $(cygwin-ug-net_SOURCES) man.xsl + $(XMLTO) man -m ${srcdir}/man.xsl $< @touch $@ cygwin-api/cygwin-api.html : $(cygwin-api_SOURCES) html.xsl @@ -107,8 +107,8 @@ cygwin-api/cygwin-api.html : $(cygwin-api_SOURCES) html.xsl cygwin-api/cygwin-api.pdf : $(cygwin-api_SOURCES) fo.xsl -$(XMLTO) pdf -o cygwin-api/ -m $(srcdir)/fo.xsl $< -api2man.stamp: $(cygwin-api_SOURCES) - $(XMLTO) man $< +api2man.stamp: $(cygwin-api_SOURCES) man.xsl + $(XMLTO) man -m ${srcdir}/man.xsl $< @touch $@ faq/faq.html : $(FAQ_SOURCES) diff --git a/winsup/doc/man.xsl b/winsup/doc/man.xsl new file mode 100644 index 0000000..22e624f --- /dev/null +++ b/winsup/doc/man.xsl @@ -0,0 +1,13 @@ +<?xml version='1.0'?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> + +<!-- don't truncate manpage titles for long function names --> +<xsl:param name="man.th.title.max.length" select="33" /> + +<!-- don't moan about missing metadata --> +<xsl:param name="refentry.meta.get.quietly" select="1" /> + +<!-- base URL for relative links --> +<xsl:param name="man.base.url.for.relative.links">https://cygwin.com/cygwin-ug-net/</xsl:param> + +</xsl:stylesheet> |