Jump to content
Wikipedia The Free Encyclopedia

AsciiDoc

From Wikipedia, the free encyclopedia
Human-readable document format
This article needs additional citations for verification . Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "AsciiDoc" – news · newspapers · books · scholar · JSTOR
(March 2014) (Learn how and when to remove this message)
AsciiDoc file format
Filename extensions
.adoc, .asciidoc, .txt
Internet media type
text/asciidoc, text/plain
Initial releaseNovember 25, 2002; 22 years ago (2002年11月25日)
Open format?Yes
Websiteasciidoc.org Edit this at Wikidata
Asciidoctor
Original author Ryan Waldron
Developers Dan Allen, Sarah White, et al.
Initial releaseJanuary 30, 2013; 12 years ago (2013年01月30日)
Stable release
2.0.23 Edit this on Wikidata / 17 May 2024
Repository github.com/asciidoctor
Written inRuby
Operating system Cross-platform
Type Documentation generator
License MIT
Websiteasciidoctor.org

AsciiDoc is a human-readable document format, semantically equivalent to DocBook XML, but using plain text mark-up conventions. AsciiDoc documents can be created using any text editor and read "as-is", or rendered to HTML or any other format supported by a DocBook tool-chain, i.e., PDF, TeX, Unix manpages, e-books, slide presentations, etc.[1] Common file extensions for AsciiDoc files are adoc[2] and historically txt (as encouraged by AsciiDoc's creator).[3]

The AsciiDoc format is being standardized by the Eclipse Foundation.[4] [5]

History

[edit ]

Early history

[edit ]
AsciiDoc.py
Original author Stuart Rackham
Developers Matthew Peveler, Dan Allen, Michel Krämer, et al.
Initial releaseNovember 25, 2002; 22 years ago (2002年11月25日)
Stable release
10.2.1 Edit this on Wikidata / 17 July 2024
Repository github.com/asciidoc/asciidoc-py3
Written inPython
Operating system Cross-platform
Type Documentation generator
License GPL v2
Websiteasciidoc-py.github.io

AsciiDoc was created in 2002 by Stuart Rackham, who published tools (asciidoc and a2x), written in the programming language Python to convert plain text, human readable files to commonly used published document formats.[1]

Implementations exist in Ruby (named Asciidoctor, released in 2013), the Java ecosystem via JRuby, the JavaScript ecosystem via Opal.js, and in Haskell and Go.

Standardizing and primacy of Asciidoctor (2019–present)

[edit ]

Since the start of the technical standardizing process in 2019, the Asciidoctor project has aimed to produce an independent, compatible implementation of the AsciiDoc specification in the making, with the support of Stuart Rackham, the original author of the language.[6] The official website of the AsciiDoc language has since begun linking to Asciidoctor's documentation of the language.

The start of the standardizing process in 2019 coincided with the release of Asciidoctor 2.0 and several parts of syntax being deprecated, such as single quotation marks (') to indicate italics.[7] Legacy syntax remains available through a compatibility mode.[8]

The original Python implementation by Stuart Rackham continues to be developed, and named AsciiDoc.py. Since 2021, its documentation describes it as legacy, and formally targets the older rendition of the language.[9]

Notable applications

[edit ]
[icon]
This section needs expansion. You can help by adding to it. (March 2025)

Most of the Git project documentation is written in AsciiDoc.[10]

Some of O'Reilly Media's books and e-books are authored using AsciiDoc mark-up.[11]

Red Hat's product documentation is written in AsciiDoc.

Asciidoctor is usable within GitHub [12] and GitLab.[13]

Example

[edit ]

The following shows text using AsciiDoc mark-up, and a rendering similar to that produced by an AsciiDoc processor:

AsciiDoc source text
= My Article
J. Smith
https://wikipedia.org[Wikipedia] is an
on-line encyclopedia, available in
English and *many* other languages.
== Software
You can install _package-name_ by using
the `gem` command:
 gem install package-name
== Hardware
Metals commonly used include:
* copper
* tin
* lead
HTML-rendered result
My Article

J. Smith

Wikipedia is an on-line encyclopedia, available in English and many other languages.

Software

You can install package-name by using the gem command:

gem install package-name
Hardware

Metals commonly used include:

  • copper
  • tin
  • lead

Tools

[edit ]
  • Antora – multi-repository documentation site generator for tech writers using git
  • AsciiBinder – (deprecated) documentation system built on Asciidoctor for people who have many docs to maintain and republish regularly
  • awestruct – static site generator inspired by Jekyll
  • Asciidoc FX – AsciiDoc Book Editor based on JavaFX 18
  • AsciiDocLIVE – free online AsciiDoc editor
  • DAPS – DocBook Authoring and Publishing Suite (DAPS) is command-line software to publish DocBook & AsciiDoc as HTML, PDF, and EPUB

See also

[edit ]

References

[edit ]
  1. ^ a b "AsciiDoc". Linuxlinks.com. Archived from the original on 2016年03月03日. Retrieved 2013年10月18日.
  2. ^ "AsciiDoc Recommended Practices". Asciidoctor.org. Retrieved 2020年03月20日.
  3. ^ "AsciiDoc Frequently Asked Questions". asciidoc.org. Retrieved 2020年03月20日.
  4. ^ "AsciiDoc Language". Eclipse.org. 27 July 2020.
  5. ^ "AsciiDoc Working Group Charter". Eclipse.org.
  6. ^ White, Sarah; Allen, Dan (2019年01月07日). "Starting the AsciiDoc Specification Journey". Asciidoctor.org. Retrieved 2025年03月31日.
  7. ^ "What's New in 2.0: Asciidoctor Docs". Asciidoctor.org. 2019年03月22日. Retrieved 2025年03月31日.
  8. ^ "Upgrade from Asciidoctor 1.5.x to 2.0" . Retrieved 2025年03月31日.
  9. ^ Peveler, Matthew (MasterOdin) (2021年02月09日). "Add small blurb on legacy nature of AsciiDoc.py". GitHub . Retrieved 2025年05月18日.
  10. ^ "Git wiki". Git SCM.
  11. ^ "AsciiDoc 101 (chapter 4 of Getting Started with Atlas)". Author Welcome Kit. O'Reilly Media. Archived from the original on 14 October 2017. Retrieved 19 May 2016.
  12. ^ Allen, Dan (2013年01月30日). "AsciiDoc, powered by Asciidoctor, returns to GitHub and its 5+ million repositories" . Retrieved 2025年03月31日.
  13. ^ "Asciidoc". GitLab User Docs. Archived from the original on 2019年07月22日. Retrieved 18 May 2025.
[edit ]

AltStyle によって変換されたページ (->オリジナル) /