Skip to content

Commit 6fcd72d

Browse files
committed
Merge branch 'js/doc-markup-updates-fix'
Work around asciidoctor's css that renders `monospace` material in the SYNOPSIS section of manual pages as block elements. * js/doc-markup-updates-fix: Doc: fix Asciidoctor css workaround asciidoctor: fix `synopsis` rendering
2 parents 37b959e + d44ce6d commit 6fcd72d

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Documentation/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,15 @@ ASCIIDOC_DOCBOOK = docbook5
204204
ASCIIDOC_EXTRA += -acompat-mode -atabsize=8
205205
ASCIIDOC_EXTRA += -I. -rasciidoctor-extensions
206206
ASCIIDOC_EXTRA += -alitdd='&\#x2d;&\#x2d;'
207+
ASCIIDOC_EXTRA += -adocinfo=shared
207208
ASCIIDOC_DEPS = asciidoctor-extensions.rb GIT-ASCIIDOCFLAGS
208209
DBLATEX_COMMON =
209210
XMLTO_EXTRA += --skip-validation
210211
XMLTO_EXTRA += -x manpage.xsl
211212
endif
212213

214+
ASCIIDOC_DEPS += docinfo.html
215+
213216
SHELL_PATH ?= $(SHELL)
214217
# Shell quote;
215218
SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
@@ -338,6 +341,9 @@ clean:
338341
$(RM) $(cmds_txt) $(mergetools_txt) *.made
339342
$(RM) GIT-ASCIIDOCFLAGS
340343

344+
docinfo.html: docinfo-html.in
345+
$(QUIET_GEN)$(RM) $@ && cat $< >$@
346+
341347
$(MAN_HTML): %.html : %.txt $(ASCIIDOC_DEPS)
342348
$(QUIET_ASCIIDOC)$(TXT_TO_HTML) -d manpage -o $@ $<
343349

Documentation/docinfo-html.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<style>
2+
pre>code {
3+
display: inline;
4+
}
5+
</style>

0 commit comments

Comments
 (0)