我可以让带有 `header_footer` 的文档的目录显示为 false 吗?
Can I make the toc show up for documents with `header_footer` as false?
我在网页中嵌入了一些 adoc 文件,所以我不想拥有完整的 header_footer
内容(html
/body
/等... ),但这似乎是我在使用 asciidoctor gem 转换 adoc 文件时可以让内容 table 显示在 adoc 文件中的唯一方法。有没有办法两者兼得?我试着查看源代码,但没有看到任何现成的东西。
我不确定,但我认为 this answer written by Dan Allen about Jekyll 对你的情况也有效:
In that scenario, the only toc position available are "preamble" and "macro". The first puts the toc in the preamble, the second at the location of the toc::[] macro. I usually recommend using the toc macro.
我在网页中嵌入了一些 adoc 文件,所以我不想拥有完整的 header_footer
内容(html
/body
/等... ),但这似乎是我在使用 asciidoctor gem 转换 adoc 文件时可以让内容 table 显示在 adoc 文件中的唯一方法。有没有办法两者兼得?我试着查看源代码,但没有看到任何现成的东西。
我不确定,但我认为 this answer written by Dan Allen about Jekyll 对你的情况也有效:
In that scenario, the only toc position available are "preamble" and "macro". The first puts the toc in the preamble, the second at the location of the toc::[] macro. I usually recommend using the toc macro.