Files
tldr/pages.zh/common/asciidoctor.md

20 lines
664 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# asciidoctor
> 将AsciiDoc文件转换为可发布的格式。
> 更多信息:<https://docs.asciidoctor.org>。
- 将特定的`.adoc`文件转换为HTML默认输出格式
`asciidoctor {{path/to/file.adoc}}`
- 将特定的`.adoc`文件转换为HTML并链接CSS样式表
`asciidoctor -a stylesheet {{path/to/stylesheet.css}} {{path/to/file.adoc}}`
- 将特定的`.adoc`文件转换为可嵌入的HTML去掉除主体以外的所有内容
`asciidoctor --embedded {{path/to/file.adoc}}`
- 使用`asciidoctor-pdf`库将特定的`.adoc`文件转换为PDF
`asciidoctor --backend {{pdf}} --require {{asciidoctor-pdf}} {{path/to/file.adoc}}`