From 46b587196f1921397a6caca01f5ebc410009fd39 Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Fri, 11 Oct 2019 21:37:49 +0530 Subject: [PATCH] doc: Fix Unicode issues with the manual docbook2html generates HTML4 documents and can't handle utf-8 input. It is quite outdated. Switch to using stylesheets from docbook-xsl package instead. Signed-off-by: Joseph Nuthalapati [sunil@medhas.org Remove intermediary file docbook.css] Signed-off-by: Sunil Mohan Adapa Reviewed-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- debian/control | 3 ++- doc/Makefile | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/debian/control b/debian/control index 1a1d87fa3..caf5b2951 100644 --- a/debian/control +++ b/debian/control @@ -14,7 +14,7 @@ Build-Depends: debhelper-compat (= 12), dblatex, dh-python, - docbook-utils, + docbook-xsl, e2fsprogs, gir1.2-nm-1.0, libjs-bootstrap, @@ -43,6 +43,7 @@ Build-Depends: python3-setuptools-git, python3-yaml, xmlto, + xsltproc Standards-Version: 4.4.1 Homepage: https://salsa.debian.org/freedombox-team/plinth Vcs-Git: https://salsa.debian.org/freedombox-team/plinth.git diff --git a/doc/Makefile b/doc/Makefile index 6d64d02cf..d5a3c95a4 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -77,7 +77,8 @@ freedombox-manual.xml: freedombox-manual.raw.xml fixes.xslt ./post-processor fix-wiki-urls $@ %.html: %.xml - docbook2html --nochunks $< + xsltproc --output $@ /usr/share/xml/docbook/stylesheet/docbook-xsl/xhtml5/docbook.xsl $< + rm -f $(dir $@)docbook.css %.1: %.xml xmlto man $<