From bc57a0f2f1640f264ea4cc7b5d43d1643ccfd2d7 Mon Sep 17 00:00:00 2001 From: Cristian Douce Date: Tue, 10 Jun 2014 17:09:47 -0300 Subject: [PATCH] Bump tutorial-navigator@0.7.0 and add prettyPrint to docs --- docs/index.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index 7f06004..fa30a65 100644 --- a/docs/index.md +++ b/docs/index.md @@ -11,8 +11,8 @@ Hello@@account.userName ? ' ' + account.userName : ''@@! Ready to test drive Aut - - + + @@ -146,6 +146,16 @@ Hello@@account.userName ? ' ' + account.userName : ''@@! Ready to test drive Aut if (!eqlPath(url)) return page(url); }; + // pretty printing + tutorial.on('codevisible', prettifyonvisible); + tutorial.on('nativevisible', prettifyonvisible); + tutorial.on('hybridvisible', prettifyonvisible); + tutorial.on('clientvisible', prettifyonvisible); + tutorial.on('serverapivisible', prettifyonvisible); + + function prettifyonvisible(visible) { + if (visible && prettyPrint) prettyPrint(); + } })()