如何从 ASCII-Doc 文件生成带有菜单的网站?

How to generate website with menu from an ASCII-Doc file?

我安装了 AsciiDoctor 以从我的 ASCII-Doc 文件生成 html5- 网站。

到目前为止,我还没有找到生成文件的选项,例如http://www.asciidocfx.com/ or http://asciidoctor.org/docs/user-manual/(即 (1) 没有带日期的页脚,(2) 左侧的菜单和 (3) 链接的标题。)

(如何)我必须为此使用模板吗?

我不确定你所说的 "I have installed AsciiDoctor" 是什么意思,你使用的是 Ruby 版本、JavaScript 版本还是 JVM 版本 (Ruby + JRuby)?您是如何使用 Asciidoctor 的,是直接从命令行还是集成到其他构建系统中?

(1) 我认为(我不确定)如果将参数 docinfo1 设置为 true,就会创建页脚。参见 Footer docinfo files

(2) 左边的菜单叫TOC (table of content),你可能需要添加参数toc,值为left

(3) headers 上的 link 是在参数 sectanchors 的值为 true 时创建的。请参阅 Anchors 部分。