现在,顶级主题可以在 about.json 文件中指定子主题组件列表。例如:
{
"name": "Material Design Theme",
"about_url": "https://meta.discourse.org/t/material-design-stock-theme/47142",
"license_url": "https://github.com/discourse/material-design-stock-theme/blob/master/LICENSE.txt",
"components": ["https://github.com/discourse/discourse-brand-header", "https://github.com/Chaboi45/Take-a-break-component"]
.
.
.
}
目前存在以下限制:
- 所有子主题组件仅在首次安装时安装。
- 如果之后在
about.json中移除了组件,已安装的子主题组件不会被卸载。 - 如果手动删除了已安装的主题组件,系统将不会重新安装它。
- 无法为另一个主题组件指定子主题组件。