【问题标题】:Can two asciidoc file content can be merged into one两个asciidoc文件内容可以合并成一个吗
【发布时间】:2018-12-20 05:51:18
【问题描述】:

我已经使用 spring-rest-docs 来生成项目的文档。 spring-rest-docs 生成了带有 .adoc 文件扩展名的 sn-p。 我想将两个 .adoc 文件内容合并到一个 .adoc 文件中。

【问题讨论】:

    标签: asciidoc spring-restdocs


    【解决方案1】:

    不要尝试合并它们,而是编写包含生成的文档的第三个文档。在本文档中,您可以对 asciidoc 处理器进行全局配置,并可能提供一些额外的文本或结构来将生成的内容粘合在一起。

    asciidoctor 手册中的第 28 章描述了include directivepartitioning large documents 上第 28.4 节的示例具有以下示例,其中单独的章节位于不同的文件中:

    = My book
    
    include::chapter01.adoc[]
    
    include::chapter02.adoc[]
    
    include::chapter03.adoc[]
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-12-14
      • 1970-01-01
      • 2016-12-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多