docs: restructure theme development documentation (#450)

重构主题开发的部分文档,合并模板路由和模板变量章节。

/kind documentation

```release-note
None
```
This commit is contained in:
Ryan Wang
2024-10-28 16:18:05 +08:00
committed by GitHub
parent 5ef6bc2712
commit cd44c8ba89
29 changed files with 309 additions and 29 deletions
@@ -27,7 +27,7 @@ my-theme
详细说明:
1. `/templates/` - 主题模板目录,存放主题模板文件,所有模板都需要放在这个目录。关于模板的详细说明,请查阅 [模板路由](./template-route-mapping)。
1. `/templates/` - 主题模板目录,存放主题模板文件,所有模板都需要放在这个目录。关于模板的详细说明,请查阅 [模板编写](./template-variables.md)。
2. `/templates/assets/` - 主题静态资源目录,存放主题的静态资源文件,目前静态资源文件只能放在这个目录,引用方式请查阅 [静态资源](./static-resources)。
3. `/theme.yaml` - 主题配置文件,配置主题的基本信息,如主题名称、版本、作者等。详细文档请查阅 [配置文件](./config)。
4. `/settings.yaml` - 主题设置定义文件,配置主题的设置项表单。详细文档请查阅 [设置选项](./settings)。