← 返回命令列表

Linux command

asciidoctor 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Convert

asciidoctor [document.adoc]

Example

asciidoctor-pdf [document.adoc]

Example

asciidoctor -o [output.html] [document.adoc]

Example

asciidoctor -b [docbook] [document.adoc]

Example

asciidoctor -S [secure] [document.adoc]

说明

asciidoctor is a fast text processor for converting AsciiDoc markup to HTML, DocBook, man pages, and other formats. It's a Ruby implementation of the AsciiDoc standard, supporting extensions and customization. AsciiDoc is a lightweight markup language for writing documentation, articles, books, and technical content.

参数

-b _backend_
Output backend (html5, docbook5, manpage)
-o _file_
Output file
-D _dir_
Output directory
-a _attr=val_
Set document attribute
-r _lib_
Require library/extension
-S _level_
Safe mode (unsafe, safe, server, secure)
-v, --verbose
Verbose output
--trace
Show backtrace on errors
-s, --no-header-footer
Output without HTML wrapper

FAQ

What is the asciidoctor command used for?

asciidoctor is a fast text processor for converting AsciiDoc markup to HTML, DocBook, man pages, and other formats. It's a Ruby implementation of the AsciiDoc standard, supporting extensions and customization. AsciiDoc is a lightweight markup language for writing documentation, articles, books, and technical content.

How do I run a basic asciidoctor example?

Run `asciidoctor [document.adoc]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -b _backend_ do in asciidoctor?

Output backend (html5, docbook5, manpage)