如何在使用创建的 R 包文档的函数参考页面中不仅创建一级标题,还创建二级标题pkgdown
?我可以通过修改_pkgdown.yml
文件来做到这一点吗?
更多详情:
此处是 R 包(作为 ZIP 文件)的示例。它包含 3 个“hello”和 1 个“other”函数。我希望在最后一个打印屏幕中将<H1>
两级(第一级)部分“Hello”和“Other”以及“Hello”函数拆分为 2 个子部分(level )。<H2>
该项目包含_pkgdown.yml
具有这些设置的文件,这些设置控制参考页面的外观,也许可以调整此代码以获得所需的结果?:
destination: docs
reference:
# All 3 Hello function should be in a super section A, e.g., level <H1>
- title: "Hello A functions" # This should be subsection A-1, e.g., level <H2>
contents:
- hello-a1
- hello-a2
- title: "Hello B functions" # This should be subsection A-2, e.g., level <H2>
contents:
- hello-b1
# This should be in super section B, e.g., level <H1>
- title: "Other functions"
contents:
- other
我期望的输出类型应该类似于: