在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
答案 0 :(得分:1)
任何内容都不必是字符串。因此,不允许任何子章节。最好的选择是多个顶级章节,然后在减价内容中添加标题。