Skip to content

Commit b374278

Browse files
committed
Merge branch 'development'
2 parents f3fce93 + 22836fd commit b374278

31 files changed

+1438
-2498
lines changed

README-zh_CN.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## ✨ 特性
66

7-
- 极简风主题,设配多端场景。
7+
- 极简风主题,设配多端场景, 支持 `light``dark` 模式
88
- 傻瓜式配置,0基础快速上手部署。
99
- 支持文章草稿,本地允许预览,生产构建自动过滤。
1010
- 支持 algolia 搜索和 follow 订阅认证配置开启。
@@ -57,6 +57,7 @@ pnpm build
5757
| title | 网站标题 | `string` | - |
5858
| description | 网站描述 | `string` | - |
5959
| lang | 语言 | `string` | `zh-CN` |
60+
| theme | 主题 | `{ mode: 'auto' | 'light' | 'dark', enableUserChange: boolean }` | `{ mode: 'auto', enableUserChange: true }` |
6061
| avatar | 头像 | `string` | - |
6162
| sitemap | 网站 sitemap 配置 | [SitemapOptions](https://docs.astro.build/zh-cn/guides/integrations-guide/sitemap/) | - |
6263
| readTime | 是否显示阅读时间 | `boolean` | `false` |

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ English · [中文](./README-zh_CN.md)
44

55
## ✨ Features
66

7-
- Minimalist style theme, adaptable to multiple platforms
7+
- Minimalist style theme, adaptable to multiple platforms, support `light` and `dark` mode.
88
- Zero-based quick start, foolproof configuration, easy deployment
99
- Support for article drafts, local preview, and automatic draft filtering in production builds
1010
- Default RSS generation with Follow subscription authentication
@@ -60,6 +60,7 @@ Theme configuration is done through `slate.config.ts` in the root directory.
6060
| title | Website title | `string` | - |
6161
| description | Website description | `string` | - |
6262
| lang | Language | `string` | `zh-CN` |
63+
| theme | Theme | `{ mode: 'auto' | 'light' | 'dark', enableUserChange: boolean }` | `{ mode: 'auto', enableUserChange: true }` |
6364
| avatar | Avatar | `string` | - |
6465
| sitemap | Website sitemap configuration | [SitemapOptions](https://docs.astro.build/en/guides/integrations-guide/sitemap/) | - |
6566
| readTime | Show reading time | `boolean` | `false` |

astro.config.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineConfig } from 'astro/config';
22
import react from '@astrojs/react';
3-
import tailwind from '@astrojs/tailwind';
43
import svgr from 'vite-plugin-svgr';
4+
import tailwindcss from "@tailwindcss/vite";
55
import mdx from '@astrojs/mdx';
66
import sitemap from '@astrojs/sitemap';
77
import remarkGemoji from 'remark-gemoji';
@@ -17,7 +17,7 @@ import { remarkReadingTime } from './plugins/remark-reading-time';
1717
import slateConfig from './slate.config';
1818

1919
function computedIntegrations() {
20-
const result = [astroExpressiveCode(), mdx(), react(), tailwind(), sitemap(slateConfig.sitemap)];
20+
const result = [astroExpressiveCode(), mdx(), react(), sitemap(slateConfig.sitemap)];
2121

2222
return result;
2323
}
@@ -39,6 +39,7 @@ function generateAstroConfigure() {
3939
vite: {
4040
plugins: [
4141
svgr(),
42+
tailwindcss(),
4243
],
4344
},
4445
};

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default [
1212
...eslintPluginAstro.configs['jsx-a11y-recommended'],
1313
// pluginReactConfig,
1414
{
15-
ignores: ['node_modules', 'dist', '.astro', 'src/env.d.ts'],
15+
ignores: ['node_modules', 'dist', '.astro', 'src/env.d.ts', '**/.obsidian'],
1616
},
1717
{
1818
languageOptions: {

package.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,18 @@
2929
},
3030
"dependencies": {
3131
"@astrojs/check": "^0.9.4",
32-
"@astrojs/mdx": "^4.0.2",
33-
"@astrojs/react": "^4.1.1",
34-
"@astrojs/rss": "^4.0.10",
32+
"@astrojs/mdx": "^4.0.8",
33+
"@astrojs/react": "^4.2.0",
34+
"@astrojs/rss": "^4.0.11",
3535
"@astrojs/sitemap": "^3.2.1",
36-
"@astrojs/tailwind": "^5.1.3",
3736
"@docsearch/css": "^3.6.2",
3837
"@docsearch/react": "^3.6.2",
3938
"@radix-ui/colors": "^3.0.0",
40-
"@radix-ui/themes": "^3.1.4",
39+
"@tailwindcss/vite": "^4.0.3",
4140
"@types/node": "^22.8.4",
4241
"@types/react": "^18.3.12",
4342
"@types/react-dom": "^18.3.1",
44-
"astro": "^5.0.9",
43+
"astro": "^5.2.5",
4544
"astro-expressive-code": "^0.37.1",
4645
"classnames": "^2.5.1",
4746
"dayjs": "^1.11.13",
@@ -55,7 +54,7 @@
5554
"remark-code-import": "^1.2.0",
5655
"remark-gemoji": "^8.0.0",
5756
"remark-math": "^6.0.0",
58-
"tailwindcss": "^3.4.14",
57+
"tailwindcss": "^4.0.3",
5958
"typescript": "^5.6.3",
6059
"vite-plugin-svgr": "^4.2.0"
6160
},
@@ -74,7 +73,7 @@
7473
"postcss-import": "^16.1.0",
7574
"prettier": "^3.3.3",
7675
"prettier-plugin-astro": "^0.14.1",
77-
"prettier-plugin-tailwindcss": "^0.6.8",
76+
"prettier-plugin-tailwindcss": "^0.6.11",
7877
"remark": "^15.0.1",
7978
"remark-html": "^16.0.1",
8079
"sanitize-html": "^2.14.0",

0 commit comments

Comments
 (0)