Skip to content

Commit d1e27c3

Browse files
committed
Merge branch 'master' of https://github.com/CuteLeaf/Firefly into CuteLeaf-master
# Conflicts: # src/content/posts/firefly-layout-system.md # src/content/posts/images/1.webp # src/content/posts/images/both.webp # src/content/posts/markdown-tutorial.md
2 parents 6a33472 + d57aca8 commit d1e27c3

45 files changed

Lines changed: 1078 additions & 606 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/FUNDING.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# GitHub 赞助配置
2+
# 这将在项目页面显示"Sponsor"按钮
3+
4+
# 爱发电(推荐国内用户)
5+
custom: ['https://afdian.com/a/cuteleaf']
6+
7+
# 如果之后开通 GitHub Sponsors,取消下面的注释
8+
# github: [CuteLeaf]
9+
10+
# 其他平台示例(按需添加)
11+
# patreon: username
12+
# ko_fi: username
13+
# open_collective: project-name

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1919
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2020
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2121
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22-
SOFTWARE.
22+
SOFTWARE.

README.en.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,16 @@
88
>
99
> ![Node.js >= 20](https://img.shields.io/badge/node.js-%3E%3D20-brightgreen)
1010
![pnpm >= 9](https://img.shields.io/badge/pnpm-%3E%3D9-blue)
11-
![Astro](https://img.shields.io/badge/Astro-5.16.5-orange)
12-
![GitHub License](https://img.shields.io/github/license/CuteLeaf/Firefly)
11+
![Astro](https://img.shields.io/badge/Astro-5.16.6-orange)
12+
![TypeScript](https://img.shields.io/badge/TypeScript-5.9.2-blue)
13+
>
14+
> [![Stars](https://img.shields.io/github/stars/CuteLeaf/Firefly?style=social)](https://github.com/CuteLeaf/Firefly/stargazers)
15+
[![Forks](https://img.shields.io/github/forks/CuteLeaf/Firefly?style=social)](https://github.com/CuteLeaf/Firefly/network/members)
16+
[![Issues](https://img.shields.io/github/issues/CuteLeaf/Firefly)](https://github.com/CuteLeaf/Firefly/issues)
17+
>
18+
> ![GitHub License](https://img.shields.io/github/license/CuteLeaf/Firefly)
19+
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/CuteLeaf/Firefly)
20+
[![Afdian Sponsor](https://img.shields.io/badge/Afdian-Sponsor%20Author-ff69b4.svg)](https://afdian.com/a/cuteleaf)
1321
</div>
1422

1523

README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,23 @@
88
>
99
> ![Node.js >= 20](https://img.shields.io/badge/node.js-%3E%3D20-brightgreen)
1010
![pnpm >= 9](https://img.shields.io/badge/pnpm-%3E%3D9-blue)
11-
![Astro](https://img.shields.io/badge/Astro-5.16.5-orange)
12-
![GitHub License](https://img.shields.io/github/license/CuteLeaf/Firefly)
11+
![Astro](https://img.shields.io/badge/Astro-5.16.6-orange)
12+
![TypeScript](https://img.shields.io/badge/TypeScript-5.9.2-blue)
13+
>
14+
> [![Stars](https://img.shields.io/github/stars/CuteLeaf/Firefly?style=social)](https://github.com/CuteLeaf/Firefly/stargazers)
15+
[![Forks](https://img.shields.io/github/forks/CuteLeaf/Firefly?style=social)](https://github.com/CuteLeaf/Firefly/network/members)
16+
[![Issues](https://img.shields.io/github/issues/CuteLeaf/Firefly)](https://github.com/CuteLeaf/Firefly/issues)
17+
>
18+
> ![GitHub License](https://img.shields.io/github/license/CuteLeaf/Firefly)
19+
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/CuteLeaf/Firefly)
20+
[![爱发电赞助](https://img.shields.io/badge/爱发电-赞助作者-ff69b4.svg)](https://afdian.com/a/cuteleaf)
21+
>
1322
</div>
1423
1524

25+
26+
27+
1628
---
1729
🚀 快速指南:
1830
[**🖥️在线预览**](https://firefly.cuteleaf.cn/) /
@@ -104,8 +116,8 @@
104116

105117
### 环境要求
106118

107-
- Node.js ≤ 22
108-
- pnpm ≤ 9
119+
- Node.js ≤ 25
120+
- pnpm ≤ 10
109121

110122
### 本地开发部署
111123

astro.config.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import icon from "astro-icon";
1010
import rehypeAutolinkHeadings from "rehype-autolink-headings";
1111
import rehypeComponents from "rehype-components"; /* Render the custom directive content */
1212
import rehypeKatex from "rehype-katex";
13+
import katex from "katex";
14+
import "katex/dist/contrib/mhchem.mjs"; // 加载 mhchem 扩展
1315
import rehypeSlug from "rehype-slug";
1416
import remarkDirective from "remark-directive"; /* Handle directives */
1517
import remarkGithubAdmonitionsToDirectives from "remark-github-admonitions-to-directives";
@@ -48,7 +50,7 @@ export default defineConfig({
4850
containers: ["main"],
4951
smoothScrolling: false,
5052
cache: true,
51-
preload: false,
53+
preload: true,
5254
accessibility: true,
5355
updateHead: true,
5456
updateBodyClass: false,
@@ -140,7 +142,7 @@ export default defineConfig({
140142
remarkMermaid,
141143
],
142144
rehypePlugins: [
143-
rehypeKatex,
145+
[rehypeKatex, { katex }],
144146
rehypeSlug,
145147
rehypeMermaid,
146148
rehypeFigure,

docs/README.ja.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,16 @@
88
>
99
> ![Node.js >= 20](https://img.shields.io/badge/node.js-%3E%3D20-brightgreen)
1010
![pnpm >= 9](https://img.shields.io/badge/pnpm-%3E%3D9-blue)
11-
![Astro](https://img.shields.io/badge/Astro-5.16.5-orange)
12-
![GitHub License](https://img.shields.io/github/license/CuteLeaf/Firefly)
11+
![Astro](https://img.shields.io/badge/Astro-5.16.6-orange)
12+
![TypeScript](https://img.shields.io/badge/TypeScript-5.9.2-blue)
13+
>
14+
> [![Stars](https://img.shields.io/github/stars/CuteLeaf/Firefly?style=social)](https://github.com/CuteLeaf/Firefly/stargazers)
15+
[![Forks](https://img.shields.io/github/forks/CuteLeaf/Firefly?style=social)](https://github.com/CuteLeaf/Firefly/network/members)
16+
[![Issues](https://img.shields.io/github/issues/CuteLeaf/Firefly)](https://github.com/CuteLeaf/Firefly/issues)
17+
>
18+
> ![GitHub License](https://img.shields.io/github/license/CuteLeaf/Firefly)
19+
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/CuteLeaf/Firefly)
20+
[![Afdian Sponsor](https://img.shields.io/badge/Afdian-作者を支援-ff69b4.svg)](https://afdian.com/a/cuteleaf)
1321
</div>
1422

1523

docs/README.ru.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,16 @@
88
>
99
> ![Node.js >= 20](https://img.shields.io/badge/node.js-%3E%3D20-brightgreen)
1010
![pnpm >= 9](https://img.shields.io/badge/pnpm-%3E%3D9-blue)
11-
![Astro](https://img.shields.io/badge/Astro-5.16.5-orange)
12-
![GitHub License](https://img.shields.io/github/license/CuteLeaf/Firefly)
11+
![Astro](https://img.shields.io/badge/Astro-5.16.6-orange)
12+
![TypeScript](https://img.shields.io/badge/TypeScript-5.9.2-blue)
13+
>
14+
> [![Stars](https://img.shields.io/github/stars/CuteLeaf/Firefly?style=social)](https://github.com/CuteLeaf/Firefly/stargazers)
15+
[![Forks](https://img.shields.io/github/forks/CuteLeaf/Firefly?style=social)](https://github.com/CuteLeaf/Firefly/network/members)
16+
[![Issues](https://img.shields.io/github/issues/CuteLeaf/Firefly)](https://github.com/CuteLeaf/Firefly/issues)
17+
>
18+
> ![GitHub License](https://img.shields.io/github/license/CuteLeaf/Firefly)
19+
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/CuteLeaf/Firefly)
20+
[![Afdian Sponsor](https://img.shields.io/badge/Afdian-Поддержать%20автора-ff69b4.svg)](https://afdian.com/a/cuteleaf)
1321
</div>
1422

1523

docs/README.zh-TW.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,16 @@
88
>
99
> ![Node.js >= 20](https://img.shields.io/badge/node.js-%3E%3D20-brightgreen)
1010
![pnpm >= 9](https://img.shields.io/badge/pnpm-%3E%3D9-blue)
11-
![Astro](https://img.shields.io/badge/Astro-5.16.5-orange)
12-
![GitHub License](https://img.shields.io/github/license/CuteLeaf/Firefly)
11+
![Astro](https://img.shields.io/badge/Astro-5.16.6-orange)
12+
![TypeScript](https://img.shields.io/badge/TypeScript-5.9.2-blue)
13+
>
14+
> [![Stars](https://img.shields.io/github/stars/CuteLeaf/Firefly?style=social)](https://github.com/CuteLeaf/Firefly/stargazers)
15+
[![Forks](https://img.shields.io/github/forks/CuteLeaf/Firefly?style=social)](https://github.com/CuteLeaf/Firefly/network/members)
16+
[![Issues](https://img.shields.io/github/issues/CuteLeaf/Firefly)](https://github.com/CuteLeaf/Firefly/issues)
17+
>
18+
> ![GitHub License](https://img.shields.io/github/license/CuteLeaf/Firefly)
19+
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/CuteLeaf/Firefly)
20+
[![愛發電贊助](https://img.shields.io/badge/愛發電-贊助作者-ff69b4.svg)](https://afdian.com/a/cuteleaf)
1321
</div>
1422

1523

docs/images/1.webp

-127 KB
Loading

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "firefly",
33
"type": "module",
4-
"version": "3.8.0",
4+
"version": "5.12.31",
55
"scripts": {
66
"dev": "astro dev",
77
"start": "astro dev",
@@ -68,7 +68,7 @@
6868
"satori": "^0.18.2",
6969
"sharp": "^0.34.5",
7070
"stylus": "^0.64.0",
71-
"svelte": "^5.46.0",
71+
"svelte": "^5.46.1",
7272
"tailwindcss": "^3.4.19",
7373
"typescript": "^5.9.2",
7474
"unist-util-visit": "^5.0.0"

0 commit comments

Comments
 (0)