--- title: An Example Book authors: - author: The FreeBSD Documentation Project copyright: 1995-2021 The FreeBSD Documentation Project releaseinfo: "" trademarks: ["general"] --- = An Example Book :doctype: book :toc: macro :toclevels: 2 :icons: font :xrefstyle: basic :relfileprefix: ../ :outfilesuffix: :sectnums: :sectnumlevels: 6 :partnums: :chapter-signifier: Chapter :part-signifier: Part :source-highlighter: rouge :experimental: :skip-front-matter: :book: true :pdf: false :chapters-path: content/en/books/bookname/ [abstract] Abstract Abstract section ''' toc::[] :sectnums!: include::{chapters-path}preface/_index.adoc[leveloffset=+1] :sectnums: include::{chapters-path}parti.adoc[lines=7..18] include::{chapters-path}chapter-name/_index.adoc[leveloffset=+1]
附录 A. 例子
目录
这些例子并不详尽 - 它们不包含所有可能需要使用的元素,尤其是在文档的首页中。 为了获得更多 AsciiDoctor 示例,请查看此文档和其他可在 Git **doc** 存储库中获取的文档的 AsciiDoc 源代码,或者在线获取,地址为 https://cgit.freebsd.org/doc/。
A.1. AsciiDoctor **book**
示例 1. AsciiDoctor **book**
A.2. AsciiDoctor **article**
示例 2. AsciiDoctor **article**
--- title: An Example Article authors: - author: Your name and surname email: [email protected] trademarks: ["general"] --- = An Example Article :doctype: article :toc: macro :toclevels: 1 :icons: font :sectnums: :sectnumlevels: 6 :source-highlighter: rouge :experimental: ''' toc::[] == My First Section This is the first section in my article. === My First Sub-Section This is the first sub-section in my article.
**最后修改于**: 2024 年 3 月 9 日,作者 Danilo G. Baio