Skip to content

Commit b70c93f

Browse files
sungbin1015claude
andcommitted
refactor(contribute): notion_to_contribute.py → notion_to_docs_generic.py로 교체
Notion DB가 제목·날짜 2개 컬럼만 사용하므로 전용 스크립트 불필요. 기존 날짜-prefix 파일 제거, generic sync로 재생성. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 3b4fbfb commit b70c93f

8 files changed

Lines changed: 29 additions & 38 deletions

File tree

.github/workflows/notion-sync.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ jobs:
5353
fi
5454
5555
if [ -n "$_CONTRIBUTE_DB" ]; then
56-
NOTION_CONTRIBUTE_DATABASE_ID="$_CONTRIBUTE_DB" python scripts/notion_to_contribute.py &
56+
NOTION_DATABASE_ID="$_CONTRIBUTE_DB" SAVE_DIR=docs/contribute FETCH_MODE=ALL \
57+
python scripts/notion_to_docs_generic.py &
5758
pids+=($!)
5859
fi
5960

docs/contribute/.notion-sync.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"365e15b4-0359-8084-90c6-edee534d0dda": "docs/contribute/테스트2.md",
3+
"364e15b4-0359-80ae-ad1c-f862644e8c78": "docs/contribute/날짜-필수-입력.md",
4+
"364e15b4-0359-80ae-a8c7-f5340ad286af": "docs/contribute/이름변경.md"
5+
}

docs/contribute/2026-05-14-1-날짜-필수-입력.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

docs/contribute/2026-05-22-2-이름변경.md

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
id: 날짜-필수-입력
3+
title: "날짜 필수 입력"
4+
sidebar_position: 2
5+
---
6+

docs/contribute/이름변경.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
id: 이름변경
3+
title: "이름변경"
4+
sidebar_position: 3
5+
---
6+
7+
테스트 글 작성
8+

docs/contribute/테스트2.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
id: 테스트2
3+
title: "테스트2"
4+
sidebar_position: 1
5+
---
6+

scripts/sync-local.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ fi
2929
# Contribute
3030
CONTRIBUTE_DB="${NOTION_CONTRIBUTE:-$NOTION_CONTRIBUTE_DATABASE_ID}"
3131
if [ -n "$CONTRIBUTE_DB" ]; then
32-
NOTION_CONTRIBUTE_DATABASE_ID="$CONTRIBUTE_DB" python scripts/notion_to_contribute.py &
32+
NOTION_DATABASE_ID="$CONTRIBUTE_DB" SAVE_DIR=docs/contribute FETCH_MODE=ALL \
33+
python scripts/notion_to_docs_generic.py &
3334
pids+=($!)
3435
fi
3536

0 commit comments

Comments
 (0)