RAML中的子章节?

时间:2018-11-21 15:06:45

标签: markdown github-flavored-markdown raml

在Github风格的RAML中,有没有一种方法可以在documentation标签中创建子章节?

例如,鉴于此:

documentation:
  - title: "Overview"
    content: !include documentation/overview.md

  - title: "Getting Started"
    content: !include documentation/getting-started.md

您能否在“入门”下添加两章,例如:

documentation:
  - title: "Overview"
    content: !include documentation/overview.md

  - title: "Getting Started"
    content: !include documentation/getting-started.md
       - title: "Intro 1"
         content: !include documentation/Intro_1.md
       - title: "Intro 2"
         content: !include documentation/Intro_2.md

1 个答案:

答案 0 :(得分:1)

任何内容都不必是字符串。因此,不允许任何子章节。最好的选择是多个顶级章节,然后在减价内容中添加标题。