forked from runemadsen/atlas-book-sample2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
beast.html
398 lines (390 loc) · 20.8 KB
/
beast.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
<h1>HTMLBook Sample</h1>
<figure data-type="cover">
<img src="cover.png"/>
</figure>
<!-- body must have h1 child with book title -->
<section data-type="titlepage" class="titlepage">
<h1>HTMLBook Sample</h1>
<h2 data-type="author">O’Reilly Media</h2>
</section>
<section data-type="copyright-page">
<h1>HTMLBook Sample</h1>
<p class="author">by O’Reilly Media</p>
</section>
<section data-type="dedication" class="dedication">
<!-- optional h1 used for dedication titles -->
<h1>Dedication Title</h1>
<p>I owe it all to Project Unicorn.</p>
</section>
<nav data-type="toc" class="toc" id="toc">
<h1>Table of Contents</h1>
<ol style="list-style-type:none">
<li><a href="#foreword">Foreword</a></li>
<li><a href="#preface">Preface</a></li>
<li><a href="#part01">Part I, HTMLBook Rises</a>
<ol style="list-style-type:none">
<li><a href="#chapter01">Chapter 1. HTMLBook Markup</a>
<ol style="list-style-type:none">
<li><a href="#ahead">This Is an A-Head</a>
<ol style="list-style-type:none">
<li><a href="#bhead">This Is a B-Head</a></li>
</ol>
</li>
<li><a href="#markup_examples">Some Markup Examples</a>
<ol style="list-style-type:none">
<li><a href="#inlines">Inline Markup</a></li>
<li><a href="#blocks">Block Elements</a>
<ol style="list-style-type:none">
<li><a href="#lists">Lists</a></li>
<li><a href="#images">Images</a></li>
<li><a href="#tables">Tables</a></li>
<li><a href="#equations">Equations</a></li>
<li><a href="#examples">Code Examples</a></li>
<li><a href="#sidebars">Sidebars</a></li>
<li><a href="#codelisting">Code Listing</a></li>
<li><a href="#notes">Admonitions</a></li>
</ol>
</li>
<li><a href="#multimedia">Multimedia and Interactive</a></li>
</ol>
</li>
</ol>
</li>
<li><a href="#chapter02">Chapter 2. Another Chapter</a>
<ol style="list-style-type:none">
<li><a href="#0201">Dolor Sit</a>
<ol style="list-style-type:none">
<li><a href="#0202">Amet Consectetur</a></li>
<li><a href="#0203">Adipiscing Elit</a></li>
</ol>
</li>
<li><a href="#0204">Iaculis Eget</a>
<ol style="list-style-type:none">
<li><a href="#0205">Tempus Eu Tellus</a></li>
<li><a href="#0206">Tristique Semper Diam</a></li>
</ol>
</li>
</ol>
</li>
</ol>
</li>
<li><a href="#part02">Part II, Return of HTMLBook</a>
<ol style="list-style-type:none">
<li><a href="#chapter03">Chapter 3. Lorem Ipsum!</a></li>
<li><a href="#chapter04">Chapter 4. Consectetur Adipiscing Elit</a></li>
</ol>
</li>
<li><a href="#appendixa">Appendix A. Curabitur Bibendum</a></li>
<li><a href="#glossary">Glossary</a></li>
<li><a href="#index">Index</a></li>
</ol>
</nav>
<section class="foreword" hidden="hidden" data-type="foreword" id="foreword">
<h1>Foreword</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eros sapien, iaculis eget
egestas eu, tempus eu tellus. Aliquam in facilisis sapien. Nulla blandit, ligula vel auctor
facilisis, quam felis rhoncus arcu, non rhoncus nulla felis sed est. Pellentesque ac velit
arcu, placerat dignissim augue. Nulla vitae tortor in elit ultrices dictum. Quisque eget
massa at nisl malesuada sodales sed id est. Pellentesque vehicula venenatis justo, sit amet
vehicula leo laoreet eget. Donec vel urna quis metus feugiat vulputate eget ut urna. In
tristique semper diam ut adipiscing. Fusce sagittis congue purus scelerisque hendrerit.
Donec sit amet interdum massa.</p>
</section>
<section class="preface" data-type="preface" id="preface">
<h1>Preface</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eros sapien, iaculis eget
egestas eu, tempus eu tellus. Aliquam in facilisis sapien. Nulla blandit, ligula vel auctor
facilisis, quam felis rhoncus arcu, non rhoncus nulla felis sed est. Pellentesque ac velit
arcu, placerat dignissim augue. Nulla vitae tortor in elit ultrices dictum. Quisque eget
massa at nisl malesuada sodales sed id est. Pellentesque vehicula venenatis justo, sit amet
vehicula leo laoreet eget. Donec vel urna quis metus feugiat vulputate eget ut urna. In
tristique semper diam ut adipiscing. Fusce sagittis congue purus scelerisque hendrerit.
Donec sit amet interdum massa.</p>
</section>
<div data-type="part" class="part" id="part01">
<!-- parts are optional and use divs -->
<h1>Part I, HTMLBook Rises</h1>
<p>This part contains two chapters. <a data-type="xref" href="chapter01">Chapter 1</a>
demonstrates HTMLBook markup, while <a data-type="xref" href="#chapter02">Chapter 2</a> is just
a slug.</p>
<section data-type="chapter" id="chapter01">
<h1>Chapter 1. HTMLBook Markup</h1>
<p>This chapter describes and demonstrates the types of markup<a data-type="indexterm"
data-primary="markup" data-secondary="types of"></a> that might appear in a chapter. See
<em>mappings.asciidoc</em> for more information. HTMLBook borrows much of its semantics
from the EPUB 3 specification, as applied via the <a
href="http://idpf.org/accessibility/guidelines/content/semantics/epub-type.php"
><code>epub:type</code></a> attribute. Where EPUB semantics come up short, HTMLBook
falls back to <a href="http://www.docbook.org/">DocBook</a> semantics, e.g.,
<code>data-type="userinput"</code>, as described in <a data-type="xref" href="#sect0104">Inline
Markup</a>.</p>
<section data-type="sect1" class="sect1" id="ahead">
<h1>This Is an A-Head</h1>
<p>Nested sections are captured in <code>section</code> tags.</p>
<section data-type="sect2" class="sect2" id="bhead">
<h2>This Is a B-Head</h2>
<p>Note that the <code>hN</code> tag matches the <code>sectN</code> class on the
<code>section</code>.</p>
</section>
</section>
<section data-type="sect1" class="sect1" id="markup_examples">
<h1>Some Markup Examples</h1>
<p>This file uses the components of the book container, such as the chapters, table of
contents, and so on. The following section demonstrates the components typically used in
a chapter.</p>
<section data-type="sect2" class="sect2" id="inlines">
<h2>Inline Markup</h2>
<p>No surprises here, just vanilla HTML for <em>emphasis</em> and
<strong>strong</strong>. Use <code>code</code> and add classes <code
data-type="userinput">userinput</code> or <code data-type="replaceable">replaceable</code>,
if you like.</p>
</section>
<section data-type="sect2" class="sect2" id="blocks">
<h2>Block Elements</h2>
<p>Block elements<a data-type="indexterm" data-primary="markup"
data-secondary="block elements"></a> in HTMLBook are pretty much standard HTML, with
some semantic classes sometimes included.</p>
<section data-type="sect3" class="sect3" id="lists">
<h3>Lists</h3>
<p><a data-type="indexterm" data-primary="lists"></a>Unordered list:</p>
<ul>
<li>Red</li>
<li>Orange</li>
<li>
<p>Blue</p>
<p>Optionally, you could add <code>p</code>s for a <code>li</code> with multiple
paragraphs.</p>
</li>
</ul>
<p>Ordered list:</p>
<ol>
<li value="3">Step 1</li>
<li>Step 2</li>
<li>
<p>Step 3</p>
<p>Optionally, you could add <code>p</code>s for a <code>li</code> with multiple
paragraphs.</p>
</li>
</ol>
<p>Definition lists:</p>
<dl>
<dt>Constant width bold</dt>
<dd>Used to indicate user input.</dd>
<dt>Constant width italic</dt>
<dd><p>Shows text that should be replaced with user-supplied values or by values
determined by context.</p>
<p>Use a <code>p</code> for <code>dd</code>s with multiple paragraphs.</p>
</dd>
</dl>
</section>
<section class="sect3" data-type="sect3" id="images">
<h3>Images</h3>
<p>Images use the <code>figure</code>, which can optionally have a caption.</p>
<figure id="robot_unicorn">
<figcaption><span data-type="label">Figure 1-1.</span> A robot unicorn</figcaption>
<img src="images/robot-unicorn.jpg"
alt="Illustration of a unicorn running. The unicorn has a metallic coat, with a flowing, rainbow-colored tail and mane."
/>
</figure>
</section>
<section data-type="sect3" class="sect3" id="tables">
<h3>Tables</h3>
<p><a data-type="indexterm" data-primary="tables"></a>Tables use standard HTML markup.</p>
<table>
<caption><span data-type="label">Table 1-1.</span> State capitals</caption>
<tr>
<th>State</th>
<th>Capital</th>
</tr>
<tr>
<td>Massachusetts</td>
<td>Boston</td>
</tr>
<!-- And so on -->
</table>
</section>
<section data-type="sect3" class="sect3" id="equations">
<h3>Equations</h3>
<p>Equations might have a title and and a label, like <a href="#py_theorem">Equation 1-1</a> does.</p>
<div data-type="equation" id="py_theorem">
<h5><span data-type="label">Equation 1-1.</span> Pythagorean Theorem</h5>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<msup><mi>a</mi><mn>2</mn></msup>
<mo>+</mo>
<msup><mi>b</mi><mn>2</mn></msup>
<mo>=</mo>
<msup><mi>c</mi><mn>2</mn></msup>
</math>
</div>
</section>
<section data-type="sect3" class="sect3" id="examples">
<h3>Code Examples</h3>
<p>Code examples are just <code>pre</code>s with a title. <a href="example01">Example 1-1</a> includes some random Java code.</p>
<div class="example" data-type="example">
<h5><span data-type="label">Example 1-1.</span> Random Java code</h5>
<pre id="example01" data-code-language="java">import java.applet.*;
import java.awt.*;
public class Scribble extends Applet {
private int last_x = 0;
private int last_y = 0;
private Color current_color = Color.black;
private Button clear_button;
private Choice color_choices;
</pre>
</div>
</section>
<section data-type="sect3" class="sect3" id="sidebars">
<h3>Sidebars</h3>
<p>Sidebars use the <code>aside</code> element. There’s a sidebar in this section.</p>
<aside data-type="sidebar" class="sidebar">
<h5>Amusing Digression</h5>
<p>Did you know that in Boston, they call it “soda,” but in Chicago, they call it “pop”?</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc mauris odio, commodo ut feugiat nec, tempus eget libero. Maecenas id nunc id justo sagittis fringilla. Phasellus fringilla tincidunt nunc, eget iaculis dui interdum at. Sed at libero mattis arcu sodales accumsan vel non est. Integer lacinia urna a lectus placerat gravida. Nullam laoreet justo ac ante ornare lobortis. Ut vitae adipiscing lorem:</p>
<pre data-code-language="java">import java.applet.*;
import java.awt.*;
public class Scribble extends Applet {
private int last_x = 0;
private int last_y = 0;
private Color current_color = Color.black;
private Button clear_button;
private Choice color_choices;
</pre>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc mauris odio, commodo ut feugiat nec, tempus eget libero. Maecenas id nunc id justo sagittis fringilla.</p>
</aside>
</section>
<section data-type="sect3" class="sect3" id="codelisting">
<h3>Code Listings</h3>
<p>Just a <code>pre</code>, as you’d expect:</p>
<pre data-type="programlisting" class="programlisting">print "<em>Hello World</em>"</pre>
</section>
<section data-type="sect3" class="sect3" id="admonitions">
<h3>Admonitions</h3>
<p>Admonitions are notes, tips, and warnings—all of which are very typical of technical writing. A note follows this paragraph.</p>
<div data-type="note" class="note">
<p>Please take note of this important information.</p>
<p>Aliquam lacinia mollis tincidunt. Etiam pretium tortor arcu, id pellentesque risus pellentesque eu. Proin posuere metus sed mollis viverra. Morbi ut imperdiet eros. Nam iaculis consequat nisl at posuere. Curabitur velit felis, faucibus in convallis quis, feugiat at ante. In vehicula, velit id pharetra posuere, erat orci volutpat odio, vitae fringilla felis nisl blandit velit.</p>
</div>
<p>Admonitions can optionally include titles.</p>
<div data-type="note" class="note">
<h1>Helpful Info</h1>
<p>Please take note of this important information.</p>
</div>
<p>Or you might have a warning, which just takes a different <code>class</code> attribute.</p>
<div data-type="warning" class="warning">Warning! Warning! Intruder alert!</div>
</section>
</section>
<section data-type="sect2" class="sect2" id="multimedia">
<h2>Multimedia Interactive</h2>
<!-- fill this in -->
</section>
</section>
</section>
<section data-type="chapter" class="chapter" id="chapter02">
<h1>Chapter 2. Another Chapter</h1>
<h2 data-type="subtitle">This is the chapter's subtitle</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eros sapien, iaculis eget
egestas eu, tempus eu tellus. Aliquam in facilisis sapien. Nulla blandit, ligula vel
auctor facilisis, quam felis rhoncus arcu, non rhoncus nulla felis sed est. Pellentesque
ac velit arcu, placerat dignissim augue. Nulla vitae tortor in elit ultrices dictum.
Quisque eget massa at nisl malesuada sodales sed id est. Pellentesque vehicula venenatis
justo, sit amet vehicula leo laoreet eget. Donec vel urna quis metus feugiat vulputate
eget ut urna. In tristique semper diam ut adipiscing. Fusce sagittis congue purus
scelerisque hendrerit. Donec sit amet interdum massa.</p>
<section data-type="sect1" class="sect1" id="sect0201">
<h1>Dolor Sit</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eros sapien, iaculis
eget egestas eu, tempus eu tellus. Aliquam in facilisis sapien.</p>
<section data-type="sect2" class="sect2" id="sect0202">
<h2>Amet Consectetur</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eros sapien, iaculis
eget egestas eu, tempus eu tellus. Aliquam in facilisis sapien.</p>
</section>
<section data-type="sect2" class="sect2" id="sect0203">
<h2>Adipiscing Elit</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eros sapien, iaculis
eget egestas eu, tempus eu tellus. Aliquam in facilisis sapien.</p>
</section>
</section>
<section data-type="sect1" class="sect1" id="sect0204">
<h1>Iaculis Eget</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eros sapien, iaculis
eget egestas eu, tempus eu tellus. Aliquam in facilisis sapien.</p>
<section data-type="sect2" class="sect2" id="sect0205">
<h2>Tempus Eu Tellus</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eros sapien, iaculis
eget egestas eu, tempus eu tellus. Aliquam in facilisis sapien.</p>
</section>
<section data-type="sect2" class="sect2" id="sect0206">
<h2>Tristique Semper Diam</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eros sapien, iaculis
eget egestas eu, tempus eu tellus. Aliquam in facilisis sapien.</p>
</section>
</section>
</section>
</div>
<div data-type="part" id="part02">
<!-- parts are optional and use divs -->
<h1>Part II, Return of HTMLBook</h1>
<p>This part is just a slug. We can't have just one part after all.</p>
<section data-type="chapter" class="chapter" id="chapter03">
<h1>Chapter 3. Lorem Ipsum!</h1>
<!-- chapter content here -->
</section>
<section data-type="chapter" class="chapter" id="chapter04">
<h1>Chapter 4. Consectetur Adipiscing Elit</h1>
<!-- chapter content here -->
</section>
</div>
<section data-type="appendix" class="appendix" id="appendixa">
<h1>Appendix A. Curabitur Bibendum</h1>
<p>Nunc malesuada blandit nisi ac iaculis. Ut bibendum tincidunt dui quis iaculis. Vivamus
lectus tortor, volutpat sed scelerisque ut, tempus vel eros. Phasellus placerat rutrum massa
vulputate scelerisque. In hac habitasse platea dictumst. Etiam sem erat, pulvinar ut luctus
elementum, gravida condimentum lacus. Nulla vehicula metus vel sem feugiat rutrum iaculis
leo auctor. Praesent vehicula augue id libero hendrerit interdum. Etiam consectetur sagittis
egestas. Pellentesque in bibendum magna.</p>
</section>
<section data-type="glossary" class="glossary" id="glossary">
<h1>Glossary</h1>
<dl class="glossary" data-type="glossary">
<dt class="glossterm" data-type="glossterm">
<dfn>Atlas</dfn>
</dt>
<dd class="glossdef" data-type="glossdef"> Best authoring platform ever. </dd>
</dl>
<dl data-type="glossary" class="glossary">
<dt data-type="glossterm" class="glossterm">
<dfn>Suspendisse mollis</dfn>
</dt>
<dd data-type="glossdef" class="glossdef"> Sed quis nisl dui, et vestibulum sem. </dd>
</dl>
</section>
<section data-type="index" class="index" id="index">
<h1>Index</h1>
<div data-type="indexbody" class="indexbody">
<div data-type="indexgroup" class="indexgroup">
<h2>L</h2>
<ul data-type="indexentry" class="indexentry" style="list-style-type:none">
<li>lists, <a data-type="xref" class="indexentry" href="#lists">Lists</a></li>
</ul>
</div>
<div data-type="indexgroup" class="indexgroup">
<h2>M</h2>
<ul data-type="indexentry" class="indexentry" style="list-style-type:none">
<li>markup <ul data-type="indexentry" class="indexentry" style="list-style-type:none">
<li data-type="indexentry" class="indexentry">types of, <a data-type="xref" class="indexentry" href="#chapter01"
>Chapter 1</a></li>
<li data-type="indexentry" class="indexentry">block elements, <a data-type="xref" class="indexentry" href="#blocks"
>Block Elements</a></li>
</ul>
</li>
</ul>
</div>
<div data-type="indexgroup" class="indexgroup">
<h2>T</h2>
<ul data-type="indexentry" class="indexentry" style="list-style-type:none">
<li>tables, <a data-type="xref" class="indexentry" href="#tables">Tables</a></li>
</ul>
</div>
</div>
</section>