Skip to content

Commit ef4e526

Browse files
authored
feat(cli): title the AGENTS.md block Passion Factory Code Style (#67)
* feat(cli): title the AGENTS.md block Passion Factory Code Style Rename the managed AGENTS.md block heading from "PleaseAI Code Style" to "Passion Factory Code Style". The block is located by its marker comments, not by the heading, so `update` replaces the old heading in existing projects. Refs #65 * docs: title the docs site Passion Factory Code Style Match the site title, Hero title, and preview image alt text to the renamed AGENTS.md block heading. Refs #65
1 parent 147dc0e commit ef4e526

7 files changed

Lines changed: 16 additions & 9 deletions

File tree

‎apps/docs/astro.config.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ const nimbusConfig = defineNimbusConfig({
1010
// Canonical origin (no trailing slash). Drives canonical URLs, absolute OG
1111
// image URLs, robots.txt, sitemap, and the links in /llms.txt.
1212
site: 'https://code-style.pages.dev',
13-
title: 'PleaseAI Code Style',
13+
title: 'Passion Factory Code Style',
1414
description: 'Shared code style configurations for PleaseAI projects',
1515
// Fallback only: BaseLayout sets <html lang> per page from the URL locale.
1616
locale: defaultLocale,
1717
github: 'https://github.com/pleaseai/code-style',
1818
editPattern: 'https://github.com/pleaseai/code-style/edit/main/apps/docs/{path}',
19-
socialImageAlt: 'PleaseAI Code Style documentation preview',
19+
socialImageAlt: 'Passion Factory Code Style documentation preview',
2020
sidebar: {
2121
// Content lives under `src/content/docs/<locale>/`, so each locale is a
2222
// top-level section. Scoping the rail to the active section keeps Korean

‎apps/docs/src/content/docs/en/cli.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ The CLI writes a marker-delimited block into `AGENTS.md` so you can mix your own
108108
My project notes live here.
109109

110110
<!-- pleaseai-code-style:start -->
111-
# PleaseAI Code Style
111+
# Passion Factory Code Style
112112

113113
These rules are managed by `@pleaseai/code-style`. Run
114114
`pleaseai-code-style update` to refresh this block.

‎apps/docs/src/content/docs/en/index.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "PleaseAI Code Style"
2+
title: "Passion Factory Code Style"
33
description: "Shared ESLint, Prettier, and EditorConfig configurations for consistent code style across PleaseAI projects."
44
mode: custom
55
sidebar:
@@ -10,7 +10,7 @@ sidebar:
1010
tableOfContents: false
1111
---
1212

13-
<Hero title="PleaseAI Code Style" description="Shared ESLint, Prettier, and EditorConfig configurations for consistent code style across PleaseAI projects — plus a CLI that wires them up in one command.">
13+
<Hero title="Passion Factory Code Style" description="Shared ESLint, Prettier, and EditorConfig configurations for consistent code style across PleaseAI projects — plus a CLI that wires them up in one command.">
1414
<LinkButton href="/en/cli" size="lg" icon>Get started</LinkButton>
1515
<LinkButton href="https://github.com/pleaseai/code-style" variant="secondary" size="lg" target="_blank">Star on GitHub</LinkButton>
1616
</Hero>

‎apps/docs/src/content/docs/ko/cli.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ CLI는 `AGENTS.md`에 마커로 구분된 블록을 작성하므로, 주변에
108108
내 프로젝트 노트는 여기에 있습니다.
109109

110110
<!-- pleaseai-code-style:start -->
111-
# PleaseAI Code Style
111+
# Passion Factory Code Style
112112

113113
이 규칙은 `@pleaseai/code-style`에서 관리합니다.
114114
`pleaseai-code-style update`를 실행하면 이 블록이 새로고침됩니다.

‎apps/docs/src/content/docs/ko/index.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "PleaseAI Code Style"
2+
title: "Passion Factory Code Style"
33
description: "PleaseAI 프로젝트 전반에 걸쳐 일관된 코드 스타일을 유지하기 위한 공유 ESLint, Prettier, EditorConfig 설정."
44
mode: custom
55
sidebar:
@@ -10,7 +10,7 @@ sidebar:
1010
tableOfContents: false
1111
---
1212

13-
<Hero title="PleaseAI Code Style" description="PleaseAI 프로젝트를 위한 공유 ESLint, Prettier, EditorConfig 설정 — 이 모든 것을 한 번에 연결해 주는 CLI도 함께 제공합니다.">
13+
<Hero title="Passion Factory Code Style" description="PleaseAI 프로젝트를 위한 공유 ESLint, Prettier, EditorConfig 설정 — 이 모든 것을 한 번에 연결해 주는 CLI도 함께 제공합니다.">
1414
<LinkButton href="/ko/cli" size="lg" icon>시작하기</LinkButton>
1515
<LinkButton href="https://github.com/pleaseai/code-style" variant="secondary" size="lg" target="_blank">GitHub에서 보기</LinkButton>
1616
</Hero>

‎packages/cli/src/appliers.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ async function applyEditorConfig(ctx: ToolContext): Promise<ToolApplyResult> {
136136

137137
// --- AGENTS.md --------------------------------------------------------------
138138

139-
const AGENTS_BODY = `# PleaseAI Code Style
139+
const AGENTS_BODY = `# Passion Factory Code Style
140140
141141
These rules are managed by \`@pleaseai/code-style\`. Run \`pleaseai-code-style update\`
142142
to refresh this block. Do not edit between the marker comments — your changes

‎packages/cli/test/appliers.test.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,13 @@ describe('AGENTS.md rules block', () => {
154154
expect(body).toContain('please-style check')
155155
})
156156

157+
test('titles the block Passion Factory Code Style', async () => {
158+
await applyAgentsMd({ cwd: dir, autoAccept: true })
159+
const body = readFileSync(join(dir, 'AGENTS.md'), 'utf-8')
160+
expect(body).toContain('<!-- pleaseai-code-style:start -->\n# Passion Factory Code Style\n')
161+
expect(body).not.toContain('PleaseAI Code Style')
162+
})
163+
157164
test('points only at rule files the package ships', async () => {
158165
await applyAgentsMd({ cwd: dir, autoAccept: true })
159166
const body = readFileSync(join(dir, 'AGENTS.md'), 'utf-8')

0 commit comments

Comments
 (0)