What problem does it solve?
GitHub Pages + GitHub API ์ปค๋ฐ ๊ธฐ๋ฐ ์ค์ ๋ณ๊ฒฝ ํจํด์ ๊ตฌํํ๋ค.
MagicSplit์ docs/ ์น UI์ ์ ํ๋๋ฅผ ์ถ๊ฐํ๊ฑฐ๋, config-editor ํ์ด์ง๋ฅผ ์ฒ์
๊ตฌ์ฑํ๊ฑฐ๋, config.json์ ์ ํ๋ผ๋ฏธํฐ์ HTML ํผ์ ์ฐ๋ํ๊ฑฐ๋, GitHub API
409 Conflict / SHA ๋ถ์ผ์น ์ค๋ฅ๋ฅผ ๋๋ฒ๊น
ํ ๋ ๋ฐ๋์ ์ด ์คํฌ์ ์ฌ์ฉํ๋ค.
docs/ ํด๋์ JavaScript๊ฐ config.json์ ์ฝ๊ณ ์ฐ๋ ๋ชจ๋ ์์
์ ๊ธฐ์ค์ด๋ค.
Core Features & Use Cases
- GitHub Contents API๋ฅผ ํตํ GET/PUT ํ๋ฆ์ผ๋ก config.json์ ์์ ํ๊ฒ ํธ์งํ๊ณ ์ปค๋ฐํฉ๋๋ค.
- SHA ๊ฒ์ฆ(SHA-locked) ์ ๋ต์ผ๋ก 409 Conflict๋ฅผ ํผํ๊ณ ์ฐ์ ์ ์ฅ ์ ์์ ์ ์ผ๋ก ์
๋ฐ์ดํธ๋ฅผ ์ ์งํฉ๋๋ค.
- Base64 ์ธ์ฝ๋ฉ/๋์ฝ๋ฉ๊ณผ UTF-8 ํ๊ธ ์ฒ๋ฆฌ์ ๊ด๋ จ๋ ๋ธ๋ผ์ฐ์ ํธํ์ฑ ๊ฐ์ด๋๋ฅผ ์ ๊ณตํฉ๋๋ค.
- docs UI์ config-editor ํ์ด์ง ๊ฐ์ ์ฐ๋, ์๋ก์ด ํ๋ผ๋ฏธํฐ ์ถ๊ฐ ๋ฐ ํผ ํ๋ ๋งคํ์ ๋ํ ์ค๋ฌด ํจํด์ ์ ๊ณตํฉ๋๋ค.
- PAT ๋ณด์ ์ด์, ๋ก์ปฌ ์ ์ฅ์ ํ์ฉ, ์๋ฌ ํธ๋ค๋ง ๋ฐ ์ํฌํ๋ก์ฐ ์ ํฉ์ฑ ํ๋ณด๋ฅผ ์ํ ๊ตฌํ ๊ฐ์ด๋๋ฅผ ํฌํจํฉ๋๋ค.
Quick Start
Use this skill to wire the docs UI to config.json via the GitHub Contents API and ensure commits include the current SHA.