Skip to content

Commit

Permalink
docs: update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
ATQQ committed May 3, 2024
1 parent eaafc74 commit eaa8bd2
Show file tree
Hide file tree
Showing 9 changed files with 89 additions and 6 deletions.
7 changes: 7 additions & 0 deletions packages/blogpress/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ publish: false

# CHANGELOG

## 2.0.44
### Patch Changes

- Updated dependencies
- @sugarat/theme@0.3.3

## 2.0.43

### Patch Changes

- Updated dependencies
Expand Down
2 changes: 1 addition & 1 deletion packages/blogpress/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "blogpress",
"type": "module",
"version": "2.0.43",
"version": "2.0.44",
"private": true,
"license": "MIT",
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions packages/create-theme/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @sugarat/create-theme

## 0.0.58

### Patch Changes

- chore: 依赖优化

## 0.0.57

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/create-theme/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sugarat/create-theme",
"version": "0.0.57",
"version": "0.0.58",
"description": "简约风的 Vitepress 博客主题,sugarat vitepress blog theme",
"author": "粥里有勺糖",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-theme/public/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"@element-plus/icons-vue": "^2.3.1",
"@sugarat/theme": "^0.3.2",
"@sugarat/theme": "^0.3.3",
"element-plus": "^2.7.2",
"vue": "3.4.26"
},
Expand Down
9 changes: 9 additions & 0 deletions packages/theme/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @sugarat/theme

## 0.3.3

### Patch Changes

- feat:支持首页 cover 图添加 image style
- chore:导航 logo 样式优化
- chore: reduce element css size
- chore: 依赖升级,无用依赖移除,peerDeps 调整

## 0.3.2

### Patch Changes
Expand Down
11 changes: 10 additions & 1 deletion packages/theme/docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: 更新日志
description: 最近更新(v0.3.2) ⏰ 2024/05/01:编写支持首页内容自动刷新,支持深色模式更加丝滑的过渡动画,首页加载优化,水合问题优化,修复首页和侧边栏跳转导致页面刷新问题。
description: 最近更新(v0.3.3) ⏰ 2024/05/03:依赖优化,首页优化,编写支持首页内容自动刷新,支持深色模式更加丝滑的过渡动画,首页加载优化,水合问题优化,修复首页和侧边栏跳转导致页面刷新问题。
author: 粥里有勺糖
top: 2
tag: 日志
Expand All @@ -27,6 +27,15 @@ bun install vitepress@latest
```
:::

## 0.3.3 (2024/05/03)

### Patch Changes

- feat:支持首页 cover 图添加 image style
- chore:导航 logo 样式优化
- chore: reduce element css size
- chore: 依赖升级,无用依赖移除,peerDeps 调整

## 0.3.2 (2024/05/01)

### Patch Changes
Expand Down
54 changes: 53 additions & 1 deletion packages/theme/docs/config/global.md
Original file line number Diff line number Diff line change
Expand Up @@ -1657,4 +1657,56 @@ const blogTheme = getThemeConfig({
darkTransition: true
})
```
![深色模式过渡动画](https://vitepress.dev/appearance-toggle-transition.webp)
![深色模式过渡动画](https://vitepress.dev/appearance-toggle-transition.webp)


## imageStyle
设置图片处理样式(图片资源路径调整),比如图片路径替换,添加图片压缩参数等,可以根据自己的需求进行配置。

*目前仅支持首页文章列表的封面图。*

* type:`ImageStyleConfig`

:::code-group
```ts [example]
const blogTheme = getThemeConfig({
imageStyle: {
coverPreview: [
// 七牛云
{
rule: '//img.cdn.sugarat.top',
suffix: '~cover.webp'
},
// 又拍云CDN
{
rule: '//cdn.upyun.sugarat.top',
suffix: '-cover'
}
]
},
})
```

```ts [type]
interface ReplaceRule {
/**
* 匹配规则
*/
rule: string | RegExp
/**
* 直接追加后缀
*/
suffix?: string
/**
* 替换函数或字符串(优先级高于 suffix)
*/
replace?: string | ((match: string) => string)
}
interface ImageStyleConfig {
/**
* 首页封面预览图
*/
coverPreview?: ReplaceRule | ReplaceRule[]
}
```
:::
2 changes: 1 addition & 1 deletion packages/theme/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sugarat/theme",
"version": "0.3.2",
"version": "0.3.3",
"description": "简约风的 Vitepress 博客主题,sugarat vitepress blog theme",
"author": "sugar",
"license": "MIT",
Expand Down

0 comments on commit eaa8bd2

Please sign in to comment.