Using "View Results" boxes as in Asciidoctor Syntax Quick Reference
Sorry for this dumb question, but I wonder how to use the dynamic "view result" boxes in my documents as in the Asciidoctor Syntax Quick Reference. I tried using the [.result] role attribute, but that didn't do the trick. I looked into the html-source and found some awestruct attributes. Are they relevant. Please give me some advice.
The way it's done in the asciidoctor.org website is that I've used Awestruct to add extra JavaScript to the page template. You can see that JavaScript here:
Cédric and Rob have ported this functionality to the Groovy documentation, which you can see here (scroll down until you see the "view example" links):
I recommend communicating in the issue listed above to understand how to implement it on your own docs. It's not something that is provided out of the box in Asciidoctor at the moment.
Cheers,
-Dan
On Thu, Jan 30, 2014 at 5:37 AM, wimalopaan [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Sorry for this dumb question, but I wonder how to use the dynamic "view result" boxes in my documents as in the Asciidoctor Syntax Quick Reference. I tried using the [.result] role attribute, but that didn't do the trick. I looked into the html-source and found some awestruct attributes. Are they relevant. Please give me some advice.
Regards,
Wilhelm
If you reply to this email, your message will be added to the discussion below: