Skip to content

Commit 6f2b292

Browse files
committed
fix: 修复 ToGithub 组件导入路径并统一格式;更新部署工作流以添加项目结构调试步骤
1 parent b76a35c commit 6f2b292

File tree

5 files changed

+13
-14
lines changed

5 files changed

+13
-14
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,19 @@ jobs:
2626
uses: pnpm/action-setup@v2
2727
with:
2828
version: latest
29-
30-
- name: Cache Next.js
31-
uses: actions/cache@v4
32-
with:
33-
path: |
34-
~/.pnpm-store
35-
${{ github.workspace }}/.next/cache
36-
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
37-
restore-keys: |
38-
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
29+
30+
- name: List project structure for debugging
31+
run: |
32+
echo "Project structure:"
33+
find . -type d -not -path "*/node_modules/*" -not -path "*/.git/*" | sort
3934
4035
- name: Build project
36+
id: build
37+
continue-on-error: true
4138
run: |
4239
pnpm install
4340
pnpm build
44-
41+
4542
- name: Sync search index
4643
run: |
4744
pnpm run sync-search

content/docs/core/bash.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ icon: SquareTerminal
99
</Callout>
1010

1111

12-
import { ToGithub } from '@/app/components/ToGithub'
12+
import { ToGithub } from '@/app/components/ToGithub';
1313

1414
<ToGithub repo="PaloMiku/MxShell" />
1515

content/docs/themes/shiro/deploy.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ description: 一个极简主义的个人网站,纸的纯净和雪的清新
44
icon: Hammer
55
---
66

7-
import { ToGithub } from '@/app/components/ToGithub'
7+
import { ToGithub } from '@/app/components/ToGithub';
8+
89
import Image from 'next/image'
910

1011
<ToGithub repo="Innei/Shiro" />

content/docs/themes/shiro/extra.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ icon: SquarePlus
1818

1919
Shiro 主题中,有一个可以在顶部显示博主当前正在做的事情的功能,这个功能是通过云函数和 ProcessReporter 软件实现的。
2020

21-
import { ToGithub } from '@/app/components/ToGithub'
21+
import { ToGithub } from '@/app/components/ToGithub';
2222

2323
<ToGithub repo="mx-space/ProcessReporterMac" />
2424
<ToGithub repo="TNXG/ProcessReporterWinpy" />

content/docs/themes/yun.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Yun 主题
33
description: A light & fast & lovely mx web style.
44
---
5+
56
import { ToGithub } from '@/app/components/ToGithub';
67

78
<ToGithub repo="mx-space/mx-web-yun" />

0 commit comments

Comments
 (0)