CINXE.COM

Asciidoctor Documentation Site

<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> <title>Asciidoctor Documentation Site</title> <link rel="stylesheet" href="./_/css/site.css"> <link rel="stylesheet" href="./_/css/home.css"> <meta name="generator" content="Antora 3.1.8"> <link rel="canonical" href="https://docs.asciidoctor.org/"> <meta property="og:url" content="https://docs.asciidoctor.org/"> <meta name="description" content="Home of the documentation for Asciidoctor and family. Find reference material, guides, and examples to write content in AsciiDoc and publish it using Asciidoctor."> <meta property="og:description" content="Home of the documentation for Asciidoctor and family. Find reference material, guides, and examples to write content in AsciiDoc and publish it using Asciidoctor."> <meta property="og:site_name" content="Asciidoctor Docs"> <meta name="twitter:card" content="summary_large_image"> <meta property="og:title" content="Asciidoctor Documentation Site"> <meta property="og:image" content="https://docs.asciidoctor.org/_/img/asciidoctor-og.png"> <meta name="twitter:site" content="@asciidoctor"> <meta name="page-spec" content="ROOT::index.adoc"> <link rel="icon" href="./_/img/favicon.ico" type="image/x-icon"> </head> <body class="article home"> <header class="header"> <nav class="navbar"> <div class="navbar-brand"> <a class="navbar-item logo" title="Asciidoctor" href="https://asciidoctor.org"><img src="./_/img/asciidoctor-logo.svg" alt="Asciidoctor" width="48"></a> <a class="navbar-item title" href="https://docs.asciidoctor.org/">Asciidoctor Docs</a> <button class="navbar-burger" aria-controls="topbar-nav" aria-expanded="false" aria-label="Toggle main menu"> <span></span> <span></span> <span></span> </button> </div> <div id="topbar-nav" class="navbar-menu"> <div class="navbar-end"> <div class="navbar-item search hide-for-print"> <div id="search" class="field"> <input class="query" type="text" placeholder="Search the docs" autofocus> </div> </div> <div class="navbar-item has-dropdown is-hoverable"> <div class="navbar-link">AsciiDoc</div> <div class="navbar-dropdown"> <a class="navbar-item" href="asciidoc/latest/">Language</a> <a class="navbar-item" href="asciidoc/latest/syntax-quick-reference/">Syntax Quick Reference</a> </div> </div> <div class="navbar-item has-dropdown is-hoverable"> <div class="navbar-link">Processing</div> <div class="navbar-dropdown"> <a class="navbar-item" href="asciidoctor/latest/">Asciidoctor <small>Ruby</small></a> <a class="navbar-item" href="asciidoctor.js/latest/">Asciidoctor.js <small>JavaScript</small></a> <a class="navbar-item" href="asciidoctorj/latest/">AsciidoctorJ <small>Java</small></a> </div> </div> <div class="navbar-item has-dropdown is-hoverable"> <div class="navbar-link">Extensions</div> <div class="navbar-dropdown"> <div class="navbar-item">Add-on Converters</div> <a class="navbar-item" href="pdf-converter/latest/">PDF <small>Ruby</small></a> <a class="navbar-item" href="epub3-converter/latest/">EPUB3 <small>Ruby</small></a> <a class="navbar-item" href="reveal.js-converter/latest/">reveal.js <small>Ruby, JavaScript</small></a> <hr class="navbar-divider"> <div class="navbar-item">Extended Syntax</div> <a class="navbar-item" href="diagram-extension/latest/">Asciidoctor Diagram <small>Ruby</small></a> </div> </div> <div class="navbar-item has-dropdown is-hoverable"> <div class="navbar-link">Tooling</div> <div class="navbar-dropdown is-right"> <div class="navbar-item">Build Automation</div> <a class="navbar-item" href="maven-tools/latest/">Maven Tools <small>Java</small></a> <a class="navbar-item" href="gradle-plugin/latest/">Gradle Plugin <small>Java</small></a> <a class="navbar-item" href="asciidoclet/latest/">Asciidoclet <small>Java</small></a> <hr class="navbar-divider"> <div class="navbar-item">Text Editors / Viewers</div> <a class="navbar-item" href="browser-extension/">Browser Extension</a> <a class="navbar-item" href="https://intellij-asciidoc-plugin.ahus1.de/docs" target="_blank" rel="noopener">IntelliJ Plugin</a> </div> </div> <div class="navbar-item has-dropdown is-hoverable"> <a class="navbar-item" href="about/get-help/" data-title="Support"> <span class="icon"><img src="./_/img/octicons-24.svg#view-comment-discussion"></span> </a> <div class="navbar-dropdown is-right"> <a class="navbar-item has-icon" href="https://chat.asciidoctor.org" target="_blank" rel="noopener"> <span class="icon"><img src="./_/img/octicons-16.svg#view-comment-discussion"></span> <span>Chat</span> </a> <!-- <a class="navbar-item has-icon" href="https://discuss.asciidoctor.org" target="_blank" rel="noopener"> <span class="icon"><img src="./_/img/octicons-16.svg#view-mail"></span> <span>List</span> </a> --> <a class="navbar-item has-icon" href="https://github.com/asciidoctor" target="_blank" rel="noopener"> <span class="icon"><img src="./_/img/octicons-16.svg#view-mark-github"></span> <span>Source</span> </a> <a class="navbar-item has-icon" href="https://twitter.com/asciidoctor" target="_blank" rel="noopener"> <span class="icon"><img src="./_/img/octicons-16.svg#view-hash"></span> <span>Tweets</span> </a> </div> </div> </div> </div> </nav> </header> <div class="body"> <div class="nav-container"> <aside class="nav"> <div class="panels"> <div class="nav-panel-explore is-active" data-panel="explore"> <div class="context"> <span class="title">Explore</span> <span class="version"></span> </div> <ul class="components"> <li class="component"> <a class="title" href="asciidoc/latest/">AsciiDoc</a> </li> <li class="component"> <a class="title" href="asciidoctor/latest/">Asciidoctor</a> <ul class="versions"> <li class="version is-latest"> <a href="asciidoctor/latest/">2.0</a> </li> </ul> </li> <li class="component"> <a class="title" href="asciidoctor.js/latest/">Asciidoctor.js</a> <ul class="versions"> <li class="version is-latest"> <a href="asciidoctor.js/latest/">3.0</a> </li> <li class="version"> <a href="asciidoctor.js/2.2/">2.2</a> </li> </ul> </li> <li class="component"> <a class="title" href="asciidoctorj/latest/">AsciidoctorJ</a> <ul class="versions"> <li class="version is-latest"> <a href="asciidoctorj/latest/">3.0</a> </li> <li class="version"> <a href="asciidoctorj/2.5/">2.5</a> </li> </ul> </li> <li class="component"> <a class="title" href="pdf-converter/latest/">Asciidoctor PDF</a> <ul class="versions"> <li class="version is-latest"> <a href="pdf-converter/latest/">2.3</a> </li> <li class="version"> <a href="pdf-converter/2.2/">2.2</a> </li> <li class="version"> <a href="pdf-converter/2.1/">2.1</a> </li> <li class="version"> <a href="pdf-converter/2.0/">2.0</a> </li> </ul> </li> <li class="component"> <a class="title" href="epub3-converter/latest/">Asciidoctor EPUB3</a> <ul class="versions"> <li class="version is-latest"> <a href="epub3-converter/latest/">2.1</a> </li> </ul> </li> <li class="component"> <a class="title" href="reveal.js-converter/latest/">Asciidoctor reveal.js</a> <ul class="versions"> <li class="version is-latest"> <a href="reveal.js-converter/latest/">5.0</a> </li> <li class="version"> <a href="reveal.js-converter/4.1/">4.1</a> </li> </ul> </li> <li class="component"> <a class="title" href="maven-tools/latest/">Maven Tools</a> <ul class="versions"> <li class="version is-latest"> <a href="maven-tools/latest/">3.1</a> </li> <li class="version"> <a href="maven-tools/2.2/">2.2</a> </li> </ul> </li> <li class="component"> <a class="title" href="gradle-plugin/latest/">Gradle Plugin Suite</a> <ul class="versions"> <li class="version is-latest"> <a href="gradle-plugin/latest/">4.0</a> </li> </ul> </li> <li class="component"> <a class="title" href="asciidoclet/latest/">Asciidoclet</a> <ul class="versions"> <li class="version is-latest"> <a href="asciidoclet/latest/">2.0</a> </li> <li class="version"> <a href="asciidoclet/1.5.6/">1.5.6</a> </li> </ul> </li> <li class="component"> <a class="title" href="diagram-extension/latest/">Asciidoctor Diagram</a> <ul class="versions"> <li class="version is-latest"> <a href="diagram-extension/latest/">2.2</a> </li> </ul> </li> <li class="component"> <a class="title" href="browser-extension/">Browser Extension</a> </li> <li class="component"> <a class="title" href="about/">Community</a> </li> </ul> </div> </div> </aside> </div> <main class="article"> <div class="toolbar" role="navigation"> <button class="nav-toggle"></button> <a href="./" class="home-link is-current" title="Home"></a> <nav class="breadcrumbs" aria-label="breadcrumbs"> </nav> <div class="edit-this-page"><a href="https://github.com/asciidoctor/asciidoctor-community-docs/edit/main/home/modules/ROOT/pages/index.adoc">Edit this Page</a></div> </div> <div class="content"> <article class="doc ROOT"> <h1 class="page">Asciidoctor Documentation Site</h1> <div class="paragraph"> <p>Welcome to the Asciidoctor documentation site! Here <a href="#search-tips">you can find</a> the reference material, guides, and examples to write content in AsciiDoc and publish it using Asciidoctor. This documentation will help you start your journey with AsciiDoc or dive deeper if you&#8217;re already well on your way.</p> </div> <div class="openblock panel"> <div class="content"> <h2 id="learn-about-asciidoc" class="discrete"><a href="asciidoc/latest/" class="xref page">Learn about AsciiDoc</a></h2> <div class="paragraph"> <p>AsciiDoc is a plain text authoring format (i.e., lightweight markup language) for writing technical content such as documentation, articles, and books. If you&#8217;re just starting out with AsciiDoc, or want to discover what it&#8217;s all about, head over to the <a href="asciidoc/latest/" class="xref page">documentation for the AsciiDoc Language</a>. You&#8217;ll learn everything from how to make your first AsciiDoc document to how to use advanced language features such as list continuations and tailoring substitutions.</p> </div> <div class="paragraph"> <p>If you need a condensed refresher, or want a glimpse of what AsciiDoc has to offer, check out the <a href="asciidoc/latest/syntax-quick-reference/" class="xref page">syntax quick reference</a>. You can also find a side-by-side <a href="asciidoc/latest/asciidoc-vs-markdown/" class="xref page">comparison with Markdown</a> if you&#8217;re looking to upgrade.</p> </div> </div> </div> <div class="openblock panel"> <div class="content"> <h2 id="process-your-asciidoc-content" class="discrete"><a href="asciidoctor/latest/" class="xref page">Process your AsciiDoc content</a></h2> <div class="paragraph"> <p>The AsciiDoc language documentation is primarily about the source you type to compose a document. Once you&#8217;re done writing and want to publish your AsciiDoc document, you&#8217;ll need an AsciiDoc processor. That&#8217;s where Asciidoctor fits in.</p> </div> <div class="paragraph"> <p><a href="asciidoctor/latest/" class="xref page">Asciidoctor</a> is the core AsciiDoc processor. It reads the AsciiDoc source, parses it into a document model, and converts it to a publishable format such as HTML using a converter. Asciidoctor has both a <a href="asciidoctor/latest/cli/" class="xref page">CLI</a> and an <a href="asciidoctor/latest/api/" class="xref page">API</a> that you can use to invoke a built-in converter (HTML, DocBook, man page) or an add-on converter. Asciidoctor enriches the HTML it produces from AsciiDoc by applying a <a href="asciidoctor/latest/html-backend/default-stylesheet/" class="xref page">default stylesheet</a>, adding stylistic icons, and <a href="asciidoctor/latest/syntax-highlighting/" class="xref page">syntax highlighting</a> source blocks.</p> </div> </div> </div> <h3 id="choose-a-processor" class="discrete">Choose a processor</h3> <div class="paragraph"> <p>There are three variants of the core Asciidoctor processor that all share the same code base. With few exceptions, these variants all provide the full Asciidoctor experience. From these three implementations extend a host of extensions, build tool integrations, and tooling plugins in the <a href="about/" class="xref page">Asciidoctor community</a> and beyond. Choose the one that best suits the language platform you&#8217;re using.</p> </div> <div class="dlist grid has-emblems"> <dl> <dt class="hdlist1"><a href="asciidoctor/latest/" class="xref page">Asciidoctor</a> <span class="emblem">Ruby</span></dt> <dd> <p>The original code base enables you to run Asciidoctor using any Ruby implementation, including C Ruby, JRuby, and TruffleRuby. JRuby and TruffleRuby allow you to use Asciidoctor on a JVM.</p> </dd> <dt class="hdlist1"><a href="asciidoctor.js/latest/" class="xref page">Asciidoctor.js</a> <span class="emblem">JavaScript</span></dt> <dd> <p>Transpiles Asciidoctor into JavaScript so you can run it in the browser or a Node.js application. It provides a CLI as well as a porcelain API for methods in the Asciidoctor document model and even enables you to write Asciidoctor extensions in JavaScript.</p> </dd> <dt class="hdlist1"><a href="asciidoctorj/latest/" class="xref page">AsciidoctorJ</a> <span class="emblem">Java/JVM</span></dt> <dd> <p>A Java library that encapsulates the use of JRuby to load and run Asciidoctor on the JVM. It provides a CLI as well as native Java API wrappers for all of the Asciidoctor APIs and even enables you to write Asciidoctor extensions in Java.</p> </dd> </dl> </div> <h3 id="explore-asciidoctor" class="discrete">Explore Asciidoctor</h3> <div class="dlist grid"> <dl> <dt class="hdlist1">Build automation</dt> <dd> <p>Convert your content from AsciiDoc automatically when you run your build. Encapsulate assets, configuration profiles, and extensions for your publishing process in your build scripts. Even extract and convert AsciiDoc inside Javadoc comments or include snippets from your test suite.</p> <div class="ulist"> <ul> <li> <p><a href="maven-tools/latest/" class="xref page">Maven tools</a></p> </li> <li> <p><a href="asciidoclet/latest/" class="xref page">Asciidoclet (for Javadoc)</a></p> </li> </ul> </div> </dd> <dt class="hdlist1">Extensions</dt> <dd> <p>Author HTML slide presentations in AsciiDoc without having to wrestle with the clutter of HTML or add diagrams to the output file that are generated from plain text markup inside your AsciiDoc document using extensions. The possiblities are boundless!</p> <div class="ulist"> <ul> <li> <p><a href="reveal.js-converter/latest/" class="xref page">reveal.js converter</a></p> </li> <li> <p><a href="diagram-extension/latest/" class="xref page">Diagram extension</a></p> </li> </ul> </div> </dd> <dt class="hdlist1">Site generation</dt> <dd> <p>Want to build a documentation site like this one? Write the content for the site in AsciiDoc. A static site generator delegates to an AsciiDoc processor to convert the AsciiDoc files to embedded HTML, then applies a template to that HTML to generate pages for the site.</p> <div class="ulist"> <ul> <li> <p><a href="https://antora.org" target="_blank" rel="noopener">Antora</a></p> </li> </ul> </div> </dd> <dt class="hdlist1">Essential reference</dt> <dd> <p>Keep this essential reference material for writing and publishing content with AsciiDoc and Asciidoctor close at hand.</p> <div class="ulist"> <ul> <li> <p><a href="asciidoc/latest/syntax-quick-reference/" class="xref page">AsciiDoc syntax quick reference</a></p> </li> <li> <p><a href="asciidoc/latest/attributes/document-attributes-ref/" class="xref page">Document attributes</a></p> </li> <li> <p><a href="asciidoctor/latest/cli/" class="xref page">CLI reference</a></p> </li> <li> <p><a href="asciidoctor/latest/api/" class="xref page">API reference</a></p> </li> </ul> </div> </dd> </dl> </div> <h3 id="search-tips" class="discrete">How to search the docs</h3> <div class="paragraph"> <p>On any page, you can press <kbd>s</kbd> or <span class="keyseq"><kbd>Ctrl</kbd>+<kbd>/</kbd></span> to focus the search box. Enter one or more terms (i.e., a query) to search the documentation. Alternately, you can press <span class="keyseq"><kbd>Ctrl</kbd>+<kbd>&lt;</kbd></span> (i.e., <span class="keyseq"><kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>,</kbd></span> on a US keyboard) to restore the previous search.</p> </div> <div class="paragraph"> <p>As you type your query, the search results will be displayed in a panel immediately below the search box. You can browse the list of search results and navigate to a result using either the mouse or the keyboard.</p> </div> <div class="paragraph"> <p>To navigate to a result in the current tab using the mouse, hover over it with the mouse cursor and click on it using the left mouse button. If you want to keep the search results open while you&#8217;re looking for the best result, you can open the result in a new tab. To open a result in a new tab, either hold down <kbd>Ctrl</kbd> when you click the result, or right click on it and select "Open link in new tab". To clear the search, click anywhere outside of the panel of search results.</p> </div> <div class="paragraph"> <p>To navigate to a result using the keyboard, first use the up and down arrow keys to choose a result. This action will highlight the current result with a light blue selection box. You can then press <kbd>Enter</kbd> when the result is highlighted to navigate to that result in the current tab. To open a result in a new tab, press <span class="keyseq"><kbd>Ctrl</kbd>+<kbd>Enter</kbd></span> instead. To clear the search, press <kbd>Esc</kbd>.</p> </div> <div class="paragraph"> <p>The search will look for results using fuzzy matching. That means it will locate pages with words or phrases that are close to what you entered, but not exactly. This strategy helps bridge the gap between your terminology or phrasing with that used in the documentation. If you want to look for an exact match, enclose the query in double quotes (e.g., <code>"the details of the syntax"</code>). You can also quote individual terms to disable the typo tolerance (e.g., <code>"toc" position</code>). This strategy helps you to find exactly what you&#8217;re looking for with no false positives. However, it will yield less results. Another way to narrow the results is to prefix one or more terms with <code>-</code> (e.g., <code>-document</code>). Adding this prefix will exclude results that contain that term.</p> </div> <div class="paragraph"> <p>By default, the search looks for results across the whole documentation site. If you want to limit the scope of the search to the documentation for the version of the project you&#8217;re currently looking at, tick the "In this project" checkbox. You can toggle this checkbox when the search results are open to compare the results for the whole site with those for the current project version.</p> </div> </article> </div> </main> </div> <footer class="footer"> <div class="footer-main"> <figure class="footer-brand"> <a class="logo" href="https://asciidoctor.org" target="_blank" rel="noopener"><img src="./_/img/asciidoctor-logo.svg" alt="Asciidoctor" width="48"></a> <figcaption class="footer-brand-name"><a href="https://asciidoctor.org" target="_blank" rel="noopener">Asciidoctor</a></figcaption> </figure> <ul class="footer-brand-links"> <!-- <li><a href="https://asciidoctor.org" target="_blank" rel="noopener">Home</a></li> --> <li><a href="https://docs.asciidoctor.org">Docs</a></li> <li><a href="https://chat.asciidoctor.org" target="_blank" rel="noopener">Chat</a></li> <li><a href="https://github.com/asciidoctor" target="_blank" rel="noopener">Source</a></li> <li><a href="https://discuss.asciidoctor.org" target="_blank" rel="noopener">List (archive)</a></li> </ul> <p class="footer-brand-follow"> <a href="https://twitter.com/asciidoctor" title="Follow us on Twitter" target="_blank" rel="noopener"><img src="./_/img/twitter-logo.svg" alt="Twitter logo" class="logo" width="28"><span class="handle">@asciidoctor</span></a> </p> </div> <div class="footer-legal"> <p>Copyright © 2024 Dan Allen, Sarah White, and individual Asciidoctor contributors. Except where noted, the content is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license.</p> <p>The <a href="https://github.com/asciidoctor/asciidoctor-docs-ui" target="_blank" rel="noopener">UI for this site</a> is derived from the Antora default UI and is licensed under the MPL-2.0 license. Several icons are imported from <a href="https://primer.style/octicons/" target="_blank" rel="noopener">Octicons</a> and are licensed under the MIT license.</p> <p>AsciiDoc® and AsciiDoc Language™ are trademarks of the Eclipse Foundation, Inc.</p> </div> <div class="footer-thanks"> <p>Thanks to our <a href="https://asciidoctor.org/supporters/" target="_blank" rel="noopener">backers</a> and <a href="https://asciidoctor.org/contributors/" target="_blank" rel="noopener">contributors</a> for helping to make this project possible. Additional thanks to:</p> <p class="badges"> <a href="https://opendevise.com" title="Development support by OpenDevise" target="_blank" rel="noopener"><img src="https://secure.gravatar.com/avatar/823717a797dbd78ceff7b26aa397f383.png?size=80" alt="OpenDevise Logo" width="30"></a> <a href="https://zulip.com" title="Chat powered by Zulip" target="_blank" rel="noopener"><img src="./_/img/zulip-logo.svg" alt="Zulip logo" width="30"></a> <a href="https://algolia.com/docsearch" title="Search by Algolia DocSearch" target="_blank" rel="noopener"><img src="./_/img/algolia-logo.svg" alt="Algolia logo" width="30"></a> <a href="https://netlify.com" title="Deploys by Netlify" target="_blank" rel="noopener"><img src="./_/img/netlify-logo.svg" alt="Deploys by Netlify" width="67"></a> </p> <p>Authored in <a href="https://asciidoc.org" target="_blank" rel="noopener">AsciiDoc</a>.<br>Produced by <a href="https://antora.org" target="_blank" rel="noopener">Antora</a> and <a href="https://asciidoctor.org" target="_blank" rel="noopener">Asciidoctor</a>.</p> </div> </footer> <script id="site-script" src="./_/js/site.js" data-ui-root-path="./_"></script> <script async src="./_/js/vendor/highlight.js"></script> <script async id="search-script" src="./_/js/vendor/docsearch.js" data-app-id="V1SEVEBOXX" data-api-key="02ab3d2d0cab4dec119447e14abdd3bc" data-index-name="asciidoctor-docs" data-stylesheet="./_/css/vendor/docsearch.css"></script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10