Skip to content

Latest commit

Β 

History

History
135 lines (100 loc) Β· 5.49 KB

File metadata and controls

135 lines (100 loc) Β· 5.49 KB

tech.kakao.com

주의: GitHub Pages와 Jekyll에 λŒ€ν•΄μ„œ μΆ©λΆ„νžˆ μˆ™μ§€ν•  것. 주의: Collaborating on projects using issues and pull requests을 정독.

μ„€μΉ˜

https://github.com/kakao/kakao.github.io 에 push κΆŒν•œμ΄ μžˆλ‹€λ©΄:

  1. git fetch or pull or clone
  2. Jekyll μ„€μΉ˜
$ git clone git@github.com:kakao/kakao.github.io.git
$ cd kakao.github.io
$ bundle install

https://github.com/kakao/kakao.github.io 에 push κΆŒν•œμ΄ μ—†λ‹€λ©΄:

  1. https://github.com/kakao/kakao.github.io μ—μ„œ Fork λ²„νŠΌ ν΄λ¦­ν•˜κ³ ,
  2. 포크 μ €μž₯μ†Œ 계정(maybe 개인 계정) 선택
  3. git fetch or pull or clone
  4. 포크 μ„€μ • Configuring a remote for a fork
  5. 포크 동기화 Syncing a fork
  6. Jekyll μ„€μΉ˜
$ git clone git@github.com:YOUR_GITHUB_ACCOUNT/kakao.github.io.git
$ cd kakao.github.io
$ git remote add upstream git@github.com:kakao/kakao.github.io.git
$ git fetch upstream
$ git checkout master
$ git merge upstream/master
$ bundle install

μ‹€ν–‰(둜컬)

$ bundle exec jekyll serve
$ open http://localhost:4000

배포(λ°œν–‰)

https://github.com/kakao/kakao.github.io 에 push κΆŒν•œμ΄ μžˆλ‹€λ©΄:

$ git commit -m '...'
$ git push origin master

https://github.com/kakao/kakao.github.io 에 push κΆŒν•œμ΄ μ—†λ‹€λ©΄:

  1. Fork 동기화 Syncing a fork
  2. Pull Request 보내기 Creating a pull request

μƒˆ κΈ€ μž‘μ„±

  1. _drafts 디렉토리에 μ λ‹Ήν•œμ΄λ¦„.md μ΄λ¦„μœΌλ‘œ νŒŒμΌμ„ λ§Œλ“€κ³ 
  2. 포슀트λ₯Ό λ§ˆν¬λ‹€μš΄μœΌλ‘œ μž‘μ„±
  • gfm 문법, kramdown νŒŒμ„œ, rouge 문법강쑰기 μ‚¬μš©
  1. 확인
$ bundle exec jekyll serve --drafts

κΈ€ μ“°κΈ°

  1. _posts 디렉토리에 yyyy-mm-dd-slug.md 파일둜 볡사(or 이동).
  • slug: ν•΄λ‹Ή 포슀트의 고유 ν‚€λ‘œ url의 μΌλΆ€λ‘œ μ‚¬μš©. μ™ λ§Œν•˜λ©΄ νŠΉμˆ˜λ¬Έμžμ—†μ΄ 영문자,숫자,-(ν•˜μ΄ν”ˆ),.(점)...만 μ‚¬μš©.
  • yyyy,mm,dd: λ°œν–‰ λ…„,μ›”,일.
  • μ°Έκ³ : μ΅œμ’…μ μœΌλ‘œ 포슀트의 url(permalink)λŠ” http://tech.kakao.com/yyyy/mm/dd/slug/
  1. 파일 상단에 front matter μž‘μ„±
  • layout: post # λ ˆμ΄μ•„μ›ƒ(ν•„μˆ˜). page λ ˆμ΄μ•„μ›ƒμ„ μ‚¬μš©ν•˜λ©΄ λͺ©λ‘μ— 보이지 μ•ŠλŠ” 글을 μ“Έ 수 있음.
  • title: '제λͺ©' # 제λͺ©(ν•„μˆ˜)
  • author: lastname.firstname # ν•„μž(ν•„μˆ˜). μ™ λ§Œν•˜λ©΄ νšŒμ‚¬ 아이디(예: iolo.fitzowen) μ‚¬μš©
  • tags: [tag1,tag2,tag3,...] # νƒœκ·Έ λͺ©λ‘(선택). μ™ λ§Œν•˜λ©΄ νŠΉμˆ˜λ¬Έμžμ—†μ΄ μ˜μ†Œλ¬Έμž,숫자,-(ν•˜μ΄ν”ˆ),.(점)...만 μ‚¬μš©.
  • image: http://... # 컀버이미지 url(선택)
  • date: YYYY-MM-DD HH:MM:SS # λ°œν–‰μΌ(ν•„μˆ˜)
  1. 처음 글을 μ“°λŠ” ν•„μžμ΄λΌλ©΄ 글쓴이 등둝(ν•„μˆ˜)
  2. 유λ ₯ν•œ(?) νƒœκ·Έκ°€ μƒˆλ‘œ λ“±μž₯ν–ˆλ‹€λ©΄ νƒœκ·Έ 등둝(선택)

ν•„μž 등둝

  1. _authors 디렉토리에 lastname.firstname.md μ΄λ¦„μœΌλ‘œ ν•„μž 정보 파일 μΆ”κ°€
  1. 파일 상단에 front matter μž‘μ„±
  • layout: author # λ ˆμ΄μ•„μ›ƒ(ν•„μˆ˜)
  • name: lastname.firstname # post의 author와 λ§€μΉ­(ν•„μˆ˜). μ™ λ§Œν•˜λ©΄ νšŒμ‚¬ 아이디(예: iolo.fitzowen) μ‚¬μš©. μ™ λ§Œν•˜λ©΄ νŠΉμˆ˜λ¬Έμžμ—†μ΄ μ˜μ†Œλ¬Έμž,숫자,-(ν•˜μ΄ν”ˆ),.(점)...만 μ‚¬μš©.
  • title: ... # μ™ λ§Œν•˜λ©΄ ν•œκΈ€μ΄λ¦„ μ‚¬μš©( ν•„μˆ˜)
  • image: http://... # ν”„λ‘œν•„ 이미지(ν•„μˆ˜)
  • cover: http://... # μž‘μ„±μž 컀버 이미지(선택)
  1. λ‚΄μš©μ€ ν•„μš”μ—†μŒ

νƒœκ·Έ 등둝

  1. _tags 디렉토리에 tag-name.md μ΄λ¦„μœΌλ‘œ νƒœκ·Έ 정보 파일 μΆ”κ°€
  1. 파일 상단에 front matter μž‘μ„±
  • layout: tag # λ ˆμ΄μ•„μ›ƒ(ν•„μˆ˜)
  • name: tag-name # post의 tags λ°°μ—΄μ˜ ν•­λͺ©κ³Ό λ§€μΉ­(ν•„μˆ˜). μ™ λ§Œν•˜λ©΄ νŠΉμˆ˜λ¬Έμžμ—†μ΄ μ˜μ†Œλ¬Έμž,숫자,-(ν•˜μ΄ν”ˆ),.(점)...만 μ‚¬μš©.
  • title: ... # μ’€ 더 κΈΈκ³  ꡬ체적인 μ„€λͺ…(ν•„μˆ˜)
  1. λ‚΄μš©μ€ ν•„μš”μ—†μŒ

문의: opensource@kakaocorp.com

May the SOURCE be with you...

License

This software is licensed under the Apache 2 license, quoted below.

Copyright 2017 Kakao Corp. http://www.kakaocorp.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this project except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

caution

Kakao fonts(/assets/fonts/) and image(/assets/image/) are only avaiable for Kakao brands.

카카였 폰트(/assets/fonts/)와 이미지(/assets/image/)λŠ” 카카였 λΈŒλžœλ“œμš©μœΌλ‘œ λ‹€λ₯Έ μš©λ„λ‘œλŠ” μ΄μš©ν•  수 μ—†μŠ΅λ‹ˆλ‹€.