I tried to change the title of the :toc: from "Table of Contents" to
its German translation... and failed: :toc-title: Inhaltsverzeichnis had no effect, whereas changing :table-caption: Tabelle worked fine... thx for any hints, Gernot |
What's the source of your document? This really should work, also which version of asciidoctor? On Fri, Jun 6, 2014 at 2:33 AM, gernotstarke [via Asciidoctor :: Discussion] <[hidden email]> wrote: I tried to change the title of the :toc: from "Table of Contents" to -- |
Am 06.06.2014 um 17:54 schrieb LightGuardjp [via Asciidoctor :: Discussion] <[hidden email]>:
|
I don't see :toc: in your document, I see other toc related attributes, but not that one. On Fri, Jun 6, 2014 at 11:18 AM, gernotstarke [via Asciidoctor :: Discussion] <[hidden email]> wrote:
-- |
In reply to this post by LightGuardjp
I build with gradle:
/ =========== asciidoctor stuff =============== apply plugin: 'asciidoctor' asciidoctor { outputDir = new File("$buildDir/docs") baseDir = project.file('src/DE/asciidoc') // asciidoctor will convert ALL files contained in sourceDir! sourceDir = project.file('src/DE/asciidoc') options = [ attributes: [ toc : 'left', backend : 'html5', doctype : 'book', icons : 'font', sectlink : true, sectanchors : true, numbered : true, imagesdir : '../images', ] ] } and stripped down my "real" sources a bit: = arc42 Template :toc-title: Inhaltsverzeichnis // scrollable table-of-contents :toc: // numbering from here on :numbered: == Heading 1 text == Heading 2 text == Heading 3 text === h3.1 === h3.2 |
That all looks like it should work. Could you try with the ruby cli to see if we can narrow things down a bit? On Fri, Jun 6, 2014 at 11:56 AM, gernotstarke [via Asciidoctor :: Discussion] <[hidden email]> wrote: the "complete" stuff is located at https://github.com/arc42/arc42-template -- |
now I'm even more puzzled:
I maintain a plethora of asciidoc documents, all worked well until now... Now they stopped generating tocs at all... Building on another machine at least successfully generates the toc, although toc:title still has no effect... sorry for the hassle, I investigate a bit on OS level. |
Administrator
|
Simply remove the blank line after the document title and it should work. = arc42 Template :toc-title: Inhaltsverzeichnis Document-level attributes, such as toc-title, must be defined in the document header. The document header ends after the first blank line following the document title.
Since this is a common mistake, I'll file an issue to emphasize this point more in the documentation.
-Dan On Sat, Jun 7, 2014 at 4:47 AM, gernotstarke [via Asciidoctor :: Discussion] <[hidden email]> wrote: now I'm even more puzzled: Dan Allen | http://google.com/profiles/dan.j.allen
|
In reply to this post by gernotstarke
Dan replied:
Simply remove the blank line after the document title and it should work. = arc42 Template :toc-title: Inhaltsverzeichnis Document-level attributes, such as toc-title, must be defined in the document header. The document header ends after the first blank line following the document title. Since this is a common mistake, I'll file an issue to emphasize this point more in the documentation. -Dan |
Free forum by Nabble | Edit this page |