Skip to content

Commit 000ead4

Browse files
committed
feat: list yamlresume/action in onboarding section
1 parent a446b77 commit 000ead4

File tree

2 files changed

+46
-13
lines changed

2 files changed

+46
-13
lines changed

src/app/[language]/(home)/components/OnboardingSection.tsx

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import {
44
IconArrowUpRight,
55
IconBrandDocker,
6+
IconBrandGithub,
67
IconBrandNpm,
78
IconCheck,
89
IconCopy,
@@ -269,6 +270,12 @@ export function OnboardingSection() {
269270
command: 'npx create-yamlresume',
270271
href: '/docs/ecosystem/create-yamlresume',
271272
},
273+
{
274+
id: 'action',
275+
icon: IconBrandGithub,
276+
command: '- uses: yamlresume/action@v1',
277+
href: '/docs/ecosystem/action',
278+
},
272279
{
273280
id: 'npm',
274281
icon: IconBrandNpm,
@@ -308,20 +315,9 @@ export function OnboardingSection() {
308315
)}
309316
>
310317
{installMethods.map((method) => {
311-
const isNpx = method.id === 'npx'
312318
return (
313-
<div
314-
key={method.id}
315-
className={clsx(
316-
isNpx && 'md:col-span-2 flex justify-center w-full'
317-
)}
318-
>
319-
<OnboardingCard
320-
method={method}
321-
t={t}
322-
lang={lang}
323-
className={clsx(isNpx && 'w-full md:w-[calc(50%-0.75rem)]')}
324-
/>
319+
<div key={method.id}>
320+
<OnboardingCard method={method} t={t} lang={lang} />
325321
</div>
326322
)
327323
})}

src/i18n/translations.ts

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ const translations = {
113113
title: 'NPX (Recommended)',
114114
description: 'Create a new project instantly with zero global installs',
115115
},
116+
action: {
117+
title: 'GitHub Action',
118+
description:
119+
'Build resumes in CI/CD workflows with GitHub Actions integration',
120+
},
116121
npm: {
117122
title: 'NPM Global',
118123
description: 'Install as a global CLI tool for system-wide access',
@@ -285,6 +290,11 @@ const translations = {
285290
description:
286291
'Crea un nuevo proyecto al instante sin instalaciones globales',
287292
},
293+
action: {
294+
title: 'GitHub Action',
295+
description:
296+
'Compila currículums en flujos de trabajo CI/CD con integración de GitHub Actions',
297+
},
288298
npm: {
289299
title: 'NPM Global',
290300
description:
@@ -459,6 +469,11 @@ const translations = {
459469
description:
460470
'Créez un nouveau projet instantanément sans installations globales',
461471
},
472+
action: {
473+
title: 'GitHub Action',
474+
description:
475+
'Générez des CV dans les workflows CI/CD avec GitHub Actions',
476+
},
462477
npm: {
463478
title: 'NPM Global',
464479
description: 'Installez comme outil CLI global pour un accès système',
@@ -623,6 +638,10 @@ const translations = {
623638
title: 'NPX(推荐)',
624639
description: '无需全局安装即可立即创建新项目',
625640
},
641+
action: {
642+
title: 'GitHub Action',
643+
description: '通过 GitHub Actions 集成在 CI/CD 工作流中构建简历',
644+
},
626645
npm: {
627646
title: 'NPM 全局安装',
628647
description: '作为全局 CLI 工具安装以便系统范围访问',
@@ -785,6 +804,10 @@ const translations = {
785804
title: 'NPX(推薦)',
786805
description: '無需全域安裝即可立即建立新專案',
787806
},
807+
action: {
808+
title: 'GitHub Action',
809+
description: '透過 GitHub Actions 整合在 CI/CD 工作流中建置履歷',
810+
},
788811
npm: {
789812
title: 'NPM 全域安裝',
790813
description: '作為全域 CLI 工具安裝以便系統範圍存取',
@@ -955,6 +978,10 @@ const translations = {
955978
title: 'NPX(推奨)',
956979
description: 'グローバルインストール不要で即座に新規プロジェクトを作成',
957980
},
981+
action: {
982+
title: 'GitHub Action',
983+
description: 'GitHub Actions連携でCI/CDワークフローで履歴書をビルド',
984+
},
958985
npm: {
959986
title: 'NPM グローバル',
960987
description:
@@ -1130,6 +1157,11 @@ const translations = {
11301157
description:
11311158
'Crie um novo projeto instantaneamente sem instalações globais',
11321159
},
1160+
action: {
1161+
title: 'GitHub Action',
1162+
description:
1163+
'Compile currículos em fluxos de trabalho CI/CD com integração do GitHub Actions',
1164+
},
11331165
npm: {
11341166
title: 'NPM Global',
11351167
description:
@@ -1303,6 +1335,11 @@ const translations = {
13031335
title: 'NPX (Disarankan)',
13041336
description: 'Buat proyek baru secara instan tanpa instalasi global',
13051337
},
1338+
action: {
1339+
title: 'GitHub Action',
1340+
description:
1341+
'Bangun resume dalam alur kerja CI/CD dengan integrasi GitHub Actions',
1342+
},
13061343
npm: {
13071344
title: 'NPM Global',
13081345
description:

0 commit comments

Comments
 (0)