source: rtems-tools/doc/asciidoc/examples/website/slidy.txt @ f91e023

4.104.115
Last change on this file since f91e023 was f91e023, checked in by Chris Johns <chrisj@…>, on 02/17/14 at 07:04:46

Add the documentation.

  • Property mode set to 100644
File size: 4.0 KB
Line 
1Slidy backend for AsciiDoc
2==========================
3:author:    Stuart Rackham
4:backend:   slidy
5:max-width: 45em
6:data-uri:
7:icons:
8
9
10Use the following command to create this document (`slidy.html`):
11
12  asciidoc slidy.txt
13
14Press the 'Space' key or the 'Left Arrow' key to continue the
15slideshow.
16
17
18Overview
19--------
20AsciiDoc has a 'slidy' backend for generating self contained 'Slidy'
21HTML slideshows.
22
23- An overview of 'Slidy' can be found here:
24  http://www.w3.org/Talks/Tools/Slidy2/
25- AsciiDoc ships with the Slidy JavaScript a customised Slidy CSS
26  file.
27- Use the 'asciidoc' `--backend slidy` command-line option to generate
28  browser viewable HTML slideshow. Example:
29
30  asciidoc --backend slidy slidy-example.txt
31
32- By default, 'asciidoc' creates a self contained distributable HTML
33  document which includes all necessary CSS and JavaScripts.  Use the
34  'asciidoc' `--attribute linkcss` command-line option if you prefer
35  to link (rather than embed) external CSS and JavaScript files.
36
37
38How Slidy uses AsciiDoc markup
39------------------------------
40- The document header is displayed as the first page of the slideshow.
41- If the document has a 'preamble' (the content between the header and
42  the first section) it will be displayed on the second page.
43- Each top level section is displayed as a separate slide.
44- If the AsciiDoc 'incremental' attribute is defined then all lists
45  and OpenBlock elements are treated as 'incremental' i.e. Slidy
46  exposes their child elements one at a time as you progress through
47  the slideshow.
48- You can explicitly set an element as incremental by setting its
49  'role' attribute to 'incremental'. Example:
50
51  [role="incremental"]
52  Sagittis in vestibulum. Habitasse ante nulla enim bibendum nulla.
53  Odio sed pede litora.
54
55
56Slidy Specific Attributes
57-------------------------
58incremental::
59If this attribute is defined then all lists and OpenBlock elements are
60classed as incremental i.e. Slidy will expose them one at a time as
61you progress through the slideshow.  The default behavior is for the
62show to progress a full slide at at time.  Elements that have been
63explicitly classed as 'incremental' with the 'role' attribute are
64always displayed incrementally.
65
66duration::
67Set this to the estimated number of minutes that your presentation
68will take and Slidy will display a countdown timer at the bottom right
69of the slideshow. For example, this 'asciidoc' command-line option
70`--attribute duration=5` sets the duration to five minutes.
71
72copyright::
73If you set the 'copyright' attribute it will be displayed in the Slidy
74menu bar at the bottom of the slide. If the 'copyright' attribute is
75not define then the author name, if it is defined, will be displayed.
76
77outline::
78Setting the 'role' attribute to 'outline' in a bulleted or numbered
79list allows nested lists to be expanded and collapsed using the mouse.
80Nested lists are expanded when an enclosing list item (the ones with
81blue bullet points or numbers) is clicked.
82
83
84Stylesheets
85-----------
86- 'slidy' loads the 'asciidoc.css' stylesheet followed by 'slidy.css':
87  * `asciidoc.css` contains content presentational styles.
88  * The customized `slidy.css` stylesheet contains Slidy specific
89    styles (table of contents, menu and transition related).
90- You can use AsciiDoc CSS themes. For example, the 'asciidoc'
91  `--attribute theme=volnitsky` command-line option will substitute
92  the `asciidoc.css` stylesheet for the distributed Volnitsky
93  `volnitsky.css` stylesheet.
94- An additional stylesheet can be specified by setting the
95  'stylesheet' attribute. For example, the `--attribute
96  stylesheet=myslidy.css` will load `myslidy.css` after the standard
97  CSS files.
98
99
100Tips
101----
102- The Slidy 'help?' and 'contents?' links at the bottom left are your
103  friends.
104- Use the AsciiDoc 'data-uri' attribute to embed images in your
105  slideshow -- add this attribute entry to your document's header:
106
107  :data-uri:
108
109- Use the AsciiDoc 'max-width' attribute to set the document display
110  width. For example, add this attribute entry to your document's
111  header:
112
113  :max-width: 45em
Note: See TracBrowser for help on using the repository browser.