Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🛠️ chore: miscellaneous repairs #55

Merged
merged 11 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import astroI18next from "astro-i18next";

import { transformers } from './src/config/transformers.js';

import { rehypeFadeInUp } from './src/plugins/rehype-fade-in-up.mjs';
import { remarkAddAnchor } from './src/plugins/remark-add-anchor.mjs';
import { remarkReadingTime } from './src/plugins/remark-reading-time.mjs';

Expand All @@ -31,7 +32,13 @@ export default defineConfig({
includePaths: ["./src/styles"],
},
},
integrations: [mdx(), icon(), swup({
integrations: [mdx(),
icon({
include: {
mdi: ["*"], // (Default) Loads entire Material Design Icon set
},
}),
swup({
cache: true,
progress: true,
accessibility: true,
Expand All @@ -55,7 +62,7 @@ export default defineConfig({
transformers: transformers
},
remarkPlugins: [remarkMath, remarkAddAnchor, remarkReadingTime],
rehypePlugins: [rehypeKatex,
rehypePlugins: [rehypeKatex, rehypeFadeInUp,
[
rehypeExternalLinks,
{
Expand Down Expand Up @@ -128,7 +135,7 @@ export default defineConfig({
css: {
preprocessorOptions: {
scss: {
api: 'modern-compiler',
api: 'modern-compiler',
},
},
},
Expand Down
31 changes: 30 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -564,4 +564,33 @@

### Fix

- 修复了若干问题
- 修复了若干问题

## [2.8.1] - 2024-12-5

### Features

- 新增 `sitmap.xml` 代替自动生成的 `sitmap-0.xml`
- 重写 `rss.xml.ts` 完善了格式并在 RSS 中添加了全文内容
- 新增可重用组件 `GithubInfo` 路径:src\widget\GithubInfo.astro
- 新增卡片布局 包括 `Aside` / `Horizontal` / `Vertical`
- 为博客文章内容添加了渐入效果
- 添加了手动开关评论系统的功能

### Refactored

- 组件布局统一并修改
- 重写了博客底部 License 组件的样式
- 清理了全局的 ClassName 以简化代码
- 将 `tag` 路由更名为 `tags`

### Fix

- 可访问性修复:为必要的组件添加了 `aria-label` 以及由 `sr-only` 包裹的文本
- 为代码框中的复制按钮添加了随机的专属的 `id` 与表单链接
- 修复了分页按钮在仅有一页时出现的样式错误
- 修复了在标签与分类页面下不显示字数与阅读时长的问题

### Chore

- 使用 `iconify` 代替了本地存储 svg 的方式
30 changes: 17 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,29 @@
"@astrojs/check": "^0.9.4",
"@astrojs/mdx": "^3.1.9",
"@astrojs/partytown": "^2.1.2",
"@astrojs/react": "^3.6.2",
"@astrojs/react": "^3.6.3",
"@astrojs/rss": "^4.0.9",
"@astrojs/sitemap": "^3.2.1",
"@astrojs/tailwind": "^5.1.2",
"@astrojs/tailwind": "^5.1.3",
"@astrojs/vercel": "^7.8.2",
"@notionhq/client": "^2.2.15",
"@playform/compress": "^0.0.13",
"@swup/astro": "^1.4.1",
"@swup/astro": "^1.5.0",
"@swup/parallel-plugin": "^0.4.0",
"@swup/progress-plugin": "^3.2.0",
"@swup/scroll-plugin": "^3.3.2",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vercel/analytics": "^1.4.0",
"astro": "^4.16.13",
"@vercel/analytics": "^1.4.1",
"astro": "^4.16.16",
"astro-i18next": "1.0.0-beta.21",
"astro-icon": "^1.1.2",
"astro-icon": "^1.1.4",
"astro-pagefind": "^1.6.0",
"dayjs": "^1.11.13",
"dotenv": "^16.4.5",
"dotenv": "^16.4.6",
"hastscript": "^9.0.0",
"i18next": "^23.16.5",
"i18next-fs-backend": "^2.3.2",
"i18next": "^23.16.8",
"i18next-fs-backend": "^2.6.0",
"katex": "^0.16.11",
"marked": "^14.1.4",
"mdast-util-to-string": "^4.0.0",
Expand All @@ -50,18 +50,22 @@
"rehype-katex": "^7.0.1",
"remark-directive": "^3.0.0",
"remark-math": "^6.0.0",
"shiki": "^1.23.0",
"shiki": "^1.24.0",
"swup": "^4.8.1",
"typescript": "^5.6.3",
"typescript": "^5.7.2",
"unist-util-visit": "^5.0.0"
},
"devDependencies": {
"@iconify-json/material-symbols": "^1.2.8",
"@iconify-json/mdi": "^1.2.1",
"@iconify-json/ri": "^1.2.3",
"@iconify/tailwind": "^1.1.3",
"@rollup/plugin-terser": "^0.4.4",
"@tailwindcss/typography": "^0.5.15",
"daisyui": "^4.12.14",
"prettier": "^3.3.3",
"prettier": "^3.4.1",
"prettier-plugin-astro": "^0.14.1",
"sass": "^1.81.0",
"sass": "^1.81.1",
"tailwindcss": "^3.4.15"
},
"pnpm": {
Expand Down
Loading