AsciidocFX支持的元数据
使用AsciidocFX编写文档时,可以添加如下的元数据
:title: XXX 产品文档
:author: wht. Co. Ltd.
:email: feedback@datacanvas.io
:revnumber: 3.1
:revdate: {docdate}
:revyear: 2019
:subject: DataCanvas
:keywords: Meachine Learning, Deep Learning
:doctype: book
:media: screen
ifeval::["{media}" != "prepress"]
:front-cover-image: image:book-cover.jpg[Front Cover,1050,1600]
endif::[]
:toc: left
:toclevels: 3
:icons: font
:lang: en
:language: javadocript
:experimental:
:pdf-fontsdir: ./styles/pdf/fonts
:pdf-stylesdir: ./styles/pdf
:pdf-style: infoq-screen
ifndef::ebook-format[:leveloffset: 1]
= {title}
AsciidocFX保存为文档时的注意事项
以保存为HTML为例,“Save”菜单在当前目录下生成同名的html文件,使用浏览器打开时,可以正常显示所有内容。当使用“Save as”保存在其它目录时,由于相对路径发生了变化,会导致图片等引用的本地文件无法正常显示。