FooBarWidget-mizuho 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE.txt +20 -0
- data/README.markdown +68 -0
- data/Rakefile +9 -0
- data/asciidoc/BUGS +34 -0
- data/asciidoc/BUGS.txt +28 -0
- data/asciidoc/CHANGELOG +1585 -0
- data/asciidoc/CHANGELOG.txt +1595 -0
- data/asciidoc/COPYING +339 -0
- data/asciidoc/COPYRIGHT +18 -0
- data/asciidoc/INSTALL +82 -0
- data/asciidoc/INSTALL.txt +71 -0
- data/asciidoc/README +46 -0
- data/asciidoc/README.txt +36 -0
- data/asciidoc/a2x +641 -0
- data/asciidoc/asciidoc.conf +404 -0
- data/asciidoc/asciidoc.py +4255 -0
- data/asciidoc/common.aap +9 -0
- data/asciidoc/dblatex/asciidoc-dblatex.sty +18 -0
- data/asciidoc/dblatex/asciidoc-dblatex.xsl +17 -0
- data/asciidoc/dblatex/dblatex-readme.txt +22 -0
- data/asciidoc/doc/a2x.1 +246 -0
- data/asciidoc/doc/a2x.1.txt +195 -0
- data/asciidoc/doc/article.css-embedded.html +579 -0
- data/asciidoc/doc/article.html +62 -0
- data/asciidoc/doc/article.pdf +0 -0
- data/asciidoc/doc/article.txt +124 -0
- data/asciidoc/doc/asciidoc-revhistory.xml +27 -0
- data/asciidoc/doc/asciidoc.1 +161 -0
- data/asciidoc/doc/asciidoc.1.css-embedded.html +562 -0
- data/asciidoc/doc/asciidoc.1.css.html +212 -0
- data/asciidoc/doc/asciidoc.1.html +190 -0
- data/asciidoc/doc/asciidoc.1.txt +118 -0
- data/asciidoc/doc/asciidoc.conf +8 -0
- data/asciidoc/doc/asciidoc.css-embedded.html +7954 -0
- data/asciidoc/doc/asciidoc.css.html +7553 -0
- data/asciidoc/doc/asciidoc.dict +673 -0
- data/asciidoc/doc/asciidoc.html +3502 -0
- data/asciidoc/doc/asciidoc.txt +4757 -0
- data/asciidoc/doc/asciimath.txt +47 -0
- data/asciidoc/doc/book-multi.css-embedded.html +575 -0
- data/asciidoc/doc/book-multi.html +72 -0
- data/asciidoc/doc/book-multi.txt +159 -0
- data/asciidoc/doc/book.css-embedded.html +585 -0
- data/asciidoc/doc/book.html +60 -0
- data/asciidoc/doc/book.txt +133 -0
- data/asciidoc/doc/customers.csv +18 -0
- data/asciidoc/doc/faq.txt +262 -0
- data/asciidoc/doc/latex-backend.html +224 -0
- data/asciidoc/doc/latex-backend.txt +193 -0
- data/asciidoc/doc/latexmath.txt +35 -0
- data/asciidoc/doc/main.aap +293 -0
- data/asciidoc/doc/music-filter.html +513 -0
- data/asciidoc/doc/music-filter.pdf +0 -0
- data/asciidoc/doc/music-filter.txt +158 -0
- data/asciidoc/doc/source-highlight-filter.html +183 -0
- data/asciidoc/doc/source-highlight-filter.pdf +0 -0
- data/asciidoc/doc/source-highlight-filter.txt +174 -0
- data/asciidoc/docbook-xsl/asciidoc-docbook-xsl.txt +71 -0
- data/asciidoc/docbook-xsl/chunked.xsl +19 -0
- data/asciidoc/docbook-xsl/common.xsl +67 -0
- data/asciidoc/docbook-xsl/fo.xsl +117 -0
- data/asciidoc/docbook-xsl/htmlhelp.xsl +17 -0
- data/asciidoc/docbook-xsl/manpage.xsl +28 -0
- data/asciidoc/docbook-xsl/shaded-literallayout.patch +32 -0
- data/asciidoc/docbook-xsl/xhtml.xsl +14 -0
- data/asciidoc/docbook.conf +606 -0
- data/asciidoc/examples/website/CHANGELOG.html +3828 -0
- data/asciidoc/examples/website/INSTALL.html +163 -0
- data/asciidoc/examples/website/README-website.html +129 -0
- data/asciidoc/examples/website/README-website.txt +29 -0
- data/asciidoc/examples/website/README.html +125 -0
- data/asciidoc/examples/website/a2x.1.html +395 -0
- data/asciidoc/examples/website/asciidoc-docbook-xsl.html +165 -0
- data/asciidoc/examples/website/asciimath.html +157 -0
- data/asciidoc/examples/website/build-website.sh +25 -0
- data/asciidoc/examples/website/downloads.html +219 -0
- data/asciidoc/examples/website/downloads.txt +98 -0
- data/asciidoc/examples/website/faq.html +372 -0
- data/asciidoc/examples/website/index.html +398 -0
- data/asciidoc/examples/website/index.txt +222 -0
- data/asciidoc/examples/website/latex-backend.html +640 -0
- data/asciidoc/examples/website/latexmath.html +119 -0
- data/asciidoc/examples/website/layout1.conf +161 -0
- data/asciidoc/examples/website/layout1.css +65 -0
- data/asciidoc/examples/website/layout2.conf +158 -0
- data/asciidoc/examples/website/layout2.css +93 -0
- data/asciidoc/examples/website/manpage.html +266 -0
- data/asciidoc/examples/website/music-filter.html +242 -0
- data/asciidoc/examples/website/music1.abc +12 -0
- data/asciidoc/examples/website/music1.png +0 -0
- data/asciidoc/examples/website/music2.ly +9 -0
- data/asciidoc/examples/website/music2.png +0 -0
- data/asciidoc/examples/website/source-highlight-filter.html +251 -0
- data/asciidoc/examples/website/support.html +78 -0
- data/asciidoc/examples/website/support.txt +5 -0
- data/asciidoc/examples/website/userguide.html +7597 -0
- data/asciidoc/examples/website/version9.html +143 -0
- data/asciidoc/examples/website/version9.txt +48 -0
- data/asciidoc/filters/code-filter-readme.txt +37 -0
- data/asciidoc/filters/code-filter-test-c++.txt +7 -0
- data/asciidoc/filters/code-filter-test.txt +15 -0
- data/asciidoc/filters/code-filter.conf +8 -0
- data/asciidoc/filters/code-filter.py +239 -0
- data/asciidoc/filters/music-filter-test.txt +40 -0
- data/asciidoc/filters/music-filter.conf +40 -0
- data/asciidoc/filters/music2png.py +189 -0
- data/asciidoc/filters/source-highlight-filter-test.txt +19 -0
- data/asciidoc/filters/source-highlight-filter.conf +100 -0
- data/asciidoc/help.conf +213 -0
- data/asciidoc/html4.conf +363 -0
- data/asciidoc/images/highlighter.png +0 -0
- data/asciidoc/images/icons/README +5 -0
- data/asciidoc/images/icons/callouts/1.png +0 -0
- data/asciidoc/images/icons/callouts/10.png +0 -0
- data/asciidoc/images/icons/callouts/11.png +0 -0
- data/asciidoc/images/icons/callouts/12.png +0 -0
- data/asciidoc/images/icons/callouts/13.png +0 -0
- data/asciidoc/images/icons/callouts/14.png +0 -0
- data/asciidoc/images/icons/callouts/15.png +0 -0
- data/asciidoc/images/icons/callouts/2.png +0 -0
- data/asciidoc/images/icons/callouts/3.png +0 -0
- data/asciidoc/images/icons/callouts/4.png +0 -0
- data/asciidoc/images/icons/callouts/5.png +0 -0
- data/asciidoc/images/icons/callouts/6.png +0 -0
- data/asciidoc/images/icons/callouts/7.png +0 -0
- data/asciidoc/images/icons/callouts/8.png +0 -0
- data/asciidoc/images/icons/callouts/9.png +0 -0
- data/asciidoc/images/icons/caution.png +0 -0
- data/asciidoc/images/icons/example.png +0 -0
- data/asciidoc/images/icons/home.png +0 -0
- data/asciidoc/images/icons/important.png +0 -0
- data/asciidoc/images/icons/next.png +0 -0
- data/asciidoc/images/icons/note.png +0 -0
- data/asciidoc/images/icons/prev.png +0 -0
- data/asciidoc/images/icons/tip.png +0 -0
- data/asciidoc/images/icons/up.png +0 -0
- data/asciidoc/images/icons/warning.png +0 -0
- data/asciidoc/images/smallnew.png +0 -0
- data/asciidoc/images/tiger.png +0 -0
- data/asciidoc/install.sh +55 -0
- data/asciidoc/javascripts/ASCIIMathML.js +938 -0
- data/asciidoc/javascripts/LaTeXMathML.js +1223 -0
- data/asciidoc/javascripts/toc.js +69 -0
- data/asciidoc/lang-es.conf +15 -0
- data/asciidoc/latex.conf +663 -0
- data/asciidoc/linuxdoc.conf +285 -0
- data/asciidoc/math.conf +50 -0
- data/asciidoc/stylesheets/docbook-xsl.css +271 -0
- data/asciidoc/stylesheets/xhtml-deprecated-manpage.css +21 -0
- data/asciidoc/stylesheets/xhtml-deprecated.css +247 -0
- data/asciidoc/stylesheets/xhtml11-manpage.css +18 -0
- data/asciidoc/stylesheets/xhtml11-quirks.css +49 -0
- data/asciidoc/stylesheets/xhtml11.css +284 -0
- data/asciidoc/t.conf +20 -0
- data/asciidoc/text.conf +16 -0
- data/asciidoc/vim/ftdetect/asciidoc_filetype.vim +53 -0
- data/asciidoc/vim/syntax/asciidoc.vim +139 -0
- data/asciidoc/xhtml-deprecated-css.conf +235 -0
- data/asciidoc/xhtml-deprecated.conf +351 -0
- data/asciidoc/xhtml11-quirks.conf +57 -0
- data/asciidoc/xhtml11.conf +514 -0
- data/bin/mizuho +40 -0
- data/lib/mizuho/chapter.rb +54 -0
- data/lib/mizuho/generator.rb +106 -0
- data/lib/mizuho/heading.rb +46 -0
- data/lib/mizuho/parser.rb +99 -0
- data/lib/mizuho/template.rb +50 -0
- data/mizuho.gemspec +34 -0
- data/templates/asciidoc.css +358 -0
- data/templates/asciidoc.html.erb +86 -0
- data/templates/manualsonrails.css +165 -0
- data/templates/manualsonrails.html.erb +97 -0
- data/test/parser_spec.rb +190 -0
- data/test/spec_helper.rb +43 -0
- metadata +234 -0
@@ -0,0 +1,72 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Multi-Part Book Title Goes Here</title><link rel="stylesheet" href="./docbook-xsl.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.72.0" /></head><body><div class="book" lang="en" xml:lang="en"><div class="titlepage"><div><div><h1 class="title"><a id="id2417888"></a>Multi-Part Book Title Goes Here</h1></div><div><div class="author"><h3 class="author"><span class="firstname">Author's</span> <span class="surname">Name</span></h3></div></div><div><div class="revhistory"><table border="1" width="100%" summary="Revision history"><tr><th align="left" valign="top" colspan="3"><b>Revision History</b></th></tr><tr><td align="left">Revision 1.0</td><td align="left">Dec 2003</td><td align="left">AN</td></tr></table></div></div></div><hr /></div><div class="dedication" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title"><a id="_dedication"></a>Dedication</h2></div></div></div><p>The optional dedication goes here.</p><p>This document is an <span class="emphasis"><em>AsciiDoc</em></span> multi-part book skeleton containing
|
4
|
+
briefly annotated element placeholders plus a couple of example index
|
5
|
+
entries and footnotes. Books are normally used to generate DocBook
|
6
|
+
markup and the preface, appendix, bibliography, glossary and index
|
7
|
+
section titles are significant (<span class="emphasis"><em>specialsections</em></span>).</p><div class="note" style="margin-left: 0; margin-right: 10%;"><table border="0" summary="Note"><tr><td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="./images/icons/note.png" /></td><th align="left"></th></tr><tr><td align="left" valign="top"><p>Multi-part books differ from all other <span class="emphasis"><em>AsciiDoc</em></span> document formats
|
8
|
+
in that top level sections (dedication, preface, book parts,
|
9
|
+
appendices, bibliography, glossary, index) must be level zero headings
|
10
|
+
(not level one).</p></td></tr></table></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="preface"><a href="#_preface">Preface</a></span></dt><dd><dl><dt><span class="section"><a href="#_preface_sub_section">1. Preface Sub-section</a></span></dt></dl></dd><dt><span class="part"><a href="#_the_first_part_of_the_book">I. The First Part of the Book</a></span></dt><dd><dl><dt><span class="chapter"><a href="#_the_first_chapter">1. The First Chapter</a></span></dt><dd><dl><dt><span class="section"><a href="#X1">1.1. Sub-section with Anchor</a></span></dt><dd><dl><dt><span class="section"><a href="#_chapter_sub_section">1.1.1. Chapter Sub-section</a></span></dt></dl></dd></dl></dd><dt><span class="chapter"><a href="#_the_second_chapter">2. The Second Chapter</a></span></dt></dl></dd><dt><span class="part"><a href="#_the_second_part_of_the_book">II. The Second Part of the Book</a></span></dt><dd><dl><dt><span class="chapter"><a href="#_the_first_chapter_of_the_second_part">3. The First Chapter of the Second Part</a></span></dt></dl></dd><dt><span class="appendix"><a href="#_example_appendix">A. Example Appendix</a></span></dt><dd><dl><dt><span class="section"><a href="#_appendix_sub_section">A.1. Appendix Sub-section</a></span></dt></dl></dd><dt><span class="bibliography"><a href="#_bibliography">Bibliography</a></span></dt><dt><span class="glossary"><a href="#_glossary">Glossary</a></span></dt><dt><span class="index"><a href="#_index">Index</a></span></dt></dl></div><div class="list-of-figures"><p><b>List of Figures</b></p><dl><dt>1.1. <a href="#id2488294">Tiger block image</a></dt></dl></div><div class="list-of-tables"><p><b>List of Tables</b></p><dl><dt>1.1. <a href="#id2488322">An example table</a></dt></dl></div><div class="preface" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title"><a id="_preface"></a>Preface</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#_preface_sub_section">1. Preface Sub-section</a></span></dt></dl></div><p>The optional book preface goes here at section level zero.</p><div class="section" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_preface_sub_section"></a>1. Preface Sub-section</h2></div></div></div><div class="note" style="margin-left: 0; margin-right: 10%;"><table border="0" summary="Note"><tr><td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="./images/icons/note.png" /></td><th align="left"></th></tr><tr><td align="left" valign="top"><p>Preface and appendix subsections start out of sequence at level
|
11
|
+
2 (level 1 is skipped). This only applies to multi-part book
|
12
|
+
documents.</p></td></tr></table></div></div></div><div class="part" lang="en" xml:lang="en"><div class="titlepage"><div><div><h1 class="title"><a id="_the_first_part_of_the_book"></a>Part I. The First Part of the Book</h1></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="chapter"><a href="#_the_first_chapter">1. The First Chapter</a></span></dt><dd><dl><dt><span class="section"><a href="#X1">1.1. Sub-section with Anchor</a></span></dt><dd><dl><dt><span class="section"><a href="#_chapter_sub_section">1.1.1. Chapter Sub-section</a></span></dt></dl></dd></dl></dd><dt><span class="chapter"><a href="#_the_second_chapter">2. The Second Chapter</a></span></dt></dl></div><div class="chapter" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title"><a id="_the_first_chapter"></a>Chapter 1. The First Chapter</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#X1">1.1. Sub-section with Anchor</a></span></dt><dd><dl><dt><span class="section"><a href="#_chapter_sub_section">1.1.1. Chapter Sub-section</a></span></dt></dl></dd></dl></div><p>Chapters can be grouped by preceeding them with a level 0 Book Part
|
13
|
+
title.</p><p>Book chapters are at level 1 and can contain sub-sections nested up to
|
14
|
+
three deep.
|
15
|
+
<sup>[<a id="id2488102" href="#ftn.id2488102">1</a>]</sup>
|
16
|
+
<a id="id2488107" class="indexterm"></a></p><p>It's also worth noting that a book part can have it's own preface,
|
17
|
+
bibliography, glossary and index. Chapters can have their own
|
18
|
+
bibliography, glossary and index.</p><p>And now for something completely different: <a id="id2488127" class="indexterm"></a>
|
19
|
+
monkeys, lions and
|
20
|
+
tigers (Bengal and Siberian) using the alternative syntax index
|
21
|
+
entries.
|
22
|
+
<a id="id2488139" class="indexterm"></a>
|
23
|
+
<a id="id2488150" class="indexterm"></a>
|
24
|
+
<a id="id2488159" class="indexterm"></a>
|
25
|
+
<a id="id2488173" class="indexterm"></a>
|
26
|
+
<a id="id2488185" class="indexterm"></a>
|
27
|
+
<a id="id2488194" class="indexterm"></a>
|
28
|
+
<a id="id2488208" class="indexterm"></a>
|
29
|
+
<a id="id2488219" class="indexterm"></a>
|
30
|
+
Note that multi-entry terms generate separate index entries.</p><p>Here are a couple of image examples: an <span class="inlinemediaobject"><img src="images/smallnew.png" alt="images/smallnew.png" /></span>
|
31
|
+
example inline image followed by an example block image:</p><div class="figure"><a id="id2488294"></a><p class="title"><b>Figure 1.1. Tiger block image</b></p><div class="figure-contents"><div class="mediaobject"><img src="images/tiger.png" alt="Tiger image" /></div></div></div><br class="figure-break" /><p>Followed by an example table:</p><div class="table"><a id="id2488322"></a><p class="title"><b>Table 1.1. An example table</b></p><div class="table-contents"><table summary="An example table" cellpadding="4px" border="0" style="border-collapse: collapse;border-top: 2px solid #527bbd; border-bottom: 2px solid #527bbd; "><colgroup><col align="left" /><col align="left" /></colgroup><thead><tr><th style="" align="left">
|
32
|
+
Option
|
33
|
+
</th><th style="" align="left">
|
34
|
+
Description
|
35
|
+
</th></tr></thead><tbody><tr><td style="" align="left">
|
36
|
+
-a <span class="emphasis"><em>USER GROUP</em></span>
|
37
|
+
</td><td style="" align="left">
|
38
|
+
Add <span class="emphasis"><em>USER</em></span> to <span class="emphasis"><em>GROUP</em></span>.
|
39
|
+
</td></tr><tr><td style="" align="left">
|
40
|
+
-R <span class="emphasis"><em>GROUP</em></span>
|
41
|
+
</td><td style="" align="left">
|
42
|
+
Disables access to <span class="emphasis"><em>GROUP</em></span>.
|
43
|
+
</td></tr></tbody></table></div></div><br class="table-break" /><div class="section" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="X1"></a>1.1. Sub-section with Anchor</h2></div></div></div><p>Sub-section at level 2.</p><div class="section" lang="en" xml:lang="en"><div class="titlepage"><div><div><h3 class="title"><a id="_chapter_sub_section"></a>1.1.1. Chapter Sub-section</h3></div></div></div><p>Sub-section at level 3.</p><div class="section" lang="en" xml:lang="en"><div class="titlepage"><div><div><h4 class="title"><a id="_chapter_sub_section_2"></a>1.1.1.1. Chapter Sub-section</h4></div></div></div><p>Sub-section at level 4.</p><p>This is the maximum sub-section depth supported by the distributed
|
44
|
+
<span class="emphasis"><em>AsciiDoc</em></span> configuration.
|
45
|
+
<sup>[<a id="id2488460" href="#ftn.id2488460">2</a>]</sup></p></div></div></div><div class="footnotes"><br /><hr width="100" align="left" /><div class="footnote"><p><sup>[<a id="ftn.id2488102" href="#id2488102">1</a>] </sup>An example footnote.</p></div><div class="footnote"><p><sup>[<a id="ftn.id2488460" href="#id2488460">2</a>] </sup>A second example footnote.</p></div></div></div><div class="chapter" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title"><a id="_the_second_chapter"></a>Chapter 2. The Second Chapter</h2></div></div></div><p>An example link to anchor at start of the <a href="#X1" title="1.1. Sub-section with Anchor">first sub-section</a>.
|
46
|
+
<a id="id2488489" class="indexterm"></a></p><p>An example link to a bibliography entry <a href="#taoup">[taoup]</a>.</p></div></div><div class="part" lang="en" xml:lang="en"><div class="titlepage"><div><div><h1 class="title"><a id="_the_second_part_of_the_book"></a>Part II. The Second Part of the Book</h1></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="chapter"><a href="#_the_first_chapter_of_the_second_part">3. The First Chapter of the Second Part</a></span></dt></dl></div><div class="chapter" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title"><a id="_the_first_chapter_of_the_second_part"></a>Chapter 3. The First Chapter of the Second Part</h2></div></div></div><p>Chapters grouped into book parts are at level 1 and can contain
|
47
|
+
sub-sections.</p></div></div><div class="appendix" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title"><a id="_example_appendix"></a>Appendix A. Example Appendix</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#_appendix_sub_section">A.1. Appendix Sub-section</a></span></dt></dl></div><p>One or more optional appendixes go here at section level zero.</p><div class="section" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_appendix_sub_section"></a>A.1. Appendix Sub-section</h2></div></div></div><div class="note" style="margin-left: 0; margin-right: 10%;"><table border="0" summary="Note"><tr><td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="./images/icons/note.png" /></td><th align="left"></th></tr><tr><td align="left" valign="top"><p>Preface and appendix subsections start out of sequence at level
|
48
|
+
2 (level 1 is skipped). This only applies to multi-part book
|
49
|
+
documents.</p></td></tr></table></div></div></div><div class="bibliography"><div class="titlepage"><div><div><h2 class="title"><a id="_bibliography"></a>Bibliography</h2></div></div></div><p>The bibliography list is an example of an <span class="emphasis"><em>AsciiDoc</em></span> SimpleList, the
|
50
|
+
<span class="emphasis"><em>AsciiDoc</em></span> source list items are bulleted with a <code class="literal">+</code> character. The
|
51
|
+
first entry in this example has an anchor.</p><div class="bibliomixed"><a id="id2488937"></a><p class="bibliomixed">
|
52
|
+
<span class="bibliomisc">
|
53
|
+
<a id="taoup"></a>[taoup] Eric Steven Raymond. <span class="emphasis"><em>The Art of Unix Programming</em></span>.
|
54
|
+
Addison-Wesley. ISBN 0-13-142901-9.
|
55
|
+
</span>
|
56
|
+
</p></div><div class="bibliomixed"><a id="id2488956"></a><p class="bibliomixed">
|
57
|
+
<span class="bibliomisc">
|
58
|
+
<a id="walsh-muellner"></a>[walsh-muellner] Norman Walsh & Leonard Muellner.
|
59
|
+
<span class="emphasis"><em>DocBook - The Definative Guide</em></span>. O'Reilly & Associates. 199.
|
60
|
+
ISBN 1-56592-580-7.
|
61
|
+
</span>
|
62
|
+
</p></div></div><div class="glossary"><div class="titlepage"><div><div><h2 class="title"><a id="_glossary"></a>Glossary</h2></div></div></div><p>Glossaries are optional. Glossaries are an example of an <span class="emphasis"><em>AsciiDoc</em></span>
|
63
|
+
VariableList, the <span class="emphasis"><em>AsciiDoc</em></span> glossary entry terms are terminated
|
64
|
+
by the <code class="literal">:-</code> characters.</p><dl><dt>
|
65
|
+
A glossary term
|
66
|
+
</dt><dd><p>
|
67
|
+
The corresponding (indented) definition.
|
68
|
+
</p></dd><dt>
|
69
|
+
A second glossary term
|
70
|
+
</dt><dd><p>
|
71
|
+
The corresponding (indented) definition.
|
72
|
+
</p></dd></dl></div><div class="index"><div class="titlepage"><div><div><h2 class="title"><a id="_index"></a>Index</h2></div></div></div><div class="index"><div class="indexdiv"><h3>B</h3><dl><dt>Bengal Tiger, <a href="#_the_first_chapter">The First Chapter</a></dt><dt>Big cats</dt><dd><dl><dt>Lions, <a href="#_the_first_chapter">The First Chapter</a></dt><dt>Tigers</dt><dd><dl><dt>Bengal Tiger, <a href="#_the_first_chapter">The First Chapter</a></dt><dt>Siberian Tiger, <a href="#_the_first_chapter">The First Chapter</a></dt></dl></dd></dl></dd></dl></div><div class="indexdiv"><h3>E</h3><dl><dt>Example index entry, <a href="#_the_first_chapter">The First Chapter</a></dt></dl></div><div class="indexdiv"><h3>L</h3><dl><dt>Lions, <a href="#_the_first_chapter">The First Chapter</a></dt></dl></div><div class="indexdiv"><h3>M</h3><dl><dt>monkeys, <a href="#_the_first_chapter">The First Chapter</a></dt></dl></div><div class="indexdiv"><h3>S</h3><dl><dt>Second example index entry, <a href="#_the_second_chapter">The Second Chapter</a></dt><dt>Siberian Tiger, <a href="#_the_first_chapter">The First Chapter</a></dt></dl></div><div class="indexdiv"><h3>T</h3><dl><dt>Tigers</dt><dd><dl><dt>Bengal Tiger, <a href="#_the_first_chapter">The First Chapter</a></dt><dt>Siberian Tiger, <a href="#_the_first_chapter">The First Chapter</a></dt></dl></dd></dl></div></div></div></div></body></html>
|
@@ -0,0 +1,159 @@
|
|
1
|
+
Multi-Part Book Title Goes Here
|
2
|
+
===============================
|
3
|
+
Author's Name
|
4
|
+
v1.0, Dec 2003
|
5
|
+
|
6
|
+
|
7
|
+
Dedication
|
8
|
+
==========
|
9
|
+
The optional dedication goes here.
|
10
|
+
|
11
|
+
This document is an AsciiDoc multi-part book skeleton containing
|
12
|
+
briefly annotated element placeholders plus a couple of example index
|
13
|
+
entries and footnotes. Books are normally used to generate DocBook
|
14
|
+
markup and the preface, appendix, bibliography, glossary and index
|
15
|
+
section titles are significant ('specialsections').
|
16
|
+
|
17
|
+
NOTE: Multi-part books differ from all other AsciiDoc document formats
|
18
|
+
in that top level sections (dedication, preface, book parts,
|
19
|
+
appendices, bibliography, glossary, index) must be level zero headings
|
20
|
+
(not level one).
|
21
|
+
|
22
|
+
|
23
|
+
Preface
|
24
|
+
=======
|
25
|
+
The optional book preface goes here at section level zero.
|
26
|
+
|
27
|
+
Preface Sub-section
|
28
|
+
~~~~~~~~~~~~~~~~~~~
|
29
|
+
NOTE: Preface and appendix subsections start out of sequence at level
|
30
|
+
2 (level 1 is skipped). This only applies to multi-part book
|
31
|
+
documents.
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
The First Part of the Book
|
36
|
+
==========================
|
37
|
+
|
38
|
+
The First Chapter
|
39
|
+
-----------------
|
40
|
+
Chapters can be grouped by preceeding them with a level 0 Book Part
|
41
|
+
title.
|
42
|
+
|
43
|
+
Book chapters are at level 1 and can contain sub-sections nested up to
|
44
|
+
three deep.
|
45
|
+
footnote:[An example footnote.]
|
46
|
+
indexterm:[Example index entry]
|
47
|
+
|
48
|
+
It's also worth noting that a book part can have it's own preface,
|
49
|
+
bibliography, glossary and index. Chapters can have their own
|
50
|
+
bibliography, glossary and index.
|
51
|
+
|
52
|
+
And now for something completely different: ((monkeys)), lions and
|
53
|
+
tigers (Bengal and Siberian) using the alternative syntax index
|
54
|
+
entries.
|
55
|
+
(((Big cats,Lions)))
|
56
|
+
(((Big cats,Tigers,Bengal Tiger)))
|
57
|
+
(((Big cats,Tigers,Siberian Tiger)))
|
58
|
+
Note that multi-entry terms generate separate index entries.
|
59
|
+
|
60
|
+
Here are a couple of image examples: an image:images/smallnew.png[]
|
61
|
+
example inline image followed by an example block image:
|
62
|
+
|
63
|
+
.Tiger block image
|
64
|
+
image::images/tiger.png[Tiger image]
|
65
|
+
|
66
|
+
Followed by an example table:
|
67
|
+
|
68
|
+
.An example table
|
69
|
+
`-----------------`--------------------------
|
70
|
+
Option Description
|
71
|
+
---------------------------------------------
|
72
|
+
-a 'USER GROUP' Add 'USER' to 'GROUP'.
|
73
|
+
-R 'GROUP' Disables access to 'GROUP'.
|
74
|
+
---------------------------------------------
|
75
|
+
|
76
|
+
[[X1]]
|
77
|
+
Sub-section with Anchor
|
78
|
+
~~~~~~~~~~~~~~~~~~~~~~~
|
79
|
+
Sub-section at level 2.
|
80
|
+
|
81
|
+
Chapter Sub-section
|
82
|
+
^^^^^^^^^^^^^^^^^^^
|
83
|
+
Sub-section at level 3.
|
84
|
+
|
85
|
+
Chapter Sub-section
|
86
|
+
+++++++++++++++++++
|
87
|
+
Sub-section at level 4.
|
88
|
+
|
89
|
+
This is the maximum sub-section depth supported by the distributed
|
90
|
+
AsciiDoc configuration.
|
91
|
+
footnote:[A second example footnote.]
|
92
|
+
|
93
|
+
|
94
|
+
The Second Chapter
|
95
|
+
------------------
|
96
|
+
An example link to anchor at start of the <<X1,first sub-section>>.
|
97
|
+
indexterm:[Second example index entry]
|
98
|
+
|
99
|
+
An example link to a bibliography entry <<taoup>>.
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
The Second Part of the Book
|
104
|
+
===========================
|
105
|
+
|
106
|
+
The First Chapter of the Second Part
|
107
|
+
------------------------------------
|
108
|
+
Chapters grouped into book parts are at level 1 and can contain
|
109
|
+
sub-sections.
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
Appendix A: Example Appendix
|
114
|
+
============================
|
115
|
+
One or more optional appendixes go here at section level zero.
|
116
|
+
|
117
|
+
Appendix Sub-section
|
118
|
+
~~~~~~~~~~~~~~~~~~~
|
119
|
+
NOTE: Preface and appendix subsections start out of sequence at level
|
120
|
+
2 (level 1 is skipped). This only applies to multi-part book
|
121
|
+
documents.
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
Bibliography
|
126
|
+
============
|
127
|
+
The bibliography list is an example of an AsciiDoc SimpleList, the
|
128
|
+
AsciiDoc source list items are bulleted with a `+` character. The
|
129
|
+
first entry in this example has an anchor.
|
130
|
+
|
131
|
+
+ [[[taoup]]] Eric Steven Raymond. 'The Art of Unix Programming'.
|
132
|
+
Addison-Wesley. ISBN 0-13-142901-9.
|
133
|
+
|
134
|
+
+ [[[walsh-muellner]]] Norman Walsh & Leonard Muellner.
|
135
|
+
'DocBook - The Definative Guide'. O'Reilly & Associates. 199.
|
136
|
+
ISBN 1-56592-580-7.
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
Glossary
|
141
|
+
========
|
142
|
+
Glossaries are optional. Glossaries are an example of an AsciiDoc
|
143
|
+
VariableList, the AsciiDoc glossary entry terms are terminated
|
144
|
+
by the `:-` characters.
|
145
|
+
|
146
|
+
A glossary term:-
|
147
|
+
The corresponding (indented) definition.
|
148
|
+
|
149
|
+
A second glossary term:-
|
150
|
+
The corresponding (indented) definition.
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
Index
|
155
|
+
=====
|
156
|
+
////////////////////////////////////////////////////////////////
|
157
|
+
The index is normally left completely empty, it's contents are
|
158
|
+
generated automatically by the DocBook toolchain.
|
159
|
+
////////////////////////////////////////////////////////////////
|
@@ -0,0 +1,585 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
6
|
+
<meta name="generator" content="AsciiDoc 8.2.7" />
|
7
|
+
<style type="text/css">
|
8
|
+
/* Debug borders */
|
9
|
+
p, li, dt, dd, div, pre, h1, h2, h3, h4, h5, h6 {
|
10
|
+
/*
|
11
|
+
border: 1px solid red;
|
12
|
+
*/
|
13
|
+
}
|
14
|
+
|
15
|
+
body {
|
16
|
+
margin: 1em 5% 1em 5%;
|
17
|
+
}
|
18
|
+
|
19
|
+
a {
|
20
|
+
color: blue;
|
21
|
+
text-decoration: underline;
|
22
|
+
}
|
23
|
+
a:visited {
|
24
|
+
color: fuchsia;
|
25
|
+
}
|
26
|
+
|
27
|
+
em {
|
28
|
+
font-style: italic;
|
29
|
+
color: navy;
|
30
|
+
}
|
31
|
+
|
32
|
+
strong {
|
33
|
+
font-weight: bold;
|
34
|
+
color: #083194;
|
35
|
+
}
|
36
|
+
|
37
|
+
tt {
|
38
|
+
color: navy;
|
39
|
+
}
|
40
|
+
|
41
|
+
h1, h2, h3, h4, h5, h6 {
|
42
|
+
color: #527bbd;
|
43
|
+
font-family: sans-serif;
|
44
|
+
margin-top: 1.2em;
|
45
|
+
margin-bottom: 0.5em;
|
46
|
+
line-height: 1.3;
|
47
|
+
}
|
48
|
+
|
49
|
+
h1, h2, h3 {
|
50
|
+
border-bottom: 2px solid silver;
|
51
|
+
}
|
52
|
+
h2 {
|
53
|
+
padding-top: 0.5em;
|
54
|
+
}
|
55
|
+
h3 {
|
56
|
+
float: left;
|
57
|
+
}
|
58
|
+
h3 + * {
|
59
|
+
clear: left;
|
60
|
+
}
|
61
|
+
|
62
|
+
div.sectionbody {
|
63
|
+
font-family: serif;
|
64
|
+
margin-left: 0;
|
65
|
+
}
|
66
|
+
|
67
|
+
hr {
|
68
|
+
border: 1px solid silver;
|
69
|
+
}
|
70
|
+
|
71
|
+
p {
|
72
|
+
margin-top: 0.5em;
|
73
|
+
margin-bottom: 0.5em;
|
74
|
+
}
|
75
|
+
|
76
|
+
ul, ol, li > p {
|
77
|
+
margin-top: 0;
|
78
|
+
}
|
79
|
+
|
80
|
+
pre {
|
81
|
+
padding: 0;
|
82
|
+
margin: 0;
|
83
|
+
}
|
84
|
+
|
85
|
+
span#author {
|
86
|
+
color: #527bbd;
|
87
|
+
font-family: sans-serif;
|
88
|
+
font-weight: bold;
|
89
|
+
font-size: 1.1em;
|
90
|
+
}
|
91
|
+
span#email {
|
92
|
+
}
|
93
|
+
span#revision {
|
94
|
+
font-family: sans-serif;
|
95
|
+
}
|
96
|
+
|
97
|
+
div#footer {
|
98
|
+
font-family: sans-serif;
|
99
|
+
font-size: small;
|
100
|
+
border-top: 2px solid silver;
|
101
|
+
padding-top: 0.5em;
|
102
|
+
margin-top: 4.0em;
|
103
|
+
}
|
104
|
+
div#footer-text {
|
105
|
+
float: left;
|
106
|
+
padding-bottom: 0.5em;
|
107
|
+
}
|
108
|
+
div#footer-badges {
|
109
|
+
float: right;
|
110
|
+
padding-bottom: 0.5em;
|
111
|
+
}
|
112
|
+
|
113
|
+
div#preamble,
|
114
|
+
div.tableblock, div.imageblock, div.exampleblock, div.verseblock,
|
115
|
+
div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
|
116
|
+
div.admonitionblock {
|
117
|
+
margin-right: 10%;
|
118
|
+
margin-top: 1.5em;
|
119
|
+
margin-bottom: 1.5em;
|
120
|
+
}
|
121
|
+
div.admonitionblock {
|
122
|
+
margin-top: 2.5em;
|
123
|
+
margin-bottom: 2.5em;
|
124
|
+
}
|
125
|
+
|
126
|
+
div.content { /* Block element content. */
|
127
|
+
padding: 0;
|
128
|
+
}
|
129
|
+
|
130
|
+
/* Block element titles. */
|
131
|
+
div.title, caption.title {
|
132
|
+
color: #527bbd;
|
133
|
+
font-family: sans-serif;
|
134
|
+
font-weight: bold;
|
135
|
+
text-align: left;
|
136
|
+
margin-top: 1.0em;
|
137
|
+
margin-bottom: 0.5em;
|
138
|
+
}
|
139
|
+
div.title + * {
|
140
|
+
margin-top: 0;
|
141
|
+
}
|
142
|
+
|
143
|
+
td div.title:first-child {
|
144
|
+
margin-top: 0.0em;
|
145
|
+
}
|
146
|
+
div.content div.title:first-child {
|
147
|
+
margin-top: 0.0em;
|
148
|
+
}
|
149
|
+
div.content + div.title {
|
150
|
+
margin-top: 0.0em;
|
151
|
+
}
|
152
|
+
|
153
|
+
div.sidebarblock > div.content {
|
154
|
+
background: #ffffee;
|
155
|
+
border: 1px solid silver;
|
156
|
+
padding: 0.5em;
|
157
|
+
}
|
158
|
+
|
159
|
+
div.listingblock {
|
160
|
+
margin-right: 0%;
|
161
|
+
}
|
162
|
+
div.listingblock > div.content {
|
163
|
+
border: 1px solid silver;
|
164
|
+
background: #f4f4f4;
|
165
|
+
padding: 0.5em;
|
166
|
+
}
|
167
|
+
|
168
|
+
div.quoteblock {
|
169
|
+
padding-left: 2.0em;
|
170
|
+
}
|
171
|
+
div.quoteblock > div.attribution {
|
172
|
+
padding-top: 0.5em;
|
173
|
+
text-align: right;
|
174
|
+
}
|
175
|
+
|
176
|
+
div.verseblock {
|
177
|
+
padding-left: 2.0em;
|
178
|
+
}
|
179
|
+
div.verseblock > div.content {
|
180
|
+
white-space: pre;
|
181
|
+
}
|
182
|
+
div.verseblock > div.attribution {
|
183
|
+
padding-top: 0.75em;
|
184
|
+
text-align: left;
|
185
|
+
}
|
186
|
+
/* DEPRECATED: Pre version 8.2.7 verse style literal block. */
|
187
|
+
div.verseblock + div.attribution {
|
188
|
+
text-align: left;
|
189
|
+
}
|
190
|
+
|
191
|
+
div.admonitionblock .icon {
|
192
|
+
vertical-align: top;
|
193
|
+
font-size: 1.1em;
|
194
|
+
font-weight: bold;
|
195
|
+
text-decoration: underline;
|
196
|
+
color: #527bbd;
|
197
|
+
padding-right: 0.5em;
|
198
|
+
}
|
199
|
+
div.admonitionblock td.content {
|
200
|
+
padding-left: 0.5em;
|
201
|
+
border-left: 2px solid silver;
|
202
|
+
}
|
203
|
+
|
204
|
+
div.exampleblock > div.content {
|
205
|
+
border-left: 2px solid silver;
|
206
|
+
padding: 0.5em;
|
207
|
+
}
|
208
|
+
|
209
|
+
div.imageblock div.content { padding-left: 0; }
|
210
|
+
div.imageblock img { border: 1px solid silver; }
|
211
|
+
span.image img { border-style: none; }
|
212
|
+
|
213
|
+
dl {
|
214
|
+
margin-top: 0.8em;
|
215
|
+
margin-bottom: 0.8em;
|
216
|
+
}
|
217
|
+
dt {
|
218
|
+
margin-top: 0.5em;
|
219
|
+
margin-bottom: 0;
|
220
|
+
font-style: normal;
|
221
|
+
}
|
222
|
+
dd > *:first-child {
|
223
|
+
margin-top: 0.1em;
|
224
|
+
}
|
225
|
+
|
226
|
+
ul, ol {
|
227
|
+
list-style-position: outside;
|
228
|
+
}
|
229
|
+
div.olist > ol {
|
230
|
+
list-style-type: decimal;
|
231
|
+
}
|
232
|
+
div.olist2 > ol {
|
233
|
+
list-style-type: lower-alpha;
|
234
|
+
}
|
235
|
+
|
236
|
+
div.tableblock > table {
|
237
|
+
border: 3px solid #527bbd;
|
238
|
+
}
|
239
|
+
thead {
|
240
|
+
font-family: sans-serif;
|
241
|
+
font-weight: bold;
|
242
|
+
}
|
243
|
+
tfoot {
|
244
|
+
font-weight: bold;
|
245
|
+
}
|
246
|
+
|
247
|
+
div.hlist {
|
248
|
+
margin-top: 0.8em;
|
249
|
+
margin-bottom: 0.8em;
|
250
|
+
}
|
251
|
+
div.hlist td {
|
252
|
+
padding-bottom: 15px;
|
253
|
+
}
|
254
|
+
td.hlist1 {
|
255
|
+
vertical-align: top;
|
256
|
+
font-style: normal;
|
257
|
+
padding-right: 0.8em;
|
258
|
+
}
|
259
|
+
td.hlist2 {
|
260
|
+
vertical-align: top;
|
261
|
+
}
|
262
|
+
|
263
|
+
@media print {
|
264
|
+
div#footer-badges { display: none; }
|
265
|
+
}
|
266
|
+
|
267
|
+
div#toctitle {
|
268
|
+
color: #527bbd;
|
269
|
+
font-family: sans-serif;
|
270
|
+
font-size: 1.1em;
|
271
|
+
font-weight: bold;
|
272
|
+
margin-top: 1.0em;
|
273
|
+
margin-bottom: 0.1em;
|
274
|
+
}
|
275
|
+
|
276
|
+
div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
|
277
|
+
margin-top: 0;
|
278
|
+
margin-bottom: 0;
|
279
|
+
}
|
280
|
+
div.toclevel2 {
|
281
|
+
margin-left: 2em;
|
282
|
+
font-size: 0.9em;
|
283
|
+
}
|
284
|
+
div.toclevel3 {
|
285
|
+
margin-left: 4em;
|
286
|
+
font-size: 0.9em;
|
287
|
+
}
|
288
|
+
div.toclevel4 {
|
289
|
+
margin-left: 6em;
|
290
|
+
font-size: 0.9em;
|
291
|
+
}
|
292
|
+
/* Workarounds for IE6's broken and incomplete CSS2. */
|
293
|
+
|
294
|
+
div.sidebar-content {
|
295
|
+
background: #ffffee;
|
296
|
+
border: 1px solid silver;
|
297
|
+
padding: 0.5em;
|
298
|
+
}
|
299
|
+
div.sidebar-title, div.image-title {
|
300
|
+
color: #527bbd;
|
301
|
+
font-family: sans-serif;
|
302
|
+
font-weight: bold;
|
303
|
+
margin-top: 0.0em;
|
304
|
+
margin-bottom: 0.5em;
|
305
|
+
}
|
306
|
+
|
307
|
+
div.listingblock div.content {
|
308
|
+
border: 1px solid silver;
|
309
|
+
background: #f4f4f4;
|
310
|
+
padding: 0.5em;
|
311
|
+
}
|
312
|
+
|
313
|
+
div.quoteblock-attribution {
|
314
|
+
padding-top: 0.5em;
|
315
|
+
text-align: right;
|
316
|
+
}
|
317
|
+
|
318
|
+
div.verseblock-content {
|
319
|
+
white-space: pre;
|
320
|
+
}
|
321
|
+
div.verseblock-attribution {
|
322
|
+
padding-top: 0.75em;
|
323
|
+
text-align: left;
|
324
|
+
}
|
325
|
+
|
326
|
+
div.exampleblock-content {
|
327
|
+
border-left: 2px solid silver;
|
328
|
+
padding-left: 0.5em;
|
329
|
+
}
|
330
|
+
|
331
|
+
/* IE6 sets dynamically generated links as visited. */
|
332
|
+
div#toc a:visited { color: blue; }
|
333
|
+
|
334
|
+
/* Because IE6 child selector is broken. */
|
335
|
+
div.olist2 ol {
|
336
|
+
list-style-type: lower-alpha;
|
337
|
+
}
|
338
|
+
div.olist2 div.olist ol {
|
339
|
+
list-style-type: decimal;
|
340
|
+
}
|
341
|
+
</style>
|
342
|
+
<script type="text/javascript">
|
343
|
+
/*<![CDATA[*/
|
344
|
+
window.onload = function(){generateToc(2)}
|
345
|
+
/* Author: Mihai Bazon, September 2002
|
346
|
+
* http://students.infoiasi.ro/~mishoo
|
347
|
+
*
|
348
|
+
* Table Of Content generator
|
349
|
+
* Version: 0.4
|
350
|
+
*
|
351
|
+
* Feel free to use this script under the terms of the GNU General Public
|
352
|
+
* License, as long as you do not remove or alter this notice.
|
353
|
+
*/
|
354
|
+
|
355
|
+
/* modified by Troy D. Hanson, September 2006. License: GPL */
|
356
|
+
/* modified by Stuart Rackham, October 2006. License: GPL */
|
357
|
+
|
358
|
+
function getText(el) {
|
359
|
+
var text = "";
|
360
|
+
for (var i = el.firstChild; i != null; i = i.nextSibling) {
|
361
|
+
if (i.nodeType == 3 /* Node.TEXT_NODE */) // IE doesn't speak constants.
|
362
|
+
text += i.data;
|
363
|
+
else if (i.firstChild != null)
|
364
|
+
text += getText(i);
|
365
|
+
}
|
366
|
+
return text;
|
367
|
+
}
|
368
|
+
|
369
|
+
function TocEntry(el, text, toclevel) {
|
370
|
+
this.element = el;
|
371
|
+
this.text = text;
|
372
|
+
this.toclevel = toclevel;
|
373
|
+
}
|
374
|
+
|
375
|
+
function tocEntries(el, toclevels) {
|
376
|
+
var result = new Array;
|
377
|
+
var re = new RegExp('[hH]([2-'+(toclevels+1)+'])');
|
378
|
+
// Function that scans the DOM tree for header elements (the DOM2
|
379
|
+
// nodeIterator API would be a better technique but not supported by all
|
380
|
+
// browsers).
|
381
|
+
var iterate = function (el) {
|
382
|
+
for (var i = el.firstChild; i != null; i = i.nextSibling) {
|
383
|
+
if (i.nodeType == 1 /* Node.ELEMENT_NODE */) {
|
384
|
+
var mo = re.exec(i.tagName)
|
385
|
+
if (mo)
|
386
|
+
result[result.length] = new TocEntry(i, getText(i), mo[1]-1);
|
387
|
+
iterate(i);
|
388
|
+
}
|
389
|
+
}
|
390
|
+
}
|
391
|
+
iterate(el);
|
392
|
+
return result;
|
393
|
+
}
|
394
|
+
|
395
|
+
// This function does the work. toclevels = 1..4.
|
396
|
+
function generateToc(toclevels) {
|
397
|
+
var toc = document.getElementById("toc");
|
398
|
+
var entries = tocEntries(document.getElementsByTagName("body")[0], toclevels);
|
399
|
+
for (var i = 0; i < entries.length; ++i) {
|
400
|
+
var entry = entries[i];
|
401
|
+
if (entry.element.id == "")
|
402
|
+
entry.element.id = "toc" + i;
|
403
|
+
var a = document.createElement("a");
|
404
|
+
a.href = "#" + entry.element.id;
|
405
|
+
a.appendChild(document.createTextNode(entry.text));
|
406
|
+
var div = document.createElement("div");
|
407
|
+
div.appendChild(a);
|
408
|
+
div.className = "toclevel" + entry.toclevel;
|
409
|
+
toc.appendChild(div);
|
410
|
+
}
|
411
|
+
if (entries.length == 0)
|
412
|
+
document.getElementById("header").removeChild(toc);
|
413
|
+
}
|
414
|
+
/*]]>*/
|
415
|
+
</script>
|
416
|
+
<title>Book Title Goes Here</title>
|
417
|
+
</head>
|
418
|
+
<body>
|
419
|
+
<div id="header">
|
420
|
+
<h1>Book Title Goes Here</h1>
|
421
|
+
<span id="author">Author's Name</span><br />
|
422
|
+
<span id="revision">version 1.0,</span>
|
423
|
+
Dec 2003
|
424
|
+
<div id="toc">
|
425
|
+
<div id="toctitle">Table of Contents</div>
|
426
|
+
<noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript>
|
427
|
+
</div>
|
428
|
+
</div>
|
429
|
+
<h2 id="_dedication">1. Dedication</h2>
|
430
|
+
<div class="sectionbody">
|
431
|
+
<div class="para"><p>Optional dedication.</p></div>
|
432
|
+
<div class="para"><p>This document is an <em>AsciiDoc</em> book skeleton containing briefly
|
433
|
+
annotated example elements plus a couple of example index entries and
|
434
|
+
footnotes.</p></div>
|
435
|
+
<div class="para"><p>Books are normally used to generate DocBook markup and the titles of
|
436
|
+
the preface, appendix, bibliography, glossary and index sections are
|
437
|
+
significant (<em>specialsections</em>).</p></div>
|
438
|
+
</div>
|
439
|
+
<h2 id="_preface">2. Preface</h2>
|
440
|
+
<div class="sectionbody">
|
441
|
+
<div class="para"><p>Optional preface.</p></div>
|
442
|
+
<h3 id="_preface_sub_section">2.1. Preface Sub-section</h3><div style="clear:left"></div>
|
443
|
+
<div class="para"><p>Preface sub-section body.</p></div>
|
444
|
+
</div>
|
445
|
+
<h2 id="_the_first_chapter">3. The First Chapter</h2>
|
446
|
+
<div class="sectionbody">
|
447
|
+
<div class="para"><p>Chapters can contain sub-sections nested up to three deep.
|
448
|
+
<br />[An example footnote.]<br /></p></div>
|
449
|
+
<div class="para"><p>Chapters can have their own bibliography, glossary and index.</p></div>
|
450
|
+
<div class="para"><p>And now for something completely different: monkeys, lions and
|
451
|
+
tigers (Bengal and Siberian) using the alternative syntax index
|
452
|
+
entries.
|
453
|
+
|
454
|
+
|
455
|
+
|
456
|
+
Note that multi-entry terms generate separate index entries.</p></div>
|
457
|
+
<div class="para"><p>Here are a couple of image examples: an <span class="image">
|
458
|
+
<img src="images/smallnew.png" alt="images/smallnew.png" />
|
459
|
+
</span>
|
460
|
+
example inline image followed by an example block image:</p></div>
|
461
|
+
<div class="imageblock">
|
462
|
+
<div class="content">
|
463
|
+
<img src="images/tiger.png" alt="Tiger image" title="Tiger image"/>
|
464
|
+
</div>
|
465
|
+
<div class="image-title">Figure: Tiger block image</div>
|
466
|
+
</div>
|
467
|
+
<div class="para"><p>Followed by an example table:</p></div>
|
468
|
+
<div class="tableblock">
|
469
|
+
<table rules="none"
|
470
|
+
frame="hsides"
|
471
|
+
cellspacing="0" cellpadding="4">
|
472
|
+
<caption class="title">Table: An example table</caption>
|
473
|
+
<col width="205" />
|
474
|
+
<col width="308" />
|
475
|
+
<thead>
|
476
|
+
<tr>
|
477
|
+
<th align="left">
|
478
|
+
Option
|
479
|
+
</th>
|
480
|
+
<th align="left">
|
481
|
+
Description
|
482
|
+
</th>
|
483
|
+
</tr>
|
484
|
+
</thead>
|
485
|
+
<tbody valign="top">
|
486
|
+
<tr>
|
487
|
+
<td align="left">
|
488
|
+
-a <em>USER GROUP</em>
|
489
|
+
</td>
|
490
|
+
<td align="left">
|
491
|
+
Add <em>USER</em> to <em>GROUP</em>.
|
492
|
+
</td>
|
493
|
+
</tr>
|
494
|
+
<tr>
|
495
|
+
<td align="left">
|
496
|
+
-R <em>GROUP</em>
|
497
|
+
</td>
|
498
|
+
<td align="left">
|
499
|
+
Disables access to <em>GROUP</em>.
|
500
|
+
</td>
|
501
|
+
</tr>
|
502
|
+
</tbody>
|
503
|
+
</table>
|
504
|
+
</div>
|
505
|
+
<h3 id="X1">3.1. Sub-section with Anchor</h3><div style="clear:left"></div>
|
506
|
+
<div class="para"><p>Sub-section at level 2.</p></div>
|
507
|
+
<h4 id="_chapter_sub_section">3.1.1. Chapter Sub-section</h4>
|
508
|
+
<div class="para"><p>Sub-section at level 3.</p></div>
|
509
|
+
<h5 id="_chapter_sub_section_2">Chapter Sub-section</h5>
|
510
|
+
<div class="para"><p>Sub-section at level 4.</p></div>
|
511
|
+
<div class="para"><p>This is the maximum sub-section depth supported by the distributed
|
512
|
+
<em>AsciiDoc</em> configuration.
|
513
|
+
<br />[A second example footnote.]<br /></p></div>
|
514
|
+
</div>
|
515
|
+
<h2 id="_the_second_chapter">4. The Second Chapter</h2>
|
516
|
+
<div class="sectionbody">
|
517
|
+
<div class="para"><p>An example link to anchor at start of the <a href="#X1">first sub-section</a>.</p></div>
|
518
|
+
<div class="para"><p>An example link to a bibliography entry <a href="#taoup">[taoup]</a>.</p></div>
|
519
|
+
</div>
|
520
|
+
<h2 id="_the_third_chapter">5. The Third Chapter</h2>
|
521
|
+
<div class="sectionbody">
|
522
|
+
<div class="para"><p>Book chapters are at level 1 and can contain sub-sections.</p></div>
|
523
|
+
</div>
|
524
|
+
<h2 id="_appendix_a_example_appendix">6. Appendix A: Example Appendix</h2>
|
525
|
+
<div class="sectionbody">
|
526
|
+
<div class="para"><p>One or more optional appendixes go here at section level 1.</p></div>
|
527
|
+
<h3 id="_appendix_sub_section">6.1. Appendix Sub-section</h3><div style="clear:left"></div>
|
528
|
+
<div class="para"><p>Sub-section body.</p></div>
|
529
|
+
</div>
|
530
|
+
<h2 id="_bibliography">7. Bibliography</h2>
|
531
|
+
<div class="sectionbody">
|
532
|
+
<div class="para"><p>The bibliography list is an example of an <em>AsciiDoc</em> SimpleList, the
|
533
|
+
<em>AsciiDoc</em> source list items are bulleted with a <tt>+</tt> character. The
|
534
|
+
first entry in this example has an anchor.</p></div>
|
535
|
+
<div class="olist"><ol>
|
536
|
+
<li>
|
537
|
+
<p>
|
538
|
+
<a id="taoup"></a>[taoup] Eric Steven Raymond. <em>The Art of Unix Programming</em>.
|
539
|
+
Addison-Wesley. ISBN 0-13-142901-9.
|
540
|
+
</p>
|
541
|
+
</li>
|
542
|
+
<li>
|
543
|
+
<p>
|
544
|
+
<a id="walsh-muellner"></a>[walsh-muellner] Norman Walsh & Leonard Muellner.
|
545
|
+
<em>DocBook - The Definative Guide</em>. O'Reilly & Associates. 199.
|
546
|
+
ISBN 1-56592-580-7.
|
547
|
+
</p>
|
548
|
+
</li>
|
549
|
+
</ol></div>
|
550
|
+
</div>
|
551
|
+
<h2 id="_glossary">8. Glossary</h2>
|
552
|
+
<div class="sectionbody">
|
553
|
+
<div class="para"><p>Glossaries are optional. Glossaries are an example of an <em>AsciiDoc</em>
|
554
|
+
VariableList, the <em>AsciiDoc</em> glossary entry terms are terminated
|
555
|
+
by the <tt>:-</tt> characters.</p></div>
|
556
|
+
<div class="vlist"><dl>
|
557
|
+
<dt>
|
558
|
+
A glossary term
|
559
|
+
</dt>
|
560
|
+
<dd>
|
561
|
+
<p>
|
562
|
+
The corresponding (indented) definition.
|
563
|
+
</p>
|
564
|
+
</dd>
|
565
|
+
<dt>
|
566
|
+
A second glossary term
|
567
|
+
</dt>
|
568
|
+
<dd>
|
569
|
+
<p>
|
570
|
+
The corresponding (indented) definition.
|
571
|
+
</p>
|
572
|
+
</dd>
|
573
|
+
</dl></div>
|
574
|
+
</div>
|
575
|
+
<h2 id="_index">9. Index</h2>
|
576
|
+
<div class="sectionbody">
|
577
|
+
</div>
|
578
|
+
<div id="footer">
|
579
|
+
<div id="footer-text">
|
580
|
+
Version 1.0<br />
|
581
|
+
Last updated 2008-07-03 13:38:34 NZDT
|
582
|
+
</div>
|
583
|
+
</div>
|
584
|
+
</body>
|
585
|
+
</html>
|