Skip to content

IdeaSphere-team/IdeaSphere-theme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IdeaSphere-theme

IdeaSphere 1.0 的默认主题。

开发主题

  1. 克隆本仓库,或者Git打包下载本仓库源代码
  2. 修改 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: 必须,主题版本号
  1. injector.jsonmaterial.json 文件是可选配置文件
  • injector.json: 配置某些功能页面注入到指定位置页面
  • material.json: 配置加载功能相对应的页面
  1. 修改 templatesstatic 文件夹下的文件

文件夹解释:

  • templats: 论坛html页面
  • static: 论坛html引用的css样式、js脚本、图片等文件
  1. 主题分发:将 templates 文件夹、 static 文件夹、 project.json 文件、 injector.jsonmaterial.json 文件(如果需要修改相关功能则一并打包)一起打包为 zip压缩包文件

About

IdeaSphere 1.0 的默认主题

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published