IdeaSphere 1.0 的默认主题。
- 克隆本仓库,或者Git打包下载本仓库源代码
- 修改 project.json 主题信息文件
{
"name": "IdeaSphere",
"author": "IdeaSphere-team",
"briefly": "IdeaSphere 官方主题",
"website": "https://ideasphere.org",
"repository": "https://github.com/IdeaSphere-team/IdeaSphere-theme",
"logo": "static/img/logo.png",
"version": "1.0.0"
}project.json 信息解释:
- name: 必须,你的主题包名
- author: 必须,主题开发者名称
- briefly: 必须,主题包简述
- website: 可选,主题网站
- repository: 可选,主题开源仓库
- logo: 必须,默认位置可不写具体路径,若不是默认位置则需修改路径
- version: 必须,主题版本号
injector.json和material.json文件是可选配置文件
- injector.json: 配置某些功能页面注入到指定位置页面
- material.json: 配置加载功能相对应的页面
- 修改
templates和static文件夹下的文件
文件夹解释:
templats: 论坛html页面static: 论坛html引用的css样式、js脚本、图片等文件
- 主题分发:将
templates文件夹、static文件夹、project.json文件、injector.json和material.json文件(如果需要修改相关功能则一并打包)一起打包为zip压缩包文件