Skip to content

Commit

Permalink
chore: 0.4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
zkz098 committed Jul 5, 2024
1 parent aefc1b9 commit 5c7a07b
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 98 deletions.
25 changes: 1 addition & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@

shokaX的社区资源导航和插件仓库为[awesome-shokaX](https://github.com/theme-shoka-x/awesome-shokaX)

## 技术栈
![TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=for-the-badge&logo=typescript&logoColor=white)
![Vue.js](https://img.shields.io/badge/vuejs-%2335495e.svg?style=for-the-badge&logo=vuedotjs&logoColor=%234FC08D)
![Pug](https://img.shields.io/badge/Pug-FFF?style=for-the-badge&logo=pug&logoColor=A86454)
![Stylus](https://img.shields.io/badge/stylus-%23ff6347.svg?style=for-the-badge&logo=stylus&logoColor=white)

## 💬 和shoka的区别
原先shoka使用了javascript+Native+nunjucks的技术 \
而shokaX则使用了typescript+Vue 3+Pug的技术搭配 \
Expand All @@ -43,31 +37,14 @@ shokaX的社区资源导航和插件仓库为[awesome-shokaX](https://github.com

## 🔧 如何安装?
注意: 本项目需要 node.js 18.x 或更高版本才能运行 \
建议使用[ShokaX-CLI](https://github.com/zkz098/shokaX-CLI) ,执行下列命令即可:
```bash
npm i shokax-cli --location=global
# hexo init 初始化环境
SXC install shokaX
```
[点此](https://docs.kaitaku.xyz/guide/#%E9%85%8D%E7%BD%AE%E4%B8%BB%E9%A2%98)以进行下一步配置
见文档中[如何安装](https://docs-hexo.shokax.top/getting-started/)部分

## 📚子项目
- [ShokaX docs](https://github.com/theme-shoka-x/shokaX-docs) ShokaX 主题文档 (正在编写中,欢迎加入!)
- [HRMNMI](https://github.com/theme-shoka-x/hexo-renderer-multi-next-markdown-it) ShokaX 正在使用的 markdown 渲染器 (等待重构)
- [ShokaX CLI](https://github.com/theme-shoka-x/shokaX-CLI) ShokaX 命令行安装程序
- [ShokaX Pjax](https://github.com/theme-shoka-x/theme-shokax-pjax) ShokaX 提供的高效 Pjax 实现
- [ShokaX Anime](https://github.com/theme-shoka-x/theme-shokax-anime) ShokaX 提供的精简版 Anime.js 实现

## 🛠️二次开发
[ShokaX官方开发文档](https://docs.kaitaku.xyz/develop/basic/)

参与开发建议阅读的文档:
- [Hexo 官方文档](https://hexo.io/zh-cn/docs/templates)
- [Stylus 中文网](http://stylus.bootcss.com/)
- [Pug 模板引擎中文文档](https://www.pugjs.cn/api/getting-started.html)
- [Typescript 中文网](https://www.tslang.cn/docs/home.html)
- [Easy hexo](https://easyhexo.com/)

# [许可证](https://github.com/theme-shoka-x/hexo-theme-shokaX/blob/main/LICENSE)
许可证: AGPL 3 or later

Expand Down
100 changes: 42 additions & 58 deletions README_en.MD
Original file line number Diff line number Diff line change
@@ -1,91 +1,75 @@
# 📣 Announcement
* [Your sites using the ShokaX and Shoka themes may be experiencing a Supply Chain Attack.](https://github.com/theme-shoka-x/hexo-theme-shokaX/discussions/293)
* [ShokaX is looking for community maintainers](https://github.com/theme-shoka-x/hexo-theme-shokaX/discussions/137)
[Your ShokaX and Shoka sites might be under a supply chain attack](https://github.com/theme-shoka-x/hexo-theme-shokaX/discussions/293) \
[Survey on ShokaX deployment platform and Astro migration](https://github.com/theme-shoka-x/hexo-theme-shokaX/discussions/229)

# hexo-theme-shokaX
![LICENSE](https://img.shields.io/github/license/theme-shoka-x/hexo-theme-shokaX)
![stars](https://img.shields.io/github/stars/theme-shoka-x/hexo-theme-shokaX)
![version](https://shields.io/npm/v/hexo-theme-shokax)
![build](https://img.shields.io/github/actions/workflow/status/theme-shoka-x/hexo-theme-shokaX/build-theme.yml)

#### Language: [简体中文](./README.md) | English \
This project is a fork (spiritual successor) of Shoka, aimed at improving performance and optimizing the modified experience. \
The reason for its creation is that Shoka has not been updated for two years, accumulating a large number of bugs and feature requests.
#### Language: Simplified Chinese | [English](./README_en.MD) \
This project is a secondary development version of Shoka (considered a spiritual successor), dedicated to improving performance and optimizing the custom modification experience. \
The reason for its creation is that Shoka hasn't been updated for three years, accumulating a large number of bugs and feature requests.

The community resource guide and plugin repository for shokaX are available at [awesome-shokaX](https://github.com/theme-shoka-x/awesome-shokaX)

## Technology Stack
![TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=for-the-badge&logo=typescript&logoColor=white)
![Vue.js](https://img.shields.io/badge/vuejs-%2335495e.svg?style=for-the-badge&logo=vuedotjs&logoColor=%234FC08D)
![Pug](https://img.shields.io/badge/Pug-FFF?style=for-the-badge&logo=pug&logoColor=A86454)
![Stylus](https://img.shields.io/badge/stylus-%23ff6347.svg?style=for-the-badge&logo=stylus&logoColor=white)
ShokaX's community resource guide and plugin repository can be found at [awesome-shokaX](https://github.com/theme-shoka-x/awesome-shokaX).

## 💬 Differences from Shoka
The original Shoka used a combination of JavaScript + Native + Nunjucks technologies. \
ShokaX, on the other hand, uses TypeScript + Vue 3 + Pug technologies and has changed many hard-to-access CDN links.
The original Shoka used javascript+Native+nunjucks technology, \
while ShokaX uses typescript+Vue 3+Pug technology. \
Many inaccessible CDN links have been changed.

## ✨ Feature List

| Feature | Status | Feature | Status |
|:-------------------------------:|:------:|:------------------------------:|:------:|
| PWA Support || JSD Split ||
| Injection API || Community Plugin System ||
| Custom Fonts |* | Custom Styles |* |
| Multiple Comment System Support || AI-generated Article Summaries | 🔬 |
| Bottom Record Number || Custom Footer |* |
| CSS Gradient Cover || TypeScript Support ||
| Feature Name | Status | Feature Name | Status |
|:--------------------------------:|:------:|:----------------------------:|:------:|
| PWA Support || JSD Split ||
| API Injection || Community Plugin System ||
| Custom Fonts |* | Custom Styles |* |
| Multiple Comment Systems Support || AI-Generated Article Summary | 🔬 |
| Footer Record Number || Custom Footer |* |
| CSS Gradient Cover || Typescript Support ||

Notes:
- *: Requires implementation using Injection API
- 🔬: In experimentation, may have issues

## 🔧 How to Install
Note: This project requires node.js 18.x or higher to run. \
It is recommended to use [ShokaX-CLI](https://github.com/zkz098/shokaX-CLI) \
[Click here](https://docs.kaitaku.xyz/en/guide/) for the next configuration steps.

## 📚 Sub-projects
- [ShokaX docs](https://github.com/theme-shoka-x/shokaX-docs) ShokaX Theme Documentation (work in progress, contributions welcome!)
- [HRMNMI](https://github.com/theme-shoka-x/hexo-renderer-multi-next-markdown-it) The markdown renderer used by ShokaX (awaiting refactoring)
- [ShokaX CLI](https://github.com/theme-shoka-x/shokaX-CLI) ShokaX Command Line Installer
- [ShokaX Pjax](https://github.com/theme-shoka-x/theme-shokax-pjax) Efficient Pjax implementation by ShokaX
- [ShokaX Anime](https://github.com/theme-shoka-x/theme-shokax-anime) Minimalistic Anime.js implementation by ShokaX

## 🛠️ Development
[ShokaX Official Development Documentation](https://docs.kaitaku.xyz/develop/basic/)

Recommended reading for contributing:
- [Hexo Official Documentation]([https://hexo.io/zh-cn/docs/templates](https://hexo.io/docs/templates.html))
- [Stylus Documentation](https://stylus-lang.com/)
- [Stylus Chinese Documentation](https://stylus.bootcss.com/)
- [Pug Template Engine Chinese Documentation](https://www.pugjs.cn/api/getting-started.html)
- [TypeScript Documentation](https://www.typescriptlang.org/docs/)
- [TypeScript Chinese Documentation](https://www.tslang.cn/docs/home.html)
- [Easy Hexo](https://easyhexo.com/)
- *: Requires API injection
- 🔬: Experimental, may have issues

## 🔧 How to Install?
Note: This project requires node.js version 18.x or higher to run. \
See the [installation guide](https://docs-hexo.shokax.top/getting-started/) in the documentation.

## 📚 Sub-Projects
- [ShokaX docs](https://github.com/theme-shoka-x/shokaX-docs) ShokaX theme documentation (currently being written, feel free to join!)
- [HRMNMI](https://github.com/theme-shoka-x/hexo-renderer-multi-next-markdown-it) Markdown renderer used by ShokaX (awaiting refactoring)
- [ShokaX Pjax](https://github.com/theme-shoka-x/theme-shokax-pjax) Efficient Pjax implementation provided by ShokaX
- [ShokaX Anime](https://github.com/theme-shoka-x/theme-shokax-anime) Simplified version of Anime.js provided by ShokaX

# [License](https://github.com/theme-shoka-x/hexo-theme-shokaX/blob/main/LICENSE)
License: AGPL 3 or later

## Special Note
The primary purpose of the AGPL license is to restrict distribution after modification, preventing unauthorized secondary modification for commercial purposes. \
Modifications to the source code **must** be open-sourced, as per the AGPL license. Building a website requires open-sourcing modified parts.
## Special Notes
The AGPL license primarily aims to restrict modified distribution behavior to avoid unauthorized secondary modifications and commercial packaging. \
Any modifications to the source code **must** be open-sourced because, according to the AGPL license, building a website requires the modified portions to be open-sourced.

## Usage Special Note
In accordance with AGPLv3 Section 7, we have added some additional terms. \
Please see [Usage Restrictions](./UsageRestrictions.md). Using ShokaX implies that you are aware of the contents of this file.
## Special Usage Instructions
According to AGPLv3 Section 7, we have added some additional terms: \
Please see [Usage Restrictions](./UsageRestrictions.md). By using ShokaX, you acknowledge this file's content.

# Acknowledgments
# Acknowledgements
## Open Source Projects
| Name | Author | Description |
|:----------------:|:-----------------:|:--------------------------------------------:|
| Hexo | Hexo contributors | Provided a solid foundation for this project |
| Hexo | Hexo contributors | Provided a great foundation for this project |
| hexo-theme-shoka | amehime | Parent theme of this project |

## Developers
[![](https://contributors-img.web.app/image?repo=theme-shoka-x/hexo-theme-shokaX)](https://github.com/theme-shoka-x/hexo-theme-shokaX/graphs/contributors)
Hexo theme: \
[![](https://contributors-img.web.app/image?repo=theme-shoka-x/hexo-theme-shokaX)](https://github.com/theme-shoka-x/hexo-theme-shokaX/graphs/contributors) \
ShokaX documentation: \
[![](https://contributors-img.web.app/image?repo=theme-shoka-x/shokaX-docs)](https://github.com/theme-shoka-x/shokaX-docs/graphs/contributors)

## Special Thanks
[<img src="https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.png" width="25%">](https://jb.gg/OpenSourceSupport)

## Other Information
![Star history chart](https://api.star-history.com/svg?repos=theme-shoka-x/hexo-theme-shokaX&type=Date)
![Star history chart](https://api.star-history.com/svg?repos=theme-shoka-x/hexo-theme-shokaX&type=Date)
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,9 @@ vendors:
pace: bytedance|pace/1.2.4/pace.min.js
async_js:
fancybox: bytedance|??jquery/3.5.1/jquery.min.js,fancybox/3.5.7/jquery.fancybox.min.js,justifiedGallery/3.8.1/js/jquery.justifiedGallery.min.js
# copy_tex: npm_webcache|[email protected]/dist/contrib/copy-tex.min.js
copy_tex: npm_webcache|[email protected]/dist/contrib/copy-tex.min.js
css:
# katex: npm_webcache|[email protected]/dist/katex.min.css
katex: npm_webcache|[email protected]/dist/katex.min.css
comment: css/comment.css
fancybox: npm_webcache|@fancyapps/[email protected]/dist/jquery.fancybox.min.css
justifiedGallery: npm_webcache|[email protected]/dist/css/justifiedGallery.min.css
27 changes: 13 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-theme-shokax",
"version": "0.4.6-dev6",
"version": "0.4.6",
"description": "a hexo theme based on shoka",
"main": "index.js",
"repository": "https://github.com/theme-shoka-x/hexo-theme-shokaX",
Expand All @@ -9,41 +9,40 @@
"packageManager": "[email protected]",
"scripts": {
"test": "tsc --build --verbose",
"build": "node ./toolbox/compiler.mjs",
"install": "node ./toolbox/hoistdep.mjs"
"build": "node ./toolbox/compiler.mjs"
},
"devDependencies": {
"@types/fancybox": "^3.5.7",
"@types/jquery": "^3.5.30",
"@types/js-yaml": "^4.0.9",
"@types/katex": "^0.16.7",
"@types/node": "^20.14.8",
"@types/node": "^20.14.9",
"@types/quicklink": "^2.3.4",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "^7.13.1",
"eslint": "^9.5.0",
"@typescript-eslint/eslint-plugin": "^7.15.0",
"@typescript-eslint/parser": "^7.15.0",
"eslint": "^9.6.0",
"eslint-config-standard": "~17",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^17.9.0",
"eslint-plugin-promise": "^6.2.0",
"eslint-plugin-vue": "^9.26.0",
"typescript": "^5.5.2"
"eslint-plugin-promise": "^6.4.0",
"eslint-plugin-vue": "^9.27.0",
"typescript": "^5.5.3"
},
"dependencies": {
"@algolia/client-search": "^4.23.3",
"@waline/client": "^3.2.2",
"algoliasearch": "4.23.3",
"esbuild": "^0.21.5",
"hexo": "7.2.0",
"hexo-algoliasearch": "latest",
"hexo-feed": "latest",
"hexo-algoliasearch": "^2.0.1",
"hexo-feed": "^1.1.2",
"hexo-fs": "^4.1.3",
"hexo-pagination": "^3.0.0",
"hexo-renderer-pug": "latest",
"hexo-renderer-pug": "^3.0.0",
"hexo-util": "^3.3.0",
"instantsearch.js": "^4.72.1",
"js-yaml": "^4.1.0",
"katex": "^0.16.10",
"katex": "^0.16.11",
"mouse-firework": "^0.0.5",
"quicklink": "^2.3.0",
"theme-shokax-anime": "^0.0.6",
Expand Down

0 comments on commit 5c7a07b

Please sign in to comment.