2017-11-05 Fred Gleason <fredg@paravelsystems.com>

* Added DocBook stylesheets for books in 'docs/stylesheets/'.
This commit is contained in:
Fred Gleason 2017-11-05 08:44:58 -05:00
parent 07a187e07f
commit f1b16e0837
9 changed files with 141 additions and 4 deletions

1
.gitignore vendored
View File

@ -34,6 +34,7 @@ docs/apis/*.pdf
docs/opsguide/*.html
docs/opsguide/*.pdf
docs/opsguide/frontspiece.xml
docs/stylesheets/*.xml
helpers/cwrap
helpers/jsmin
importers/nexgen_filter

View File

@ -16252,3 +16252,5 @@
per-chapter files.
2017-11-03 Fred Gleason <fredg@paravelsystems.com>
* Fixed a typo in 'docs/opsguide/filepath_wildcards.xml'.
2017-11-05 Fred Gleason <fredg@paravelsystems.com>
* Added DocBook stylesheets for books in 'docs/stylesheets/'.

View File

@ -236,12 +236,13 @@ if test -z $MP4V2_DISABLED ; then
fi
#
# Build DocBook Items?
# DocBook
#
if test -z $DOCBOOK_DISABLED ; then
USING_DOCBOOK=yes
fi
AM_CONDITIONAL([DOCBOOK_AM], [test "$USING_DOCBOOK" = yes])
AC_SUBST(DOCBOOK_STYLESHEETS,$DOCBOOK_STYLESHEETS)
#
# RDXport Debug
@ -506,6 +507,10 @@ AC_CONFIG_FILES([rivendell.spec \
docs/manpages/Makefile \
docs/opsguide/frontspiece.xml \
docs/opsguide/Makefile \
docs/stylesheets/book-common.xml \
docs/stylesheets/book-fo.xml \
docs/stylesheets/book-xhtml.xml \
docs/stylesheets/Makefile \
docs/tables/Makefile \
debian/Makefile \
debian/patches/Makefile \

View File

@ -20,7 +20,7 @@
## Use automake to process this into a Makefile.in
if DOCBOOK_AM
DOCBOOK_AM_OPT = apis manpages opsguide
DOCBOOK_AM_OPT = apis manpages opsguide stylesheets
endif
SUBDIRS = $(DOCBOOK_AM_OPT) examples\

View File

@ -104,10 +104,10 @@ OPSGUIDE_DEPS = filepath_wildcards.xml\
voicetracking.xml
opsguide.html: $(OPSGUIDE_DEPS) frontspiece.xml
xsltproc -o opsguide.html $(DOCBOOK_STYLESHEETS)/xhtml/docbook.xsl opsguide.xml
xsltproc ../stylesheets/book-xhtml.xml opsguide.xml
opsguide.pdf: $(OPSGUIDE_DEPS) frontspiece.xml
xsltproc $(DOCBOOK_STYLESHEETS)/fo/docbook.xsl opsguide.xml | fop - -pdf opsguide.pdf
xsltproc ../stylesheets/book-fo.xml opsguide.xml | fop - -pdf opsguide.pdf
all-local: opsguide.html\
opsguide.pdf

View File

@ -0,0 +1,31 @@
## Makefile.am
##
## docs/stylesheets/Makefile.am for Rivendell
##
## (C) Copyright 2017 Fred Gleason <fredg@paravelsystems.com>
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License version 2 as
## published by the Free Software Foundation.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public
## License along with this program; if not, write to the Free Software
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
##
## Use automake to process this into a Makefile.in
EXTRA_DIST = book-common.xml.in\
book-fo.xml.in\
book-xhtml.xml.in
CLEANFILES = *~
DISTCLEANFILES = *.xml
MAINTAINERCLEANFILES = *~\
aclocal.m4\
configure\
Makefile.in

View File

@ -0,0 +1,30 @@
<?xml version='1.0'?>
<!--
common-xhtml.xml
Generic stylesheet customizations for Rivendell books
(C) Copyright 2017 Fred Gleason <fredg@paravelsystems.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public
License along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-->
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:param name="section.autolabel">1</xsl:param>
<xsl:param name="section.label.includes.component.label">1</xsl:param>
</xsl:stylesheet>

View File

@ -0,0 +1,35 @@
<?xml version='1.0'?>
<!--
book-fo.xml
FO stylesheet customizations for Rivendell books
(C) Copyright 2017 Fred Gleason <fredg@paravelsystems.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public
License along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-->
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="/usr/share/sgml/docbook/xsl-ns-stylesheets-1.78.1/fo/docbook.xsl" />
<xsl:include href="book-common.xml" />
<!--
<xsl:param name="use.id.as.filename">1</xsl:param>
-->
</xsl:stylesheet>

View File

@ -0,0 +1,33 @@
<?xml version='1.0'?>
<!--
book-xhtml.xml
XHTML stylesheet customizations for Rivendell books
(C) Copyright 2017 Fred Gleason <fredg@paravelsystems.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public
License along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-->
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="@DOCBOOK_STYLESHEETS@/xhtml/chunk.xsl" />
<xsl:include href="book-common.xml" />
<xsl:param name="use.id.as.filename">1</xsl:param>
</xsl:stylesheet>