From 2da07127e45312ce22d894aa771b8797e9a301a1 Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Tue, 24 May 2011 00:49:33 +0200 Subject: Add doc:tutorial-instructions widget --- docs/src/templates/doc_widgets.css | 51 ++++++++++++++++++++++++ docs/src/templates/doc_widgets.js | 82 ++++++++++++++++++++++++++++++++++++++ docs/src/templates/docs.js | 18 +++++++++ 3 files changed, 151 insertions(+) (limited to 'docs/src/templates') diff --git a/docs/src/templates/doc_widgets.css b/docs/src/templates/doc_widgets.css index 9f007f0e..4f759a8b 100644 --- a/docs/src/templates/doc_widgets.css +++ b/docs/src/templates/doc_widgets.css @@ -33,3 +33,54 @@ li.doc-example-live { div.syntaxhighlighter { padding-bottom: 1px !important; /* fix to remove unnecessary scrollbars http://is.gd/gSMgC */ } + +/* TABS - tutorial environment navigation */ + +div.tabs-nav { + height: 25px; + position: relative; +} + +div.tabs-nav ul li { + list-style: none; + display: inline-block; + padding: 5px 10px; +} + +div.tabs-nav ul li.current a { + color: white; + text-decoration: none; +} + +div.tabs-nav ul li.current { + background: #7989D6; + -moz-box-shadow: 4px 4px 6px #48577D; + -moz-border-radius-topright: 8px; + -moz-border-radius-topleft: 8px; + box-shadow: 4px 4px 6px #48577D; + border-radius-topright: 8px; + border-radius-topleft: 8px; + -webkit-box-shadow: 4px 4px 6px #48577D; + -webkit-border-top-right-radius: 8px; + -webkit-border-top-left-radius: 8px; + border-top-right-radius: 8px; + border-top-left-radius: 8px; +} + +div.tabs-content { + padding: 4px; + position: relative; + background: #7989D6; + -moz-border-radius: 8px; + border-radius: 8px; + -webkit-border-radius: 8px; +} + +div.tabs-content-inner { + margin: 1px; + padding: 10px; + background: white; + border-radius: 6px; + -moz-border-radius: 6px; + -webkit-border-radius: 6px; +} diff --git a/docs/src/templates/doc_widgets.js b/docs/src/templates/doc_widgets.js index 6275012c..a3527c52 100644 --- a/docs/src/templates/doc_widgets.js +++ b/docs/src/templates/doc_widgets.js @@ -85,4 +85,86 @@ return {html: lines.join('\n'), hilite: lineNo.join(',') }; }; + var HTML_TPL = + 'Show Instructions' + + '
Reset the workspace to step {step}.
' + + ' git checkout -f step-{step}Refresh your browser or check the app out on anglar\'s server.
Reset the workspace to step {step}.
' + + ' git checkout -f step-{step}Refresh your browser or check the app out on anglar\'s server.
Reset the workspace to step {step}.
' + + ' ./goto_step.sh {step}Refresh your browser or check the app out on anglar\'s server.
Reset the workspace to step {step}.
' + + ' ./goto_step.bat {step}Refresh your browser or check the app out on anglar\'s server.