Skip to content

Commit

Permalink
🛠️ Issue fix and Modify configuration items
Browse files Browse the repository at this point in the history
  • Loading branch information
EveSunMaple committed Sep 21, 2024
1 parent 48257a0 commit 9d41f09
Show file tree
Hide file tree
Showing 12 changed files with 678 additions and 605 deletions.
17 changes: 13 additions & 4 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ import playformCompress from "@playform/compress";
import astroI18next from "astro-i18next";

import swup from "@swup/astro";
import SwupScrollPlugin from "@swup/scroll-plugin";
import SwupParallelPlugin from "@swup/parallel-plugin";

import { remarkAddAnchor } from './src/plugins/remark-add-anchor.mjs';
import { remarkReadingTime } from './src/plugins/remark-reading-time.mjs';

const { USER_SITE } = await import('./src/consts.ts');

// https://astro.build/config
export default defineConfig({
site: "https://frosti.saroprock.com",
site: USER_SITE,
output: 'static',
style: {
scss: {
includePaths: ["./src/styles"],
Expand All @@ -31,7 +32,15 @@ export default defineConfig({
mdx(),
icon(),
swup({
plugins: [new SwupScrollPlugin(), new SwupParallelPlugin()],
cache: true,
progress: true,
accessibility: true,
smoothScrolling: true,
preload: {
hover: true,
visible: true
},
theme: 'slide',
containers: ["#swup"],
}),
terser({
Expand Down
18 changes: 18 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -457,3 +457,21 @@
- 修复了在标题与 alert 中错误的外链 svg 样式
- 修复了 toc 错误获取 # 的问题
- 修复了导航栏逻辑

## [2.6.1] - 2024-9-21

### Features

- 在 `consts.ts` 中新增了 `USER_SITE` ,用来生成网站底部卡片的链接
- 添加了网站加载时的进度条

### Refactored

- 修改了 swup 的配置项

### Fix

- 修复了文章在标签、分类过多时按钮溢出的问题
- 修复了一堆拼写错误(存在于 2.6.0 的 release 中)
- 删除了在 LinkCard 中不恰当的图片放大功能
- 移除了 `transition.scss` ,改用 swup 默认主题代替(我不知道这对改善崩溃问题是否有用)
21 changes: 11 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,21 @@
},
"dependencies": {
"@astrojs/check": "^0.9.3",
"@astrojs/mdx": "^3.1.5",
"@astrojs/mdx": "^3.1.7",
"@astrojs/react": "^3.6.2",
"@astrojs/rss": "^4.0.7",
"@astrojs/sitemap": "^3.1.6",
"@astrojs/tailwind": "^5.1.0",
"@astrojs/vercel": "^7.8.0",
"@astrojs/tailwind": "^5.1.1",
"@astrojs/vercel": "^7.8.1",
"@playform/compress": "^0.0.13",
"@swup/astro": "^1.4.1",
"@swup/parallel-plugin": "^0.4.0",
"@swup/progress-plugin": "^3.2.0",
"@swup/scroll-plugin": "^3.3.2",
"@types/react": "^18.3.5",
"@types/react": "^18.3.8",
"@types/react-dom": "^18.3.0",
"@vercel/analytics": "^1.3.1",
"astro": "^4.15.4",
"astro": "^4.15.8",
"astro-i18next": "1.0.0-beta.21",
"astro-icon": "^1.1.1",
"astro-pagefind": "^1.6.0",
Expand All @@ -39,16 +40,16 @@
"prismjs": "^1.29.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.26.1",
"react-router-dom": "^6.26.2",
"reading-time": "^1.5.0",
"rehype-external-links": "^3.0.0",
"rehype-katex": "^7.0.1",
"remark-directive": "^3.0.0",
"remark-math": "^6.0.0",
"sass": "^1.78.0",
"shiki": "^1.16.2",
"sass": "^1.79.3",
"shiki": "^1.18.0",
"swup": "^4.7.0",
"typescript": "^5.5.4",
"typescript": "^5.6.2",
"unist-util-visit": "^5.0.0"
},
"devDependencies": {
Expand All @@ -57,7 +58,7 @@
"daisyui": "^4.12.10",
"prettier": "^3.3.3",
"prettier-plugin-astro": "^0.14.1",
"tailwindcss": "^3.4.10"
"tailwindcss": "^3.4.12"
},
"pnpm": {
"overrides": {
Expand Down
Loading

0 comments on commit 9d41f09

Please sign in to comment.