Login  Register

Why menu, status or go options of deck.js does not work with HTML generated

Posted by ch007m on Nov 18, 2013; 6:18pm
URL: https://discuss.asciidoctor.org/Why-menu-status-or-go-options-of-deck-js-does-not-work-with-HTML-generated-tp1011.html

Hi,

When doing the rendering of a list of asciidoc into a single HTML / Slideshow page (deck.js), the options menu, goto and status, table of content of deck.js does not work when I press the key ('m', 'g', 't')

Here is the command used (with maven plugin) and view source of the HTML page generated

 <plugin>
            <groupId>org.asciidoctor</groupId>
            <artifactId>asciidoctor-maven-plugin</artifactId>
            <executions>
              <execution>
                <id>output-html</id>
                <phase>generate-resources</phase>
                <goals>
                  <goal>process-asciidoc</goal>
                </goals>
              </execution>
            </executions>
            <configuration>
              <sourceDirectory>${basedir}/docs</sourceDirectory>
              <outputDirectory>${slideshow_location}</outputDirectory>
             
              <embedAssets>true</embedAssets>
              <backend>deckjs</backend>
             
              <templateDir>${asciidoctor_backends}/haml/deckjs</templateDir>
              <attributes>
                <max-width>1024px</max-width>
                <icons/>
                <doc-uri/>
               
                <deckjs_theme>swiss</deckjs_theme>
               
                <deckjs_transition>swiss</deckjs_transition>
                <navigation/>
                <menu/>
                <status/>
              </attributes>
              <extensions>
                <extension>index</extension>
              </extensions>
            </configuration>
          </plugin>

https://gist.github.com/7532622
...
https://gist.github.com/7532601

Any idea is welcome ?

Regards,

Charles
Charles Moulliard
Apache Committer / Technologist Evangelist / Blogger / MiddleWare Specialist
Twitter : @cmoulliard