설정
profile-graphics.yml은 선택 사항이지만 CI에서 카드를 재현 가능하게 유지하는 가장 좋은 방법입니다.
전체 예시
provider:
type: github
user: octocat
include_private: false
charts: [streak, summary, langs, calendar]
output:
dir: profile-graphics
format: svg
layout: separate
raster_background: auto
calendar:
mode: rolling
timezone: Europe/Berlin
locale: en
theme:
mode: auto
native: true
dark_mode_pair: false
svg:
frame: border
frame_radius: 8
frame_title: ""
hide_title: false
number_format: short
animation: none
accessibility: true
cards:
langs:
style: donut
count: 6
exclude: [HTML, CSS]
summary:
metrics: [stars, commits, prs, reviews]
calendar:
weeks: 52
show_months: true
옵션 그룹
| 그룹 | 옵션 |
|---|---|
provider
|
type, user, token, base_url, source, include_private, include_forks, exclude_repos, affiliations, merge
|
output
|
dir, prefix, format, layout, columns, raster_background
|
calendar
|
mode, year, timezone, locale
|
theme
|
preset, custom, mode, native, dark_mode_pair, background, colors
|
svg
|
frame, frame_radius, frame_title, hide_title, number_format, animation, animation_duration, accessibility
|
cards
|
activity, langs, streak, summary, productive_time, punch_card, calendar, calendar_3d, profile_details, profile_card, trophy, repos, coding_time, coding_list, views
|
charts에는 렌더링할 카드를 순서대로 나열합니다. 각 카드와 cards 아래 옵션은 카드를 참고하세요.
calendar.timezone은 Europe/Berlin 같은 IANA 이름입니다(기본값 UTC). 이벤트가 어느 날에 속하는지, 연속 기록이 언제 끝나는지, 생산적인 시간 카드가 어느 시간을 세는지를 정합니다.
theme.background는 색, transparent, 또는 30,#e96443,#904e95 같은 선형 그라디언트를 받습니다. 그라디언트 배경을 참고하세요.
review 프리셋
charts의 review는 summary, streak, calendar, langs, punch-card, repos 순으로 펼쳐집니다. 단어 하나로 프로필 전체를 돌아봅니다. 앞뒤에 다른 카드를 나열할 수 있으며, 두 번 나온 카드는 한 번만 렌더링합니다.
charts: [review, activity]
CLI 플래그와 Action 입력
대부분의 옵션은 YAML을 편집하지 않고도 설정할 수 있습니다. CLI 플래그나 GitHub Action 입력으로 넘기세요. 플래그와 입력은 설정 파일보다 우선합니다. charts 같은 목록은 쉼표로 구분합니다. provider.merge, 사용자 지정 테마, 색 재정의, 카드 크기는 YAML에서만 설정할 수 있습니다.
| 설정 경로 | CLI 플래그 | Action 입력 |
|---|---|---|
provider.type
|
--provider
|
provider
|
provider.user
|
--user
|
user
|
provider.token
|
--token
|
token
|
provider.base_url
|
--base-url
|
base_url
|
provider.source
|
--source
|
source
|
provider.include_private
|
--include-private
|
include_private
|
provider.include_forks
|
--include-forks
|
include_forks
|
provider.exclude_repos
|
--exclude-repos
|
exclude_repos
|
provider.affiliations
|
--affiliations
|
affiliations
|
provider.scope
|
--scope
|
scope
|
provider.include_orgs
|
--include-orgs
|
include_orgs
|
provider.exclude_orgs
|
--exclude-orgs
|
exclude_orgs
|
provider.count_private
|
--count-private
|
count_private
|
provider.count_own_stars
|
--count-own-stars
|
count_own_stars
|
charts
|
--charts
|
charts
|
output.dir
|
--output
|
output
|
output.prefix
|
--prefix
|
prefix
|
output.format
|
--format
|
format
|
output.layout
|
--layout
|
layout
|
output.columns
|
--dashboard-columns
|
dashboard_columns
|
output.raster_background
|
--raster-background
|
raster_background
|
calendar.year
|
--year
|
year
|
calendar.mode
|
--calendar-mode
|
calendar_mode
|
calendar.timezone
|
--timezone
|
timezone
|
calendar.locale
|
--locale
|
locale
|
theme.preset
|
--theme
|
theme
|
theme.mode
|
--theme-mode
|
theme_mode
|
theme.native
|
--native-theme
|
native_theme
|
theme.dark_mode_pair
|
--dark-mode-pair
|
dark_mode_pair
|
theme.background
|
--background
|
background
|
svg.frame
|
--frame
|
frame
|
svg.frame_radius
|
--frame-radius
|
frame_radius
|
svg.frame_title
|
--frame-title
|
frame_title
|
svg.hide_title
|
--hide-title
|
hide_title
|
svg.animation
|
--animation
|
animation
|
svg.animation_duration
|
--animation-duration
|
animation_duration
|
svg.number_format
|
--number-format
|
number_format
|
svg.accessibility
|
--accessibility
|
accessibility
|
cards.activity.days
|
--activity-days
|
activity_days
|
cards.activity.show_grid
|
--activity-grid
|
activity_grid
|
cards.activity.show_points
|
--activity-points
|
activity_points
|
cards.activity.show_average
|
--activity-average
|
activity_average
|
cards.langs.count
|
--langs-count
|
langs_count
|
cards.langs.style
|
--langs-style
|
langs_style
|
cards.langs.exclude
|
--langs-exclude
|
langs_exclude
|
cards.summary.metrics
|
--summary-metrics
|
summary_metrics
|
cards.streak.mode
|
--streak-mode
|
streak_mode
|
cards.streak.exclude_days
|
--exclude-days
|
exclude_days
|
cards.streak.range
|
--streak-range
|
streak_range
|
cards.summary.show_rank
|
--summary-rank
|
summary_rank
|
cards.summary.rank_style
|
--rank-style
|
rank_style
|
cards.punch_card.week_start
|
--week-start
|
week_start
|
cards.productive_time.hour_format
|
--hour-format
|
hour_format
|
cards.calendar.weeks
|
--calendar-weeks
|
calendar_weeks
|
cards.calendar.show_months
|
--calendar-months
|
calendar_months
|
cards.profile_details.show_chart
|
--profile-chart
|
profile_chart
|
cards.profile_card.show_avatar
|
--profile-avatar
|
profile_avatar
|
cards.trophy.columns
|
--trophy-columns
|
trophy_columns
|
cards.trophy.max
|
--trophy-max
|
trophy_max
|
cards.repos.source
|
--repos-source
|
repos_source
|
cards.repos.count
|
--repos-count
|
repos_count
|
cards.calendar_3d.weeks
|
--calendar-3d-weeks
|
calendar_3d_weeks
|
cards.coding_time.days
|
--coding-days
|
coding_days
|
cards.coding_list.count
|
--coding-count
|
coding_count
|
cards.views.style
|
--views-style
|
views_style
|
cards.views.label
|
--views-label
|
views_label
|
cards.views.start
|
--views-start
|
views_start
|
캘린더 기간
calendar.mode는 모든 카드가 다루는 날짜를 정합니다. current-year(기본값)는 올해 1월부터 12월까지, last-year는 작년, rolling은 GitHub 프로필 그래프처럼 오늘까지 최근 12개월을 보여 줍니다. calendar.year는 연도 하나를 고르며 모드보다 우선합니다. 합계, 연속 기록, 캘린더 카드는 기간을 따르므로 rolling을 쓰면 해가 바뀌어도 연속 기록이 이어집니다.
calendar:
mode: rolling
# year: 2025 picks one calendar year instead
timezone: Europe/Berlin
카드 언어
calendar.locale은 BCP 47 태그입니다(기본값 en-US). 카드 라벨은 30개 언어로 번역되어 있고(아랍어, 히브리어, 페르시아어는 오른쪽에서 왼쪽으로 그립니다), 그 밖의 로캘은 영어 라벨을 씁니다. 숫자, 날짜, 월, 요일, 기간은 항상 설정한 로캘에 맞춰 Intl로 서식을 지정합니다.
영어
calendar:
locale: en
러시아어
calendar:
locale: ru
독일어
calendar:
locale: de
스페인어
calendar:
locale: es
프랑스어
calendar:
locale: fr
포르투갈어
calendar:
locale: pt
일본어
calendar:
locale: ja
중국어
calendar:
locale: zh
다크·라이트 쌍
네이티브 자동 테마에서는 모든 SVG가 이미 prefers-color-scheme으로 라이트와 다크를 전환합니다. dark_mode_pair: true는 그 대신 <picture> 요소용으로 카드마다 streak-light.svg, streak-dark.svg처럼 파일 두 개를 씁니다. 네이티브 자동 테마에만 적용되며, 프리셋이나 사용자 지정 테마는 카드마다 파일 하나를 씁니다.
theme:
mode: auto
native: true
dark_mode_pair: true
<picture>
<source media="(prefers-color-scheme: dark)" srcset="profile-graphics/streak-dark.svg" />
<img alt="Streak" src="profile-graphics/streak-light.svg" />
</picture>
대시보드
output.layout: dashboard는 카드마다 파일을 만드는 대신 charts의 모든 카드를 이미지 하나 dashboard.svg(또는 PNG, WebP)에 넣습니다. output.columns는 한 줄에 놓을 카드 수를 1~4로 정합니다(기본값 2).
charts: [streak, summary, langs, calendar]
output:
layout: dashboard
columns: 2
프레임과 제목
svg.frame은 각 카드를 무엇으로 감쌀지 정합니다. frame_radius는 모서리를 둥글게 합니다(0~40, 기본값 8).
테두리
기본값: 빈 캘린더 칸 색의 얇은 테두리.
svg:
frame: border
frame_radius: 8
창
신호등과 선택적인 가운데 제목이 있는 창 막대.
svg:
frame: window
frame_title: "{user}"
프레임 없음
배경만 있어 직접 만든 레이아웃 안에 넣기 좋은 카드.
svg:
frame: none
frame_title은 카드 위에 제목을 추가합니다(최대 120자). 다음 플레이스홀더는 통계로 채워지며, 숫자는 캘린더 로캘로 표시됩니다:
| 플레이스홀더 | 값 |
|---|---|
{user}
| 사용자 이름 |
{name}
| 표시 이름, 없으면 사용자 이름 |
{year}
| 캘린더 기간의 연도 |
{total}
| 기간 내 기여 |
{active_days}
| 기여가 한 번이라도 있는 날 수 |
{streak}
| 현재 연속 기록(일) |
{longest_streak}
| 최장 연속 기록(일) |
{best_day}
| 하루 최다 기여 |
{best_date}
| 그날의 날짜 |
{stars}
| 내 저장소의 스타 |
{commits}
| 기간 내 커밋 |
{followers}
| 팔로워 |
{top_language}
| 가장 많이 쓴 언어 |
제목, 숫자, 애니메이션
svg.hide_title: true는 제목이 있는 모든 카드의 제목을 숨깁니다. 카드별로는 title이 제목을 바꾸고 hide_title이 숨깁니다. 카드 제목을 참고하세요.
svg.number_format은 카드가 수를 쓰는 방식을 정합니다. short(기본값)는 카드 로캘에 맞춰 1.2K처럼 줄여 쓰고, long은 1,247처럼 전부 씁니다.
svg.animation은 SVG 카드에 등장 애니메이션을 추가합니다. fade는 내용을 서서히 나타나게 하고, rise는 여기에 몇 픽셀 떠오르는 효과를 더합니다. animation_duration은 길이를 초 단위로 정합니다(0.2~5, 기본값 0.8). 시스템에서 동작 줄이기를 요청한 방문자에게는 애니메이션 없이 보이며, PNG와 WebP 파일은 움직이지 않습니다. 기본값은 none입니다.
svg:
hide_title: true
number_format: long
animation: rise
animation_duration: 0.8
profile-snake와 설정 하나 공유하기
extends는 현재 파일 기준 상대 경로의 다른 YAML 또는 JSON 파일을 가리킵니다. 그 파일을 먼저 읽고 현재 파일을 위에 병합합니다. 중첩된 섹션은 키별로 병합되고, 목록과 값은 대체됩니다. 공유할 provider, calendar, theme을 profile.yml 하나에 두고 profile-graphics.yml과 profile-snake.yml 양쪽에서 확장하세요.
provider:
user: octocat
calendar:
mode: rolling
timezone: Europe/Berlin
theme:
preset: tokyo-night
extends: ./profile.yml
charts: [streak, summary, langs]
한 도구가 모르는 키(snake나 charts 등)는 다른 도구에서 무시됩니다. 서로 확장할 수 있는 파일은 최대 8개이며, 순환이나 누락된 파일은 설정 오류로 멈춥니다. 플레이그라운드와 웹 컴포넌트는 설정 하나만 읽고 extends를 따라가지 않습니다.
에디터 지원
YAML language server를 지원하는 에디터에서 자동 완성과 검증을 쓰려면 파일 맨 위에 이 줄을 추가하세요. profile-graphics init이 대신 써 줍니다. profile-graphics schema는 패키지에 포함된 스키마 경로를 출력합니다.
# yaml-language-server: $schema=https://unpkg.com/profile-graphics/profile-graphics.schema.json
provider:
user: octocat