Introduction This document provides guidance on the use of the AsciiDoc® Markup language for producing The Open Group publications. It should be read in conjunction with A Handbook for Publications Development [I153]. Imagine if writing documentation was as simple as writing an email. It can be. That is the idea behind lightweight markup languages such as AsciiDoc. They offer a plain-text syntax, embellished with subtle, yet intuitive markup, that is designed for humans to read, write, and edit in raw form. The natural feel of the syntax keeps you focused on the content. Best of all, the plain text can quickly and easily be translated into output formats such as HTML5 and PDF. Source: Asciidoctor website, https://asciidoctor.org/docs/what-is-asciidoc/ Overview The AsciiDoc Markup Language is a lightweight, human-readable markup language used for writing structured documents. The key features of the language are as follows: Plain text syntax: Easy to write and read without special tools Rich formatting: Supports headings, lists, tables, code blocks, footnotes, cross-references, and more Modular documents: Allows content reuse through includes and variables Multiple output formats: Can be converted into HTML, PDF, EPUB, DocBook, and other formats Ideal for technical writing: Popular for documentation, books, and articles It is used to build The Open Group documents in a number of formats, including HTML, PDF, ePUB and output to be used with Antora generated web sites. What is Antora? Antora is a modular documentation site generator built specifically for technical writers and developers who write in the AsciiDoc markup language. It is designed to manage large, versioned, multi-repository documentation projects using a docs-as-code approach. Two examples of its use within The Open Group include the Portfolio of Digital Open Standards and The Open Group Standards Process Guide [WEB1]. What Is a Markup Language? A markup language is an approach to document development that tells computers how to structure, format, or display it. Instead of focusing on how content looks, markup languages describe what the text content is (such as headings, lists, links, or emphasis). They are widely used in web development, documentation, publishing, and data exchange. Examples include HTML for web pages, Markdown for lightweight documentation, AsciiDoc for technical writing, and XML for data storage and transport. The Pros of Using a Markup Language Human-readable: Most markup languages are easy to write and understand Portable: Content can be rendered in multiple formats (HTML, PDF, etc.) from the same source Separation of content and presentation: Encourages clean, maintainable documents Version control-friendly: Plain text works well with Git and other tools Automation-ready: Easily parsed and manipulated by scripts and tools, for build automation The Cons of Using a Markup Language Learning curve: The language can be complex to learn Not Wyswywig: A preview tool or renderer is needed to see the output Error-prone: Small syntax mistakes can break formatting or output Basic AsciiDoc Examples for Beginners As an introduction to the AsciiDoc Markup language we include some basic examples: Headings = Document Title == Section Level 1 === Section Level 2 ==== Section Level 3 Paragraphs and Emphasis This is a normal paragraph. *Bold text* and _italic text_ are easy. Produces: This is a normal paragraph. Bold text and italic text are easy. Lists * Unordered item 1 * Unordered item 2 . Ordered item 1 . Ordered item 2 Produces: Unordered item 1 Unordered item 2 Ordered item 1 Ordered item 2 Links https://asciidoctor.org[Visit Asciidoctor] Produces: Visit Asciidoctor Code Blocks [source, ruby] ---- puts 'Hello, World!' ---- Produces: puts 'Hello, World!' Images image::hello-world.png[Hello World Image] Blockquotes [quote, Albert Einstein] ____ Imagination is more important than knowledge. ____ Produces: Imagination is more important than knowledge. — Albert Einstein Admonitions (Notes, Tips, Warnings) NOTE: This is a helpful note. TIP: You can use `asciidoctor` to convert your file to HTML. WARNING: Don’t forget to install required diagram tools! Produces: This is a helpful note. You can use asciidoctor to convert your file to HTML. Don’t forget to install required diagram tools! Tables |=== | Name | Role | Location | Alice | Developer | London | Bob | Designer | Manchester | Carol | Manager | Bristol |=== Produces: Name Role Location Alice Developer London Bob Designer Manchester Carol Manager Bristol Referenced Documents Style Usage