From 9d0c8fe0bc7e62205219470b8f91cc0097085f72 Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Tue, 28 Apr 2009 14:44:27 +0300 Subject: [PATCH] docs: nicer code blocks --- doc/Makefile | 16 ++++++++++++---- doc/extra.css | 9 +++++++++ 2 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 doc/extra.css diff --git a/doc/Makefile b/doc/Makefile index 780b0cef..4fa52432 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -23,6 +23,9 @@ COMMON = common.switches.txt common.config.txt common.logutriga.txt GETATTRS = python ./getattrs.py +#AFLAGS = -a linkcss +#AFLAGS = -a stylesheet=extra.css + all: man $(HTMLS) man: londiste.1 londiste.5 pgqadm.1 $(SCRIPT_MANS) @@ -111,17 +114,22 @@ endif %.html: %.txt $(COMMON) LANG=C cat $< \ | sed -e '/^include/b;s,\([A-Za-z.0-9]*\)[.]txt,link:\1.html[],g' \ - | $(ASCIIDOC) -a toc `$(GETATTRS) $<` -o $@ - - #$(ASCIIDOC) -a toc `$(GETATTRS) $<` $< + | $(ASCIIDOC) $(AFLAGS) -a toc `$(GETATTRS) $<` -o - - \ + | sed -e "/^[/][*] Workarounds/r extra.css" \ + > $@ README.html: ../README cat $< \ | sed -e 's,doc/\([!-~]*\)[.]txt,link:\1.html[],g' \ -e 's,http:[!-~]*,&[],g' \ - | $(ASCIIDOC) -o $@ - + | $(ASCIIDOC) $(AFLAGS) -o - - \ + | sed -e "/^[/][*] Workarounds/r extra.css" \ + > $@ INSTALL.html: ../INSTALL - $(ASCIIDOC) -o $@ $< + $(ASCIIDOC) $(AFLAGS) -o - $< \ + | sed -e "/^[/][*] Workarounds/r extra.css" \ + > $@ endif web: $(HTMLS) diff --git a/doc/extra.css b/doc/extra.css new file mode 100644 index 00000000..eb44f103 --- /dev/null +++ b/doc/extra.css @@ -0,0 +1,9 @@ + +/* extra.css: make code blocks more different */ +div.literalblock { + border: 1px solid silver; + background: #f4f4f4; + padding: 0.5em; +} +/* eof extra.css */ + -- 2.39.5