asciidoctor 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of asciidoctor might be problematic. Click here for more details.
- data/LICENSE +21 -0
- data/README.md +69 -0
- data/Rakefile +150 -0
- data/asciidoctor.gemspec +93 -0
- data/bin/asciidoctor +8 -0
- data/lib/asciidoctor.rb +152 -0
- data/lib/asciidoctor/block.rb +188 -0
- data/lib/asciidoctor/debug.rb +6 -0
- data/lib/asciidoctor/document.rb +717 -0
- data/lib/asciidoctor/errors.rb +5 -0
- data/lib/asciidoctor/list_item.rb +19 -0
- data/lib/asciidoctor/render_templates.rb +219 -0
- data/lib/asciidoctor/renderer.rb +62 -0
- data/lib/asciidoctor/section.rb +224 -0
- data/lib/asciidoctor/string.rb +12 -0
- data/lib/asciidoctor/version.rb +3 -0
- data/noof.rb +16 -0
- data/test/document_test.rb +23 -0
- data/test/fixtures/asciidoc.txt +105 -0
- data/test/fixtures/asciidoc_index.txt +507 -0
- data/test/fixtures/ascshort.txt +32 -0
- data/test/fixtures/list_elements.asciidoc +10 -0
- data/test/headers_test.rb +47 -0
- data/test/list_elements_test.rb +55 -0
- data/test/paragraphs_test.rb +38 -0
- data/test/test_helper.rb +143 -0
- data/test/text_test.rb +71 -0
- metadata +167 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
unless String.instance_methods.include? 'underscore'
|
2
|
+
class String
|
3
|
+
# Yes, oh Rails, I stealz you so bad
|
4
|
+
def underscore
|
5
|
+
self.gsub(/::/, '/').
|
6
|
+
gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
|
7
|
+
gsub(/([a-z\d])([A-Z])/,'\1_\2').
|
8
|
+
tr("-", "_").
|
9
|
+
downcase
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
data/noof.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'ap'
|
3
|
+
require 'lib/asciidoctor'
|
4
|
+
|
5
|
+
lines = File.readlines("test/fixtures/asciidoc_index.txt")
|
6
|
+
#lines = File.read("test/fixtures/asciidoc_index.txt")
|
7
|
+
doc = Asciidoctor::Document.new(lines)
|
8
|
+
doc.splain
|
9
|
+
|
10
|
+
foo = doc.render
|
11
|
+
|
12
|
+
puts foo
|
13
|
+
|
14
|
+
File.open("/tmp/noof.html", "w+") do |file|
|
15
|
+
file.puts foo
|
16
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class DocumentTest < Test::Unit::TestCase
|
4
|
+
# setup for test
|
5
|
+
def setup
|
6
|
+
@doc = Asciidoctor::Document.new(File.readlines(sample_doc_path(:asciidoc_index)))
|
7
|
+
end
|
8
|
+
|
9
|
+
def test_title
|
10
|
+
assert_equal "AsciiDoc Home Page", @doc.title
|
11
|
+
end
|
12
|
+
|
13
|
+
def test_with_no_title
|
14
|
+
d = Asciidoctor::Document.new("Snorf")
|
15
|
+
assert_nil d.title
|
16
|
+
end
|
17
|
+
|
18
|
+
def test_is_section_heading
|
19
|
+
assert @doc.send(:is_section_heading?, "AsciiDoc Home Page", "==================")
|
20
|
+
assert @doc.send(:is_section_heading?, "=== AsciiDoc Home Page")
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
@@ -0,0 +1,105 @@
|
|
1
|
+
AsciiDoc User Guide
|
2
|
+
===================
|
3
|
+
Stuart Rackham <srackham@gmail.com>
|
4
|
+
:Author Initials: SJR
|
5
|
+
:toc:
|
6
|
+
:icons:
|
7
|
+
:numbered:
|
8
|
+
:website: http://www.methods.co.nz/asciidoc/
|
9
|
+
|
10
|
+
AsciiDoc is a text document format for writing notes, documentation,
|
11
|
+
articles, books, ebooks, slideshows, web pages, blogs and UNIX man
|
12
|
+
pages.
|
13
|
+
|
14
|
+
.This document
|
15
|
+
**********************************************************************
|
16
|
+
This is an overly large document, it probably needs to be refactored
|
17
|
+
into a Tutorial, Quick Reference and Formal Reference.
|
18
|
+
|
19
|
+
If you're new to AsciiDoc read this section and the <<X6,Getting
|
20
|
+
Started>> section and take a look at the example AsciiDoc (`*.txt`)
|
21
|
+
source files in the distribution `doc` directory.
|
22
|
+
**********************************************************************
|
23
|
+
|
24
|
+
|
25
|
+
Introduction
|
26
|
+
------------
|
27
|
+
AsciiDoc is a plain text human readable/writable document format that
|
28
|
+
can be translated to DocBook or HTML using the asciidoc(1) command.
|
29
|
+
|
30
|
+
asciidoc(1) comes with a set of configuration files to translate
|
31
|
+
AsciiDoc articles, books and man pages to HTML or DocBook backend
|
32
|
+
formats.
|
33
|
+
|
34
|
+
.My AsciiDoc Itch
|
35
|
+
**********************************************************************
|
36
|
+
DocBook has emerged as the de facto standard Open Source documentation
|
37
|
+
format. But DocBook is a complex language, the markup is difficult to
|
38
|
+
read and even more difficult to write directly -- I found I was
|
39
|
+
and fixing syntax errors, than I was writing the documentation.
|
40
|
+
**********************************************************************
|
41
|
+
|
42
|
+
|
43
|
+
[[X6]]
|
44
|
+
Getting Started
|
45
|
+
---------------
|
46
|
+
Installing AsciiDoc
|
47
|
+
~~~~~~~~~~~~~~~~~~~
|
48
|
+
See the `README` and `INSTALL` files for install prerequisites and
|
49
|
+
procedures. Packagers take a look at <<X38,Packager Notes>>.
|
50
|
+
|
51
|
+
[[X11]]
|
52
|
+
Example AsciiDoc Documents
|
53
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
54
|
+
The best way to quickly get a feel for AsciiDoc is to view the
|
55
|
+
AsciiDoc web site and/or distributed examples:
|
56
|
+
|
57
|
+
- Take a look at the linked examples on the AsciiDoc web site home
|
58
|
+
page {website}. Press the 'Page Source' sidebar menu item to view
|
59
|
+
corresponding AsciiDoc source.
|
60
|
+
- Read the `*.txt` source files in the distribution `./doc` directory
|
61
|
+
along with the corresponding HTML and DocBook XML files.
|
62
|
+
|
63
|
+
|
64
|
+
AsciiDoc Document Types
|
65
|
+
-----------------------
|
66
|
+
There are three types of AsciiDoc documents: article, book and
|
67
|
+
manpage.
|
68
|
+
|
69
|
+
Use the asciidoc(1) `-d` (`--doctype`) option to specify the AsciiDoc
|
70
|
+
document type -- the default document type is 'article'.
|
71
|
+
|
72
|
+
article
|
73
|
+
~~~~~~~
|
74
|
+
Used for short documents, articles and general documentation. See the
|
75
|
+
AsciiDoc distribution `./doc/article.txt` example.
|
76
|
+
|
77
|
+
AsciiDoc defines standard DocBook article frontmatter and backmatter
|
78
|
+
<<X93,section markup templates>> (appendix, abstract, bibliography,
|
79
|
+
glossary, index).
|
80
|
+
|
81
|
+
book
|
82
|
+
~~~~
|
83
|
+
Books share the same format as articles, with the following
|
84
|
+
differences:
|
85
|
+
|
86
|
+
- The part titles in multi-part books are <<X17,top level titles>>
|
87
|
+
(same level as book title).
|
88
|
+
- Some sections are book specific e.g. preface and colophon.
|
89
|
+
|
90
|
+
Book documents will normally be used to produce DocBook output since
|
91
|
+
DocBook processors can automatically generate footnotes, table of
|
92
|
+
contents, list of tables, list of figures, list of examples and
|
93
|
+
indexes.
|
94
|
+
|
95
|
+
AsciiDoc defines standard DocBook book frontmatter and backmatter
|
96
|
+
<<X93,section markup templates>> (appendix, dedication, preface,
|
97
|
+
bibliography, glossary, index, colophon).
|
98
|
+
|
99
|
+
.Example book documents
|
100
|
+
Book::
|
101
|
+
The `./doc/book.txt` file in the AsciiDoc distribution.
|
102
|
+
|
103
|
+
Multi-part book::
|
104
|
+
The `./doc/book-multi.txt` file in the AsciiDoc distribution.
|
105
|
+
|
@@ -0,0 +1,507 @@
|
|
1
|
+
AsciiDoc Home Page
|
2
|
+
==================
|
3
|
+
// Web page meta data.
|
4
|
+
:keywords: AsciiDoc, DocBook, EPUB, PDF, ebooks, slideshow, slidy, man page
|
5
|
+
:description: AsciiDoc is a text document format for writing notes, +
|
6
|
+
documentation, articles, books, ebooks, slideshows, +
|
7
|
+
web pages, man pages and blogs. AsciiDoc files can be +
|
8
|
+
translated to many formats including HTML, PDF, EPUB, +
|
9
|
+
man page.
|
10
|
+
|
11
|
+
|
12
|
+
.{revdate}: AsciiDoc {revnumber} Released
|
13
|
+
************************************************************************
|
14
|
+
Read the link:CHANGELOG.html[CHANGELOG] for release highlights and a
|
15
|
+
full list of all additions, changes and bug fixes. Changes are
|
16
|
+
documented in the updated link:userguide.html[User Guide]. See the
|
17
|
+
link:INSTALL.html[Installation page] for downloads and and
|
18
|
+
installation instructions.
|
19
|
+
|
20
|
+
'Stuart Rackham'
|
21
|
+
************************************************************************
|
22
|
+
|
23
|
+
Introduction
|
24
|
+
------------
|
25
|
+
{description}
|
26
|
+
|
27
|
+
AsciiDoc is highly configurable: both the AsciiDoc source file syntax
|
28
|
+
and the backend output markups (which can be almost any type of
|
29
|
+
SGML/XML markup) can be customized and extended by the user.
|
30
|
+
|
31
|
+
AsciiDoc is free software and is licenced under the terms of the 'GNU
|
32
|
+
General Public License version 2' (GPLv2).
|
33
|
+
|
34
|
+
TIP: The pages you are reading were written using AsciiDoc, to view
|
35
|
+
the corresponding AsciiDoc source click on the *Page Source* menu item
|
36
|
+
in the left hand margin.
|
37
|
+
|
38
|
+
|
39
|
+
Overview and Examples
|
40
|
+
---------------------
|
41
|
+
You write an AsciiDoc document the same way you would write a
|
42
|
+
normal text document, there are no markup tags or weird format
|
43
|
+
notations. AsciiDoc files are designed to be viewed, edited and
|
44
|
+
printed directly or translated to other presentation formats using
|
45
|
+
the asciidoc(1) command.
|
46
|
+
|
47
|
+
The asciidoc(1) command translates AsciiDoc files to HTML, XHTML and
|
48
|
+
DocBook markups. DocBook can be post-processed to presentation
|
49
|
+
formats such as HTML, PDF, EPUB, DVI, LaTeX, roff, and Postscript
|
50
|
+
using readily available Open Source tools.
|
51
|
+
|
52
|
+
Example Articles
|
53
|
+
~~~~~~~~~~~~~~~~
|
54
|
+
- This XHTML version of the
|
55
|
+
link:asciidoc.css-embedded.html[AsciiDoc User Guide]
|
56
|
+
was generated by AsciiDoc from
|
57
|
+
link:asciidoc.txt[this AsciiDoc file].
|
58
|
+
|
59
|
+
- Here's the link:asciidoc.html[same document] created by first
|
60
|
+
generating DocBook markup using AsciiDoc and then converting the
|
61
|
+
DocBook markup to HTML using 'DocBook XSL Stylesheets'.
|
62
|
+
|
63
|
+
- The User Guide again, this time a
|
64
|
+
link:chunked/index.html[chunked version].
|
65
|
+
|
66
|
+
- AsciiDoc generated this link:article-standalone.html[stand-alone
|
67
|
+
HTML file] containing embedded CSS, JavaScript and images from this
|
68
|
+
link:article.txt[AsciiDoc article template] with this command:
|
69
|
+
|
70
|
+
asciidoc -a data-uri -a icons -a toc -a max-width=55em article.txt
|
71
|
+
|
72
|
+
- The same link:article.txt[AsciiDoc article template] generated
|
73
|
+
link:article-html5-toc2.html[this HTML 5] (the 'toc2' attribute puts
|
74
|
+
a table of contents in the left margin) from this command:
|
75
|
+
|
76
|
+
asciidoc -b html5 -a icons -a toc2 -a theme=flask article.txt
|
77
|
+
|
78
|
+
- The same link:article.txt[AsciiDoc article template] produced
|
79
|
+
this link:article.html[HTML file] and this
|
80
|
+
link:article.pdf[PDF file] via DocBook markup generated by AsciiDoc.
|
81
|
+
|
82
|
+
[[X7]]
|
83
|
+
Example Books
|
84
|
+
~~~~~~~~~~~~~
|
85
|
+
AsciiDoc markup supports all the standard DocBook frontmatter and
|
86
|
+
backmatter sections (dedication, preface, bibliography, glossary,
|
87
|
+
index, colophon) plus footnotes and index entries.
|
88
|
+
|
89
|
+
- This link:book.txt[AsciiDoc book] produced link:book.html[this HTML
|
90
|
+
file] using the 'DocBook XSL Stylesheets'.
|
91
|
+
- The link:asciidoc.pdf[PDF formatted AsciiDoc User Guide] was
|
92
|
+
generated from asciidoc(1) DocBook output.
|
93
|
+
- The link:asciidoc.epub[EPUB formatted AsciiDoc User Guide] was
|
94
|
+
generated using link:a2x.1.html[a2x].
|
95
|
+
- This link:book.epub[EPUB formatted book skeleton] was generated
|
96
|
+
using link:a2x.1.html[a2x].
|
97
|
+
- This link:book-multi.txt[multi-part AsciiDoc book] produced
|
98
|
+
link:book-multi.html[this HTML file] using the 'DocBook XSL
|
99
|
+
Stylesheets'.
|
100
|
+
|
101
|
+
Example UNIX Man Pages
|
102
|
+
~~~~~~~~~~~~~~~~~~~~~~
|
103
|
+
HTML formatted AsciiDoc man pages
|
104
|
+
link:asciidoc.1.css-embedded.html[with stylesheets] and
|
105
|
+
link:asciidoc.1.html[without stylesheets] were generated by AsciiDoc
|
106
|
+
from link:asciidoc.1.txt[this file].
|
107
|
+
|
108
|
+
This link:asciidoc.1[roff formatted man page] was generated from
|
109
|
+
asciidoc(1) DocBook output using `xsltproc(1)` and DocBook XSL
|
110
|
+
Stylesheets.
|
111
|
+
|
112
|
+
[[X8]]
|
113
|
+
Example Slideshows
|
114
|
+
~~~~~~~~~~~~~~~~~~
|
115
|
+
The http://www.w3.org/Talks/Tools/Slidy2/[Slidy] backend generates
|
116
|
+
HTML slideshows that can be viewed in any web browser. What's nice is
|
117
|
+
that you can create completely self contained slideshows including
|
118
|
+
embedded images.
|
119
|
+
|
120
|
+
- Here is the link:slidy.html[slidy backend documentation] slideshow
|
121
|
+
and here is it's link:slidy.txt[AsciiDoc source].
|
122
|
+
- An link:slidy-example.html[example slidy slideshow] and the
|
123
|
+
link:slidy-example.txt[AsciiDoc source].
|
124
|
+
|
125
|
+
Example Web Site
|
126
|
+
~~~~~~~~~~~~~~~~
|
127
|
+
The link:README-website.html[AsciiDoc website] is included in the
|
128
|
+
AsciiDoc distribution (in `./examples/website/`) as an example website
|
129
|
+
built using AsciiDoc. See `./examples/website/README-website.txt`.
|
130
|
+
|
131
|
+
More examples
|
132
|
+
~~~~~~~~~~~~~
|
133
|
+
- See below: <<X6,'Documents written using AsciiDoc'>>.
|
134
|
+
- Example link:newtables.html[Tables].
|
135
|
+
|
136
|
+
|
137
|
+
eBook Publication
|
138
|
+
-----------------
|
139
|
+
The two most popular open eBook formats are
|
140
|
+
http://en.wikipedia.org/wiki/EPUB[EPUB] and PDF.
|
141
|
+
The AsciiDoc link:a2x.1.html[a2x] toolchain wrapper makes it easy to
|
142
|
+
link:publishing-ebooks-with-asciidoc.html[publish EPUB and PDF eBooks
|
143
|
+
with AsciiDoc]. See also <<X7,example books>> and
|
144
|
+
link:epub-notes.html[AsciiDoc EPUB Notes]).
|
145
|
+
|
146
|
+
|
147
|
+
Blogpost weblog client
|
148
|
+
----------------------
|
149
|
+
http://srackham.wordpress.com/blogpost-readme/[blogpost] is a
|
150
|
+
command-line weblog client for publishing AsciiDoc documents to
|
151
|
+
http://wordpress.org/[WordPress] blog hosts. It creates and updates
|
152
|
+
weblog posts and pages directly from AsciiDoc source documents.
|
153
|
+
|
154
|
+
|
155
|
+
Source code highlighter
|
156
|
+
-----------------------
|
157
|
+
AsciiDoc includes a link:source-highlight-filter.html[source code
|
158
|
+
highlighter filter] that uses
|
159
|
+
http://www.gnu.org/software/src-highlite/[GNU source-highlight] to
|
160
|
+
highlight HTML outputs. You also have the option of using the
|
161
|
+
http://pygments.org/[Pygments] highlighter.
|
162
|
+
|
163
|
+
|
164
|
+
[[X3]]
|
165
|
+
Mathematical Formulae
|
166
|
+
---------------------
|
167
|
+
You can include mathematical formulae in AsciiDoc XHTML documents using
|
168
|
+
link:asciimathml.html[ASCIIMathML] or link:latexmathml.html[LaTeXMathML]
|
169
|
+
notation.
|
170
|
+
|
171
|
+
The link:latex-filter.html[AsciiDoc LaTeX filter] translates LaTeX
|
172
|
+
source to a PNG image that is automatically inserted into the AsciiDoc
|
173
|
+
output documents.
|
174
|
+
|
175
|
+
AsciiDoc also has 'latexmath' macros for DocBook outputs -- they are
|
176
|
+
documented in link:latexmath.pdf[this PDF file] and can be used in
|
177
|
+
AsciiDoc documents processed by `dblatex(1)`.
|
178
|
+
|
179
|
+
|
180
|
+
Editor Support
|
181
|
+
--------------
|
182
|
+
- An AsciiDoc syntax highlighter for the Vim text editor is included in the
|
183
|
+
AsciiDoc distribution (see 'Appendix F' of the 'AsciiDoc User Guide' for
|
184
|
+
details).
|
185
|
+
+
|
186
|
+
.Syntax highlighter screenshot
|
187
|
+
image::images/highlighter.png[height=400,caption="",link="images/highlighter.png"]
|
188
|
+
|
189
|
+
- Dag Wieers has implemented an alternative Vim syntax file for
|
190
|
+
AsciiDoc which can be found here
|
191
|
+
http://svn.rpmforge.net/svn/trunk/tools/asciidoc-vim/.
|
192
|
+
- David Avsajanishvili has written a source highlighter for AsciiDoc
|
193
|
+
files for http://projects.gnome.org/gtksourceview/[GtkSourceView]
|
194
|
+
(used by http://projects.gnome.org/gedit/[gedit] and a number of
|
195
|
+
other applications). The project is hosted here:
|
196
|
+
https://launchpad.net/asciidoc-gtk-highlight
|
197
|
+
- Florian Kaufman has written 'adoc-mode.el' -- a major-mode for
|
198
|
+
editing AsciiDoc files in Emacs, you can find it
|
199
|
+
http://code.google.com/p/sensorflo-emacs/[here].
|
200
|
+
- The http://xpt.sourceforge.net/[*Nix Power Tools project] has
|
201
|
+
released an http://xpt.sourceforge.net/tools/doc-mode/[AsciiDoc
|
202
|
+
syntax highlighter for Emacs].
|
203
|
+
- Terrence Brannon has written
|
204
|
+
http://github.com/metaperl/asciidoc-el[AsciiDoc functions for
|
205
|
+
Emacs].
|
206
|
+
- Christian Zuckschwerdt has written a
|
207
|
+
https://github.com/zuckschwerdt/asciidoc.tmbundle[TextMate bundle]
|
208
|
+
for AsciiDoc.
|
209
|
+
|
210
|
+
|
211
|
+
Try AsciiDoc on the Web
|
212
|
+
-----------------------
|
213
|
+
Andrew Koster has written a Web based application to interactively
|
214
|
+
convert and display AsciiDoc source:
|
215
|
+
http://andrewk.webfactional.com/asciidoc.php
|
216
|
+
|
217
|
+
|
218
|
+
[[X2]]
|
219
|
+
External Resources and Applications
|
220
|
+
-----------------------------------
|
221
|
+
Here are resources that I know of, if you know of more drop me a line
|
222
|
+
and I'll add them to the list.
|
223
|
+
|
224
|
+
- Check the link:INSTALL.html#X2[installation page] for packaged versions
|
225
|
+
of AsciiDoc.
|
226
|
+
- Alex Efros has written an HTML formatted
|
227
|
+
http://powerman.name/doc/asciidoc[AsciiDoc Cheatsheet] using
|
228
|
+
Asciidoc.
|
229
|
+
- Thomas Berker has written an
|
230
|
+
http://liksom.info/blog/?q=node/114[AsciiDoc Cheatsheet] in Open
|
231
|
+
Document and PDF formats.
|
232
|
+
- The http://www.wikimatrix.org/[WikiMatrix] website has an excellent
|
233
|
+
http://www.wikimatrix.org/syntax.php[web page] that compares the
|
234
|
+
various Wiki markup syntaxes. An interesting attempt at Wiki markup
|
235
|
+
standardization is http://www.wikicreole.org/[CREOLE].
|
236
|
+
- Franck Pommereau has written
|
237
|
+
http://www.univ-paris12.fr/lacl/pommereau/soft/asciidoctest.html[Asciidoctest],
|
238
|
+
a program that doctests snippets of Python code within your Asciidoc
|
239
|
+
documents.
|
240
|
+
- The http://remips.sourceforge.net/[ReMIPS] project website has been
|
241
|
+
built using AsciiDoc.
|
242
|
+
- Here are some link:asciidoc-docbook-xsl.html[DocBook XSL Stylesheets
|
243
|
+
Notes].
|
244
|
+
- Karl Mowatt-Wilson has developed an http://ikiwiki.info/[ikiwiki]
|
245
|
+
plugin for AsciiDoc which he uses to render
|
246
|
+
http://mowson.org/karl[his website]. The plugin is available
|
247
|
+
http://www.mowson.org/karl/colophon/[here] and there is some
|
248
|
+
discussion of the ikiwiki integration
|
249
|
+
http://ikiwiki.info/users/KarlMW/discussion/[here].
|
250
|
+
- Glenn Eychaner has
|
251
|
+
http://groups.google.com/group/asciidoc/browse_thread/thread/bf04b55628efe214[reworked
|
252
|
+
the Asciidoc plugin for ikiwiki] that was created by Karl Mowson,
|
253
|
+
the source can be downloaded from
|
254
|
+
http://dl.dropbox.com/u/11256359/asciidoc.pm
|
255
|
+
- David Hajage has written an AsciiDoc package for the
|
256
|
+
http://www.r-project.org/[R Project] (R is a free software
|
257
|
+
environment for statistical computing). 'ascii' is available on
|
258
|
+
'CRAN' (just run `install.package("ascii")` from R). Briefly,
|
259
|
+
'ascii' replaces R results in AsciiDoc document with AsciiDoc
|
260
|
+
markup. More information and examples here:
|
261
|
+
http://eusebe.github.com/ascii/.
|
262
|
+
- Pascal Rapaz has written a Python script to automate AsciiDoc
|
263
|
+
website generation. You can find it at
|
264
|
+
http://www.rapazp.ch/opensource/tools/asciidoc.html.
|
265
|
+
- Jared Henley has written
|
266
|
+
http://jared.henley.id.au/software/awb/documentation.html[AsciiDoc
|
267
|
+
Website Builder]. 'AsciiDoc Website Builder' (awb) is a python
|
268
|
+
program that automates the building of of a website written in
|
269
|
+
AsciiDoc. All you need to write is the AsciiDoc source plus a few
|
270
|
+
simple configuration files.
|
271
|
+
- Brad Adkins has written
|
272
|
+
http://dbixjcl.org/jcl/asciidocgen/asciidocgen.html[AsciiDocGen], a
|
273
|
+
web site generation and deployment tool that allows you write your
|
274
|
+
web site content in AsciiDoc. The
|
275
|
+
http://dbixjcl.org/jcl/asciidocgen/asciidocgen.html[AsciiDocGen web
|
276
|
+
site] is managed using 'AsciiDocGen'.
|
277
|
+
- Filippo Negroni has developed a set of tools to facilitate 'literate
|
278
|
+
programming' using AsciiDoc. The set of tools is called
|
279
|
+
http://eweb.sourceforge.net/[eWEB].
|
280
|
+
- http://vanderwijk.info/2009/4/23/full-text-based-document-generation-using-asciidoc-and-ditaa[Ivo's
|
281
|
+
blog] describes a http://ditaa.sourceforge.net/[ditaa] filter for
|
282
|
+
AsciiDoc which converts http://en.wikipedia.org/wiki/ASCII_art[ASCII
|
283
|
+
art] into graphics.
|
284
|
+
- http://github.com/github/gollum[Gollum] is a git-powered wiki, it
|
285
|
+
supports various formats, including AsciiDoc.
|
286
|
+
- Gregory Romé has written an
|
287
|
+
http://github.com/gpr/redmine_asciidoc_formatter[AsciiDoc plugin]
|
288
|
+
for the http://www.redmine.org/[Redmine] project management
|
289
|
+
application.
|
290
|
+
- Paul Hsu has started a
|
291
|
+
http://github.com/paulhsu/AsciiDoc.CHT.userguide[Chinese translation
|
292
|
+
of the AsciiDoc User Guide].
|
293
|
+
- Dag Wieers has written
|
294
|
+
http://dag.wieers.com/home-made/unoconv/[UNOCONV]. 'UNOCONV' can
|
295
|
+
export AsciiDoc outputs to OpenOffice export formats.
|
296
|
+
- Ed Keith has written http://codeextactor.berlios.de/[Code
|
297
|
+
Extractor], it extracts code snippets from source code files and
|
298
|
+
inserts them into AsciiDoc documents.
|
299
|
+
- The http://csrp.iut-blagnac.fr/jmiwebsite/home/[JMI website] hosts
|
300
|
+
a number of extras for AsciiDoc and Slidy written by Jean-Michel
|
301
|
+
Inglebert.
|
302
|
+
- Ryan Tomayko has written an number of
|
303
|
+
http://tomayko.com/src/adoc-themes/[themes for AsciiDoc] along with
|
304
|
+
a http://tomayko.com/src/adoc-themes/hacking.html[script for
|
305
|
+
combining the CSS files] into single CSS theme files for AsciiDoc
|
306
|
+
embedded CSS documents.
|
307
|
+
- Ilya Portnov has written a
|
308
|
+
https://gitorious.org/doc-building-system[document building system
|
309
|
+
for AsciiDoc], here is
|
310
|
+
http://iportnov.blogspot.com/2011/03/asciidoc-beamer.html[short
|
311
|
+
article in Russian] describing it.
|
312
|
+
- Lex Trotman has written
|
313
|
+
https://github.com/elextr/codiicsa[codiicsa], a program that
|
314
|
+
converts DocBook to AsciiDoc.
|
315
|
+
- Qingping Hou has written http://houqp.github.com/asciidoc-deckjs/[an
|
316
|
+
AsciiDoc backend for deck.js].
|
317
|
+
http://imakewebthings.github.com/deck.js/[deck.js] is a JavaScript
|
318
|
+
library for building modern HTML presentations (slideshows).
|
319
|
+
- The guys from O'Reilly Media have posted an
|
320
|
+
https://github.com/oreillymedia/docbook2asciidoc[XSL Stylesheet to
|
321
|
+
github] that converts DocBook to AsciiDoc.
|
322
|
+
|
323
|
+
Please let me know if any of these links need updating.
|
324
|
+
|
325
|
+
|
326
|
+
[[X6]]
|
327
|
+
Documents written using AsciiDoc
|
328
|
+
--------------------------------
|
329
|
+
Here are some documents I know of, if you know of more drop me a line
|
330
|
+
and I'll add them to the list.
|
331
|
+
|
332
|
+
- The book http://practicalunittesting.com/[Practical Unit Testing] by
|
333
|
+
Tomek Kaczanowski was
|
334
|
+
https://groups.google.com/group/asciidoc/browse_frm/thread/4ba13926262efa23[written
|
335
|
+
using Asciidoc].
|
336
|
+
|
337
|
+
- The book http://oreilly.com/catalog/9781449397296[Programming iOS 4]
|
338
|
+
by Matt Neuburg was written using AsciiDoc. Matt has
|
339
|
+
http://www.apeth.net/matt/iosbooktoolchain.html[written an article]
|
340
|
+
describing how he used AsciiDoc and other tools to write the book.
|
341
|
+
|
342
|
+
- The book
|
343
|
+
http://oreilly.com/catalog/9780596155957/index.html[Programming
|
344
|
+
Scala] by Dean Wampler and Alex Payne (O'Reilly) was
|
345
|
+
http://groups.google.com/group/asciidoc/browse_frm/thread/449f1199343f0e27[written
|
346
|
+
using Asciidoc].
|
347
|
+
|
348
|
+
- The http://www.ncfaculty.net/dogle/fishR/index.html[fishR] website
|
349
|
+
has a number of
|
350
|
+
http://www.ncfaculty.net/dogle/fishR/bookex/AIFFD/AIFFD.html[book
|
351
|
+
examples] written using AsciiDoc.
|
352
|
+
|
353
|
+
- The Neo4j graph database project uses Asciidoc, and the output is
|
354
|
+
published here: http://docs.neo4j.org/. The build process includes
|
355
|
+
live tested source code snippets and is described
|
356
|
+
http://groups.google.com/group/asciidoc/browse_thread/thread/49d570062fd3ff52[here].
|
357
|
+
|
358
|
+
- http://frugalware.org/[Frugalware Linux] uses AsciiDoc for
|
359
|
+
http://frugalware.org/docs[documentation].
|
360
|
+
- http://www.cherokee-project.com/doc/[Cherokee documentation].
|
361
|
+
|
362
|
+
- Henrik Maier produced this professional User manual using AsciiDoc:
|
363
|
+
http://www.proconx.com/assets/files/products/modg100/UMMBRG300-1101.pdf
|
364
|
+
|
365
|
+
- Henrik also produced this folded single page brochure format
|
366
|
+
example:
|
367
|
+
http://www.proconx.com/assets/files/products/modg100/IGMBRG300-1101-up.pdf
|
368
|
+
+
|
369
|
+
See this
|
370
|
+
http://groups.google.com/group/asciidoc/browse_thread/thread/16ab5a06864b934f[AsciiDoc
|
371
|
+
discussion group thread] for details.
|
372
|
+
|
373
|
+
- The
|
374
|
+
http://www.kernel.org/pub/software/scm/git/docs/user-manual.html[Git
|
375
|
+
User's Manual].
|
376
|
+
- 'Git Magic' +
|
377
|
+
http://www-cs-students.stanford.edu/~blynn/gitmagic/ +
|
378
|
+
http://github.com/blynn/gitmagic/tree/1e5780f658962f8f9b01638059b27275cfda095c
|
379
|
+
- 'CouchDB: The Definitive Guide' +
|
380
|
+
http://books.couchdb.org/relax/ +
|
381
|
+
http://groups.google.com/group/asciidoc/browse_thread/thread/a60f67cbbaf862aa/d214bf7fa2d538c4?lnk=gst&q=book#d214bf7fa2d538c4
|
382
|
+
- 'Ramaze Manual' +
|
383
|
+
http://book.ramaze.net/ +
|
384
|
+
http://github.com/manveru/ramaze-book/tree/master
|
385
|
+
- Some documentation about git by Nico Schottelius (in German)
|
386
|
+
http://nico.schotteli.us/papers/linux/git-firmen/.
|
387
|
+
- The http://www.netpromi.com/kirbybase_ruby.html[KirbyBase for Ruby]
|
388
|
+
database management system manual.
|
389
|
+
- The http://xpt.sourceforge.net/[*Nix Power Tools project] uses
|
390
|
+
AsciiDoc for documentation.
|
391
|
+
- The http://www.wesnoth.org/[Battle for Wesnoth] project uses
|
392
|
+
AsciiDoc for its http://www.wesnoth.org/wiki/WesnothManual[Manual]
|
393
|
+
in a number of different languages.
|
394
|
+
- Troy Hanson uses AsciiDoc to generate user guides for the
|
395
|
+
http://tpl.sourceforge.net/[tpl] and
|
396
|
+
http://uthash.sourceforge.net/[uthash] projects (the HTML versions
|
397
|
+
have a customised contents sidebar).
|
398
|
+
- http://volnitsky.com/[Leonid Volnitsky's site] is generated using
|
399
|
+
AsciiDoc and includes Leonid's matplotlib filter.
|
400
|
+
- http://www.weechat.org/[WeeChat] uses AsciiDoc for
|
401
|
+
http://www.weechat.org/doc[project documentation].
|
402
|
+
- http://www.clansuite.com/[Clansuite] uses AsciiDoc for
|
403
|
+
http://www.clansuite.com/documentation/[project documentation].
|
404
|
+
- The http://fc-solve.berlios.de/[Freecell Solver program] uses
|
405
|
+
AsciiDoc for its
|
406
|
+
http://fc-solve.berlios.de/docs/#distributed-docs[distributed
|
407
|
+
documentation].
|
408
|
+
- Eric Raymond's http://gpsd.berlios.de/AIVDM.html[AIVDM/AIVDO
|
409
|
+
protocol decoding] documentation is written using AsciiDoc.
|
410
|
+
- Dwight Schauer has written an http://lxc.teegra.net/[LXC HOWTO] in
|
411
|
+
AsciiDoc.
|
412
|
+
- The http://www.rowetel.com/ucasterisk/[Free Telephony Project]
|
413
|
+
website is generated using AsciiDoc.
|
414
|
+
- Warren Block has http://www.wonkity.com/~wblock/docs/[posted a
|
415
|
+
number of articles written using AsciiDoc].
|
416
|
+
- The http://code.google.com/p/waf/[Waf project's] 'Waf Book' is
|
417
|
+
written using AsciiDoc, there is an
|
418
|
+
http://waf.googlecode.com/svn/docs/wafbook/single.html[HTML] and a
|
419
|
+
http://waf.googlecode.com/svn/docs/wafbook/waf.pdf[PDF] version.
|
420
|
+
- The http://www.diffkit.org/[DiffKit] project's documentation and
|
421
|
+
website have been written using Asciidoc.
|
422
|
+
- The http://www.networkupstools.org[Network UPS Tools] project
|
423
|
+
http://www.networkupstools.org/documentation.html[documentation] is
|
424
|
+
an example of a large documentation project written using AsciiDoc.
|
425
|
+
- http://www.archlinux.org/pacman/[Pacman], the
|
426
|
+
http://www.archlinux.org/[Arch Linux] package manager, has been
|
427
|
+
documented using AsciiDoc.
|
428
|
+
- Suraj Kurapati has written a number of customized manuals for his
|
429
|
+
Open Source projects using AsciiDoc:
|
430
|
+
|
431
|
+
* http://snk.tuxfamily.org/lib/detest/
|
432
|
+
* http://snk.tuxfamily.org/lib/ember/
|
433
|
+
* http://snk.tuxfamily.org/lib/inochi/
|
434
|
+
* http://snk.tuxfamily.org/lib/rumai/
|
435
|
+
|
436
|
+
- The http://cxxtest.com/[CxxTest] project (unit testing for C++
|
437
|
+
language) has written its User Guide using AsciiDoc.
|
438
|
+
|
439
|
+
Please let me know if any of these links need updating.
|
440
|
+
|
441
|
+
|
442
|
+
DocBook 5.0 Backend
|
443
|
+
-------------------
|
444
|
+
Shlomi Fish has begun work on a DocBook 5.0 `docbook50.conf` backend
|
445
|
+
configuration file, you can find it
|
446
|
+
http://bitbucket.org/shlomif/asciidoc[here]. See also:
|
447
|
+
http://groups.google.com/group/asciidoc/browse_thread/thread/4386c7cc053d51a9
|
448
|
+
|
449
|
+
|
450
|
+
[[X1]]
|
451
|
+
LaTeX Backend
|
452
|
+
-------------
|
453
|
+
An experimental LaTeX backend was written for AsciiDoc in 2006 by
|
454
|
+
Benjamin Klum. Benjamin did a superhuman job (I admit it, I didn't
|
455
|
+
think this was doable due to AsciiDoc's SGML/XML bias). Owning to to
|
456
|
+
other commitments, Benjamin was unable to maintain this backend.
|
457
|
+
Here's link:latex-backend.html[Benjamin's original documentation].
|
458
|
+
Incompatibilities introduced after AsciiDoc 8.2.7 broke the LaTeX
|
459
|
+
backend.
|
460
|
+
|
461
|
+
In 2009 Geoff Eddy stepped up and updated the LaTeX backend, thanks to
|
462
|
+
Geoff's efforts it now works with AsciiDoc 8.4.3. Geoff's updated
|
463
|
+
`latex.conf` file shipped with AsciiDoc version 8.4.4. The backend
|
464
|
+
still has limitations and remains experimental (see
|
465
|
+
link:latex-bugs.html[Geoff's notes]).
|
466
|
+
|
467
|
+
It's probably also worth pointing out that LaTeX output can be
|
468
|
+
generated by passing AsciiDoc generated DocBook through `dblatex(1)`.
|
469
|
+
|
470
|
+
|
471
|
+
Patches and bug reports
|
472
|
+
-----------------------
|
473
|
+
Patches and bug reports are are encouraged, but please try to follow
|
474
|
+
these guidelines:
|
475
|
+
|
476
|
+
- Post bug reports and patches to the
|
477
|
+
http://groups.google.com/group/asciidoc[asciidoc discussion list],
|
478
|
+
this keeps things transparent and gives everyone a chance to
|
479
|
+
comment.
|
480
|
+
- The email subject line should be a specific and concise topic
|
481
|
+
summary. Commonly accepted subject line prefixes such as '[ANN]',
|
482
|
+
'[PATCH]' and '[SOLVED]' are good.
|
483
|
+
|
484
|
+
=== Bug reports
|
485
|
+
- When reporting problems please illustrate the problem with the
|
486
|
+
smallest possible example that replicates the issue (and please test
|
487
|
+
your example before posting). This technique will also help to
|
488
|
+
eliminate red herrings prior to posting.
|
489
|
+
- Paste the commands that you executed along with any relevant
|
490
|
+
outputs.
|
491
|
+
- Include the version of AsciiDoc and the platform you're running it
|
492
|
+
on.
|
493
|
+
- If you can program please consider writing a patch to fix the
|
494
|
+
problem.
|
495
|
+
|
496
|
+
=== Patches
|
497
|
+
- Keep patches small and atomic (one issue per patch) -- no patch
|
498
|
+
bombs.
|
499
|
+
- If possible test your patch against the current trunk.
|
500
|
+
- If your patch adds or modifies functionality include a short example
|
501
|
+
that illustrates the changes.
|
502
|
+
- Send patches in `diff -u` format, inline inside the mail message is
|
503
|
+
usually best; if it is a very long patch then send it as an
|
504
|
+
attachment.
|
505
|
+
- Include documentation updates if you're up to it; otherwise insert
|
506
|
+
'TODO' comments at relevant places in the documentation.
|
507
|
+
|