No Python involved, the TOC in Asciidoc HTML is generated by
javascript during page loading by javascripts/asciidoc.js and I assume
function `tocEntries()` would need to be modified to add something to
the generated entries to allow expand/contract.

I am not an expert on Asciidoctor, but IIUC it has a static TOC and so
Ruby code might be needed to generate the same thing.  Once the
entries needed are defined I'm sure Asciidoctor people will easily
provide support for that.

Cheers
Lex

On 28 October 2015 at 21:02, Willem Ferguson <[email protected]> wrote:
>
> Thank you very much for your useful feedback. There are two issues at
> stake here:
>
> 1) Adapting the javascript to do what one would like to see happening in
> the document.
> 2) Creating Python code that generates the javascript, probably based on
> some (new?) asciidoc instruction.
>
> I can probably generate javascript adaptations to do what I require, but
> every time I create an update of the text I would need to do the
> javascript modifications by hand. Is this correct? Python is not unknown
> around here, but I would not be able to do any of that. Waht is your
> perspective?
> Kind regards, and thanks for your constructive approach.
> willem
>
>
> On Wednesday, 28 October 2015 08:18:36 UTC+2, Dan Allen wrote:
>>
>>
>> On Wed, Oct 28, 2015 at 12:15 AM, Lex Trotman <[email protected]> wrote:
>>>
>>> But it would be a good contribution to both Asciidoc and Asciidoctor
>>
>>
>> There's an open issue in Asciidoctor for it. See
>> https://github.com/asciidoctor/asciidoctor/issues/699
>>
>>
>> --
>> Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "asciidoc" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/asciidoc.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.

Reply via email to