On 06/01/11 23:30, Miklos Vajna wrote:
Hi,
We have our documentation in a one chapter / file format, each file is
like this:
----
= Title
some text
== First subsection
bla bla
----
Now we have these chapters as chapter1.txt chapter2.txt, etc.
We want to have per-chapter and single html output as well, so we run
asciidoc on each txt, plus a special manual.txt which is like:
----
include::introduction.txt[]
include::about.txt[]
include::quickref.txt[]
----
and so on. Given that even the type of the merged document is article,
we use a custom config to redefine "= Foo" as sect1 instead of sect0,
etc.
The config is here:
http://ftp.frugalware.org/pub/frugalware/frugalware-current/docs/merge.conf
This used to work, but recently I get:
----
$ /usr/bin/asciidoc.py --backend docbook --conf-file=merge.conf --attribute toc
--attribute numbered --attribute sectids --attribute lang=en --out-file
/home/vmiklos/git/current/docs/manual.xml
/home/vmiklos/git/current/docs/manual.txt
asciidoc: ERROR: header.txt: line 1: only book doctypes can contain level 0
sections
asciidoc: WARNING: header.txt: line 1: missing section: [sect0]
----
Any idea what can be the problem?
Looks like the problem does not happen with 8.5.3 but it does with
8.6.3.
To reproduce:
git clone http://frugalware.org/git/pub/frugalware/frugalware-current
cd frugalware-current/docs
make manual.pdf
I used your config with this document:
8<----
= Test
include::t2.txt[]
8<----
And included this document t2.txt:
8<----
= Document Title
== Included Section
Lorum ipsum.
8<----
It worked fine, no errors, so there's something else going on.
You could use the leveloffset attribute which would obliviate the need for a
config file, see:
http://www.methods.co.nz/asciidoc/userguide.html#X90
Cheers, Stuart
Thanks.
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/asciidoc?hl=en.