README.rdoc in trickster-0.0.4 vs README.rdoc in trickster-0.0.5

- old
+ new

@@ -7,11 +7,11 @@ It does this by compiling your presentation into an HTML file that, when loaded, will execute the Trickster JavaScript, which will dynamically resize each slide to the biggest it can be based on the browser's current size. == Presentation Format -Your presentation is stored in text file. Each slide has the following format: +Your presentation is stored in a text file. Each slide has the following format: !<slide_type>: options <content> <content> <content> @@ -51,15 +51,15 @@ == BULLETS The first line is the "title" if this slide, rendered in an +H1+. The remaining are bullets. If a bullet line is preceded with a <tt>*</tt>, <tt>-</tt>, or <tt>+</tt>, that bullet character is omitted automatically. == IMAGE -The first line is the url to the image to show. +The first line is the url to the image to show. Trickster will size the image down only if it is too big, preserving its aspect ratio. == CODE -If the first line starts with <tt>file://</tt>, the contents of this file is read in as the contents of the code block. Otherwise, the entire contents of the slide is verbatim put into a +pre+ and then +code+ block. Syntax highlighting is done using a modified version of +highlight.js+. This modification demarcates each line of the code, and allows you to show line numbers and callout particular lines. +If the first line starts with <tt>file://</tt>, the contents of this file is read in as the contents of the code block. Otherwise, the entire contents of the slide is verbatim put into a +pre+ and then +code+ block. Syntax highlighting is done using +highlight.js+. === Language By default, no language is specified for highlighting, so +highlight.js+ will make a guess. If you'd like to be explicit, use the +language+ option, e.g. @@ -72,10 +72,18 @@ A code slide accepts an option of +callout+ which is a comma-delimited list of the lines of code to "call out" with special styling. This is useful if you are talking about particular lines, or are demonstrating new lines having been added to a previous example. Further, if the line number is preceded with a dash (e.g. <tt>-3</tt>), that line will be styled for strikethrough, in addition to being highlighed. This is useful to show lines of code that are going to be deleted based on whatever you are talking about. +=== Highlighting Themes + +Trickster comes with all the themes provided by highlight.js, as well a customizable theme in SCSS. When you create your slideshow, use <tt>--theme</tt> to specify the syntax highlighting theme. <code>trickster help init</code> will show the list of themes available. + +If you want easily create a custom highlighting scheme, the theme +custom+ generates a SASS template with variables to allow you to easily set the colors you want. + +Once your slideshow has been created, you can change the theme via <code>trickster update theme</code>. <strong>This is destructive</strong> so make sure your slideshow is checked into version control. + == COMMANDLINE This slide is for showing command-line invocations and results. It is assumed to start with a CLI invocation and that such invocations are followed by results, that can be many lines. When you present the slideshow, the command will be output in a "typewriter" style, after which the result will be shown automatically, with each command acting like a "bullet" to be revealed. === Example @@ -103,19 +111,19 @@ === Styling Recommendations * Prefer 'em' over explicit sizes, as this will aloww your sizing choices to work at any size (remember that Trickster tries to fit your content to the screen) * The <tt>BODY</tt> element will be given the class of the currently-displayed slide, so if you want to, for example, change the background color of a slide based on its type, apply styles to <tt>body.SLIDE_TYPE</tt> and not <tt>section.SLIDE_TYPE</tt> -* The syntax highlighting is woefully tied to Solarized Light. Since we are using a patched version of highlight.js that shows line numbers and calls out lines, I had to patch the syntax CSS file to show those highlights. I've currently only done so for Solarized Light, and this style is hard-coded in the generated HTML file, anway. Sorry. Feel free to improve this for me and I'll commit the patch. +* If you want to customzie the syntax highlighting, you can. <tt>trickster update</tt> will leave it alone. If you want to build a more invovled highlighting theme, use the "custom" theme when you create your presentation or migrate to it via <tt>trickster update theme -t custom</tt> == Delivering the Presentation Simply open `index.html` in your browser. Your browser should be Safari or Chrome. Every time you reload, the presentation will be dynamically sized to the size of the browser, so you should configure your browser and monitor to the size of your presentation, then reload. -Occasionally, Trickster will size the slides too larger or too small. In that case, you can use "-" and "+" to resize the slides on the fly. If you reload, the sizes will be reset. +Occasionally, Trickster will size the slides too larger or too small. In that case, you can use "-" and "+" to resize the slides on the fly. Note that if you you reload, the sizes will be reset. === Keyboard Commands advance:: "j", space-bar, right-arrow, or the advance button on the Kensington Wireless Presenter. back:: "k", backspace, left-arrow, or the back button the Kensington Wireless Presenter. @@ -129,11 +137,11 @@ = CLI == trickster - Bootstrap, generate, and manage your trickster presentation -v0.0.4 +v0.0.5 === Global Options === --help Show this message @@ -183,18 +191,54 @@ You can examine the file `slides` to see some examples of how to format your presentation. You can run `trickster build` in the directory to create the HTML file from your slides. -Note that if you upgrade trickster, you should run `tricksterd update` in your slide directory +Note that if you upgrade trickster, you should run `trickster update` in your slide directory to get the latest JavaScript and CSS files. +===== Options +===== -t arg + +Specify the syntax highlighting theme to use. One of arta, ascetic, brown_paper, custom, dark, default, far, github, googlecode, idea, ir_black, magula, monokai, pojoaque, rainbow, school_book, solarized_dark, solarized_light, sunburst, tomorrow, tomorrow-night, tomorrow-night-blue, tomorrow-night-bright, tomorrow-night-eighties, vs, xcode, zenburn. Use 'custom' to get an scss file you can easily customize. + +[Aliases] --theme +[Default Value] default +[Must Match] ["arta", "ascetic", "brown_paper", "custom", "dark", "default", "far", "github", "googlecode", "idea", "ir_black", "magula", "monokai", "pojoaque", "rainbow", "school_book", "solarized_dark", "solarized_light", "sunburst", "tomorrow", "tomorrow-night", "tomorrow-night-blue", "tomorrow-night-bright", "tomorrow-night-eighties", "vs", "xcode", "zenburn"] + + ==== update [dir_name] -Update an existing slideshow with the latest Trickster JS/CSS files +Update your slideshow with files provided by trickster + +===== Commands +====== files slide_dir +Update the trickster JS/CSS files when you've updated the trickster gem + + Run this after you've upgraded trickster and want to get the latest features. Since your -slideshow is entirely self-contained, when you upgrade tricksterd, your static JavaScript and -CSS files will be out of date. + slideshow is entirely self-contained, when you upgrade trickster, your static JavaScript and + CSS files will be out of date. -Note that `styles.css`, which was provided by trickster as a basis for styling, will not -be touched, and your customizations will remain. All other files that trickster gave you -when you ran `trickster init` will be overwritten. + Note that `styles.css`, which was provided by trickster as a basis for styling, will not + be touched, and your customizations will remain. All other files that trickster gave you + when you ran `trickster init` will be overwritten. +====== theme slide_dir +Update the syntax-highlighting theme for your presentation + + +A normal 'trickster update' will leave your theme.css alone, since you can customize it. This will overwrite + your existing theme.css with the theme from trickster that you specify. You should check your presentation + into source control to avoid the destructive nature of this command. +======= Options +======= -t slide_dir + +Specify the syntax highlighting theme to use. One of arta, ascetic, brown_paper, custom, dark, default, far, github, googlecode, idea, ir_black, magula, monokai, pojoaque, rainbow, school_book, solarized_dark, solarized_light, sunburst, tomorrow, tomorrow-night, tomorrow-night-blue, tomorrow-night-bright, tomorrow-night-eighties, vs, xcode, zenburn. Use 'custom' to get an scss file you can easily customize. + +[Aliases] --theme +[Default Value] default +[Must Match] ["arta", "ascetic", "brown_paper", "custom", "dark", "default", "far", "github", "googlecode", "idea", "ir_black", "magula", "monokai", "pojoaque", "rainbow", "school_book", "solarized_dark", "solarized_light", "sunburst", "tomorrow", "tomorrow-night", "tomorrow-night-blue", "tomorrow-night-bright", "tomorrow-night-eighties", "vs", "xcode", "zenburn"] +A normal 'trickster update' will leave your theme.css alone, since you can customize it. This will overwrite + your existing theme.css with the theme from trickster that you specify. You should check your presentation + into source control to avoid the destructive nature of this command. + +[Default Command] files