Skip to content

Commit

Permalink
docs: update valaxy recommendation
Browse files Browse the repository at this point in the history
  • Loading branch information
YunYouJun committed Feb 24, 2024
1 parent 5ca54d4 commit 8ccf0ee
Show file tree
Hide file tree
Showing 11 changed files with 376 additions and 795 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ dist/

.cache
.temp

docs/.vitepress/cache
14 changes: 7 additions & 7 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
},
"devDependencies": {
"crypto-js": "^4.2.0",
"hexo": "6.3.0",
"hexo": "7.1.1",
"hexo-browsersync": "^0.3.0",
"hexo-generator-archive": "^1.0.0",
"hexo-generator-category": "^1.0.0",
"hexo-generator-archive": "^2.0.0",
"hexo-generator-category": "^2.0.0",
"hexo-generator-feed": "^3.0.0",
"hexo-generator-index": "^2.0.0",
"hexo-generator-index": "^3.0.0",
"hexo-generator-searchdb": "^1.4.1",
"hexo-generator-sitemap": "^3.0.1",
"hexo-generator-tag": "^1.0.0",
"hexo-generator-tag": "^2.0.0",
"hexo-render-pug": "^2.1.4",
"hexo-renderer-marked": "^5.0.0",
"hexo-renderer-stylus": "^2.1.0",
"hexo-renderer-marked": "^6.2.0",
"hexo-renderer-stylus": "^3.0.1",
"hexo-server": "^3.0.0",
"hexo-tag-common": "^0.2.0",
"hexo-theme-yun": "workspace:*",
Expand Down
File renamed without changes.
28 changes: 9 additions & 19 deletions docs/.vitepress/config.ts → docs/.vitepress/config/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { defineConfig } from 'vitepress'

import { nav } from './configs/navbar'
import { sidebar } from './configs/sidebar'
import { head } from './configs/head'
import { nav } from './navbar'
import { sidebar } from './sidebar'
import { head } from './head'

export default defineConfig({
head,
Expand All @@ -12,17 +12,15 @@ export default defineConfig({
lastUpdated: true,

locales: {
'/en/': {
lang: 'en-US',
label: 'English',
description: 'A powerful & simple & fast theme for Hexo.',
selectText: 'English',
},
'/': {
root: {
lang: 'zh-CN',
label: '简体中文',
description: 'A powerful & simple & fast theme for Hexo. 一个对可爱自以为是的 Hexo 主题。',
selectText: '简体中文',
},
en: {
lang: 'en-US',
label: 'English',
description: 'A powerful & simple & fast theme for Hexo.',
},
},

Expand Down Expand Up @@ -61,14 +59,6 @@ export default defineConfig({
indexName: 'yunyoujun',
},

localeLinks: {
text: '',
items: [
{ text: 'English', link: '/en/guide/' },
{ text: '简体中文', link: '/guide/' },
],
},

footer: {
message: 'Released under the SATA | MIT License.',
copyright: 'Copyright © 2020-PRESENT YunYouJun',
Expand Down
File renamed without changes.
File renamed without changes.
26 changes: 19 additions & 7 deletions docs/en/index.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
---
title: Home
home: true
heroImage: /logo.gif
heroText: hexo-theme-yun
tagline: A light & fast & lovely theme for Hexo.
actions:
- text: Quick Start →
link: /en/guide/
layout: home

hero:
text: Hexo-Theme-Yun
image:
src: /logo.gif
tagline: A light & fast & lovely theme for Hexo.
actions:
- text: Quick Start →
link: /en/guide/
- text: 示例站点
link: /demo/
color: green
theme: alt

features:
- title: Simple
details: Simple, elegant and responsive UI.
Expand All @@ -21,3 +29,7 @@ footer:
name: YunYouJun
url: https://www.yunyoujun.cn
---

## I'm developing [valaxy](https://github.com/YunYouJun/valaxy) and [valaxy-theme-yun](https://github.com/YunYouJun/valaxy/tree/main/packages/valaxy-theme-yun) as the successor of [hexo-theme-yun](https://github.com/YunYouJun/hexo-theme-yun).

It has almost done everything and has better code highlighting and other hot update experiences.
13 changes: 13 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,16 @@ footer:
name: YunYouJun
url: https://www.yunyoujun.cn
---

::: warning

### 我正在开发 [valaxy](https://github.com/YunYouJun/valaxy)[valaxy-theme-yun](https://github.com/YunYouJun/valaxy/tree/main/packages/valaxy-theme-yun),以作为 [hexo-theme-yun](https://github.com/YunYouJun/hexo-theme-yun) 的继任者。

- 它几乎完成了所有功能。
- 并且具有更好的代码高亮与热更新开发体验。
- 此外,它的配置更加简单,拥有类型提示,并完美解决了定制主题的同时同步上游的问题。
- hexo-theme-yun 仍可继续使用,但不再进行新功能的开发与非缺陷型修复。

:::

> 我个人强烈推荐您转为使用 [VALAXY - 静态博客框架](https://valaxy.site) 搭建博客,它是一个更加**现代化**并专注**用户**开发**体验****博客**框架。
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@
"bumpp": "^9.3.0",
"cross-env": "^7.0.3",
"eslint": "^8.57.0",
"esno": "~0.17.0",
"esno": "~4.0.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"tsup": "^6.7.0",
"tsup": "^8.0.2",
"typescript": "^5.3.3",
"zx": "^7.2.3"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/theme-yun/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"devDependencies": {
"consola": "^3.2.3",
"del": "^6.1.1",
"del": "^7.1.0",
"gulp": "^4.0.2",
"gulp-clean-css": "^4.3.0",
"gulp-sass": "^5.1.0",
Expand Down
Loading

0 comments on commit 8ccf0ee

Please sign in to comment.