Skip to content

Commit 2b45e45

Browse files
sungbin1015claude
andcommitted
chore(contribute): overview/TEMPLATE 페이지 제거 — Notion 동기화 파일만 유지
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b713530 commit 2b45e45

4 files changed

Lines changed: 2 additions & 122 deletions

File tree

docs/contribute/TEMPLATE.md

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

docs/contribute/new_file.mdc

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

docs/contribute/overview.md

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

scripts/notion_to_contribute.py

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77

88
SAVE_DIR = "docs/contribute"
99
STATIC_IMG_DIR = "static/img/contribute"
10-
OVERVIEW_FILE = f"{SAVE_DIR}/overview.md"
11-
SKIP_FILES = {"overview.md", "TEMPLATE.md"}
10+
SKIP_FILES = {"_category_.json", ".contribute-sync.json"}
1211

1312
NOTION_PROPERTY_TITLE = os.environ.get("NOTION_PROPERTY_TITLE", "제목")
1413
NOTION_PROPERTY_DATE = os.environ.get("NOTION_PROPERTY_DATE", "날짜")
@@ -196,19 +195,6 @@ def save_sync_map(mapping):
196195
json.dump(mapping, f, ensure_ascii=False, indent=2)
197196

198197

199-
def update_overview_count(count):
200-
"""overview.md의 '현재: X건' 숫자를 갱신."""
201-
if not os.path.exists(OVERVIEW_FILE):
202-
return
203-
with open(OVERVIEW_FILE, encoding="utf-8") as f:
204-
content = f.read()
205-
updated = re.sub(r"현재: \d+건", f"현재: {count}건", content)
206-
if updated != content:
207-
with open(OVERVIEW_FILE, "w", encoding="utf-8") as f:
208-
f.write(updated)
209-
print(f">> overview.md 카운트 갱신: {count}건")
210-
211-
212198
def save_contribution(page, date_str, existing_map):
213199
if len(date_str) > 10:
214200
date_str = date_str[:10]
@@ -336,12 +322,7 @@ def main():
336322
existing_map = {k: v for k, v in existing_map.items() if v in synced_files}
337323

338324
save_sync_map(existing_map)
339-
340-
# overview.md 카운트 갱신 (전체 추적 파일 수 기준)
341-
total = len(existing_map)
342-
update_overview_count(total)
343-
344-
print(f">> 완료: {saved}개 저장, 누적 {total}건")
325+
print(f">> 완료: {saved}개 저장, 누적 {len(existing_map)}건")
345326

346327

347328
if __name__ == "__main__":

0 commit comments

Comments
 (0)