Skip to content

Commit faf5576

Browse files
committed
Merge branch 'bc/doc-use-docbook-5'
Start using DocBook 5 (instead of DocBook 4.5) as Asciidoctor 2.0 no longer works with the older one. * bc/doc-use-docbook-5: Documentation: fix build with Asciidoctor 2
2 parents 314fcd3 + f6461b8 commit faf5576

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed

Documentation/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,13 @@ ifdef USE_ASCIIDOCTOR
198198
ASCIIDOC = asciidoctor
199199
ASCIIDOC_CONF =
200200
ASCIIDOC_HTML = xhtml5
201-
ASCIIDOC_DOCBOOK = docbook45
201+
ASCIIDOC_DOCBOOK = docbook5
202202
ASCIIDOC_EXTRA += -acompat-mode -atabsize=8
203203
ASCIIDOC_EXTRA += -I. -rasciidoctor-extensions
204204
ASCIIDOC_EXTRA += -alitdd='&\#x2d;&\#x2d;'
205205
DBLATEX_COMMON =
206+
XMLTO_EXTRA += --skip-validation
207+
XMLTO_EXTRA += -x manpage.xsl
206208
endif
207209

208210
SHELL_PATH ?= $(SHELL)

Documentation/manpage.xsl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
2+
<xsl:import href="http://docbook.sourceforge.net/release/xsl-ns/current/manpages/docbook.xsl" />
3+
</xsl:stylesheet>

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ jobs:
374374
test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
375375
376376
sudo apt-get update &&
377-
sudo apt-get install -y asciidoc xmlto asciidoctor &&
377+
sudo apt-get install -y asciidoc xmlto asciidoctor docbook-xsl-ns &&
378378
379379
export ALREADY_HAVE_ASCIIDOCTOR=yes. &&
380380
export jobname=Documentation &&

ci/install-dependencies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ StaticAnalysis)
5353
;;
5454
Documentation)
5555
sudo apt-get -q update
56-
sudo apt-get -q -y install asciidoc xmlto
56+
sudo apt-get -q -y install asciidoc xmlto docbook-xsl-ns
5757

5858
test -n "$ALREADY_HAVE_ASCIIDOCTOR" ||
5959
gem install --version 1.5.8 asciidoctor

ci/test-documentation.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
filter_log () {
99
sed -e '/^GIT_VERSION = /d' \
1010
-e '/^ \* new asciidoc flags$/d' \
11+
-e '/stripped namespace before processing/d' \
12+
-e '/Attributed.*IDs for element/d' \
1113
"$1"
1214
}
1315

0 commit comments

Comments
 (0)