From: Thomas De Schampheleire <patrickdepinguin@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 3 of 5 v3 for 2014.08] gendoc infra: add support for asciidoc configuration files
Date: Wed, 13 Aug 2014 21:25:49 +0200 [thread overview]
Message-ID: <7437dd86ef456d137451.1407957949@localhost> (raw)
In-Reply-To: <patchbomb.1407957946@localhost>
This patch introduces support for asciidoc configuration files, specific for
each output format (html, text, pdf, ...). This is useful to make certain
tweaks in the document generation.
If a file docs/manual/asciidoc-<format>.conf is present, it is passed to
asciidoc as configuration file. If no file for the current format is
present, the options passed to asciidoc are empty.
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
---
v3: no changes
v2: no changes
docs/manual/manual.mk | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff -r f7050051dd5a -r 7437dd86ef45 docs/manual/manual.mk
--- a/docs/manual/manual.mk Sat Aug 09 18:18:58 2014 +0200
+++ b/docs/manual/manual.mk Sat Aug 09 12:20:16 2014 +0200
@@ -56,6 +56,11 @@
manual-check-dependencies-$(3):
+MANUAL_$(2)_ASCIIDOC_CONF = docs/$(1)/asciidoc-$(2).conf
+ifneq ($$(wildcard $$(MANUAL_$(2)_ASCIIDOC_CONF)),)
+MANUAL_$(2)_ASCIIDOC_OPTS += -f $$(MANUAL_$(2)_ASCIIDOC_CONF)
+endif
+
$$(O)/docs/$(1)/$(1).$(4): docs/$(1)/$(1).txt \
$$($$(call UPPERCASE,$(1))_SOURCES) \
manual-check-dependencies \
@@ -65,7 +70,8 @@
$$(Q)mkdir -p $$(@D)/.build
$$(Q)rsync -au docs/$(1)/*.txt $$(@D)/.build
$$(Q)a2x $(6) -f $(2) -d book -L -r $$(TOPDIR)/docs/images \
- -D $$(@D) $$(@D)/.build/$(1).txt
+ -D $$(@D) $$(@D)/.build/$(1).txt \
+ --asciidoc-opts="$$(MANUAL_$(2)_ASCIIDOC_OPTS)"
-$$(Q)rm -rf $$(@D)/.build
endef
next prev parent reply other threads:[~2014-08-13 19:25 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-13 19:25 [Buildroot] [PATCH 0 of 5 v3 for 2014.08] manual-text generation improvements Thomas De Schampheleire
2014-08-13 19:25 ` [Buildroot] [PATCH 1 of 5 v3 for 2014.08] Makefile: unconditionally include pkg-utils.mk Thomas De Schampheleire
2014-08-15 10:14 ` Samuel Martin
2014-08-13 19:25 ` [Buildroot] [PATCH 2 of 5 v3 for 2014.08] gendoc infra: use $(pkgname) instead of explicitly passing 'manual' Thomas De Schampheleire
2014-08-15 10:14 ` Samuel Martin
2014-08-15 11:04 ` Samuel Martin
2014-08-15 11:07 ` Samuel Martin
2014-09-07 12:45 ` Yann E. MORIN
2014-08-13 19:25 ` Thomas De Schampheleire [this message]
2014-08-15 10:14 ` [Buildroot] [PATCH 3 of 5 v3 for 2014.08] gendoc infra: add support for asciidoc configuration files Samuel Martin
2014-08-13 19:25 ` [Buildroot] [PATCH 4 of 5 v3 for 2014.08] manual-text: make sure URLs are displayed if a link text was provided Thomas De Schampheleire
2014-08-15 10:14 ` Samuel Martin
2014-08-13 19:25 ` [Buildroot] [PATCH 5 of 5 v3 for 2014.08] manual-text: hide image representations Thomas De Schampheleire
2014-08-15 10:15 ` Samuel Martin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7437dd86ef456d137451.1407957949@localhost \
--to=patrickdepinguin@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.