| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| screenshot.png | 2016-12-22 | 1.0 MB | |
| index.adoc | 2016-12-22 | 499 Bytes | |
| makefile | 2016-12-22 | 322 Bytes | |
| page3.adoc | 2016-12-22 | 1.1 kB | |
| README.txt | 2016-12-22 | 1.4 kB | |
| page2.html | 2016-12-22 | 2.2 kB | |
| page3.html | 2016-12-22 | 2.5 kB | |
| menus.css | 2016-12-22 | 657 Bytes | |
| index.html | 2016-12-22 | 2.1 kB | |
| page1.adoc | 2016-12-22 | 1.2 kB | |
| page2.adoc | 2016-12-22 | 754 Bytes | |
| README.html | 2016-12-22 | 4.3 kB | |
| menu-include.adoc | 2016-12-22 | 638 Bytes | |
| README.adoc | 2016-12-22 | 502 Bytes | |
| LICENSE.txt | 2016-12-22 | 1.1 kB | |
| page1.html | 2016-12-22 | 4.0 kB | |
| Totals: 16 Items | 1.0 MB | 1 | |
// README.txt
=== How to Use This Demo
These files demonstrate a simple but effective way to add menu bars (like the one above) to AsciiDoc documents with no HTML skills or add-ons required. All you need is link:{adoc} and a text editor. Follow these steps to run the demonstration:
1. Unpack this demonstration's `mia.zip` ("Menus in AsciiDoc") archive
2. In directory `mia` open `index.html` in your browser (see screenshot below)
3. Select menu items and use links to view document source text files
image::screenshot.png[Screenshot, 50%, 50%]
To try out your own designs using this demonstration's files as templates, first install AsciiDoctor if necessary (this assumes link:{ruby} is installed):
$ gem install asciidoctor
Load any of this demonstration's `.adoc` source text files into your text editor, make changes, and then process (or "compile" in programming-speak) with AsciiDoctor. Compile a source file individually:
$ asciidoctor index.adoc
Or, to compile one or more documents with one command, enter:
$ make
This runs the system `make` utility on `makefile` in the current directory. To erase generated HTML and backup files, enter:
$ make clean
Enter `make` again to regenerate the deleted files.
For more information about this demo, see my article *_Menus in AsciiDoc_* at www.tomswan.com. It's on the Blog page.