Github λΈλ‘κ·Έλ Github Page, Jekyll(μ§ν¬), Ruby(루λΉ)κ° νμμ΄λ€.
1. Jekyll ν λ§ κ³ λ₯΄κΈ°
Jekyll Themes
jekyllthemes.org
μ νμ΄μ§μ λ€μ΄κ° λ§μμ λλ ν λ§λ₯Ό κ³ λ₯Έλ€.
http://jekyllthemes.org/themes/agency/
Agency
This is the Agency Bootstrap theme converted to a gem-based Jekyll theme with GitHub Pages support. While this had been done before, (here, here, and here), these are outdated and have not been updated or maintained for years. I built this theme from the m
jekyllthemes.org
λ³ΈμΈμ΄ μνλ ν λ§λ₯Ό 골λΌμ€λ€.
νμλ μ΄ ν λ§λ‘ λ€μ΄λ‘λλ₯Ό λ°μλ€.
Jekyllμ΄λ?
μ§ν¬μ κΉνλΈ μ€λ¦½μ μ€μ ν λͺ μ΄ Ruby μΈμ΄λ₯Ό ν΅ν΄ κ°λ°ν νλ μμν¬μ΄λ€.
μ¦, HTML/Markdownλ±μ λ§ν¬μ μΈμ΄λ‘ κΈμ μμ±νλ©΄ μ΄κ²μ 미리 μ μν΄λμ κ·μΉμ λ°λΌ λ€μν λ μ΄μμμΌλ‘ ν¬μ₯νμ¬ μ μ μΉμ¬μ΄νΈλ₯Ό λ§λ€μ΄μ€λ€.
λν μ μ μ¬μ΄νΈ λΉλμ΄λ€.(Static Website Builder)(μ μ μΉ νμ΄μ§ μμ±κΈ°)
2. Ruby μ€μΉ
Rubyλ?
- μ€ν¬λ¦½νΈ μΈμ΄μ μΌμ’ μ΄λ€.
μ€ν¬λ¦½νΈ μΈμ΄λ? κΈ°μ‘΄μ μ΄λ―Έ μ‘΄μ¬νλ μννΈμ¨μ΄ (μ ν리μΌμ΄μ )μ μ μ΄νκΈ° μν μ©λλ‘ μ°μ΄λ μΈμ΄.
μ€ν¬λ¦½νΈ μΈμ΄μ μ : JavaScript, Python
- μμ μλ£νμ΄ μ‘΄μ¬νμ§ μκ³ λͺ¨λ κ²μ΄ κ°μ²΄μΈ μμν κ°μ²΄μ§ν₯ μΈμ΄μ΄λ€.
https://rubyinstaller.org/downloads/
Downloads
Which version to download? If you don’t know what version to install and you’re getting started with Ruby, we recommend that you use the Ruby+Devkit 3.2.X (x64) installer. It provides the biggest number of compatible gems and installs the MSYS2 Devkit
rubyinstaller.org
Ruby + Devkit 3.2.2-1 (*86) μΌλ‘ λ€μ΄λ°μμΌ νλ€. (2023λ )
νμλ.. 2.7.9-1 (*64)λ‘ μλͺ» λ€μ΄ λ°μλλ λ°κ³Ό κ°μ μ€λ₯κ° κ³μ λ΄λ€.
μ¬λ¬ ν΄κ²°μ± μ μ¨λ΄€λλ° μ μ€λ₯λ ν΄κ²°λ κΈ°λ―Έκ° λ³΄μ΄μ§ μμκ³ ,,
κ²°κ΅ Rubyλ₯Ό μ§μ λ€κ° λ€μ μ€μΉνλ€.
(ν루κ°...νλ± κ°λ²λ¦Ό)
- ruby μ λ°μ΄νΈλ ν΄λ³΄κ³ (gem update --system)
- jekyll μ λ°μ΄νΈλ ν΄λ³΄κ³ (gem update jekyll)
- Sass μ»΄νμΌλ¬ λ²μ νμΈλ ν΄λ³΄κ³ (gem update sass)
- Sass μ§μ λ€κ° λ€μ κΉμλ λ³΄κ³ (gem uninstall sass, gem install sass)
- λͺ¨λ κ±Έ(?) μ§μ λ€κ° μ¬μ€μΉλ ν΄λ΄€μ§λ§ λ§μ§±λ루묡
(gem uninstall sass
gem uninstall sass-embedded
gem uninstall jekyll-sass-converter
gem uninstall jekyll
gem install sass
gem install jekyll-sass-converter
gem install jekyll)
λ²μ νμΈμ μνκ³ λ£¨λΉλ₯Ό λ€μ΄λ°μμ€λ€.
(10 - 20λΆ κ±Έλ¦°λ€)
μλμ°μ rubyλ₯Ό κ²μν ν Start Command Prompt with Rubyλ₯Ό μ€νμμΌμ€λ€.
cd C:\Users\4ckdn\OneDrive\λ¬Έμ\GitHub\haeburney.github.io
λ³ΈμΈμ git Clone κ²½λ‘(ν΄λ)λ‘ μ΄λνλ€.
(μλμ°μμ GitHubκ²μν΄μ λ¬ ν΄λλ‘ λμ github.io ν΄λλ₯Ό μ°Ύμλλ€.
μ΄λν λ€, μΈμ½λ©μ νλ€.
chcp 65001
λͺ λ Ήμ΄ μ λ ₯ ν Active code page:650001 μ΄λΌλ κΈμκ° νμΈλλ€λ©΄ μ μμ΄λ€.
3. Jekyll μ€μΉ
gem install jekyll bundler
gem install webrick
gem install jekyll bundler λͺ λ Ήμ΄ μ λ ₯νκ³ μ΄λ° νλ©΄μ΄ λ³΄μΈλ€λ©΄ μ±κ³΅
λ€ μ€μΉνλλ° 3~5λΆμ΄ κ±Έλ Έλ€.
gem install webrick λͺ λ Ήμ΄λ₯Ό μ λ ₯νκ³ μ΄λ° νλ©΄μ΄ λ³΄μΈλ€λ©΄ μ±κ³΅μ΄ λͺ λ Ήμ΄λ 5~10μ΄λ§μ? μ€μΉκ° μλ£λλ€.
jekyll μμ±
jekyll new ./
-- 첫λ²μ§Έ λ¬Έμ₯μ΄ μ λλ€λ©΄ μΈλ²μ§Έ λ¬Έμ₯μ μ€νν΄λ³΄μ ( νμ΄ μΈλκ° μλ €μ€ νΏ β‘)
jekyll new ./ -f
μ€μΉ μ±κ³΅
bundle μ€μΉ
bundle install
jekyll μλ² λμ
bundle exec jekyll serve
bundle exec jekyll serve --trace
-- 1λ² λ¬Έμ₯μ΄ μ λλ€λ©΄ 2λ² λ¬Έμ₯μ μ¨λ³΄μ.
http://127.0.0.1:4000/#
μ£Όμλ‘ λ€μ΄κ°μ λ λ°κ³Ό κ°μ΄ 보μ΄λ©΄ μ°λ μ±κ³΅μ΄λ€!
μ¬κΈ°κΉμ§ λμΌλ©΄ ν λ² μ리λ₯Ό μ§λ¬μ€λλ€
κΊν~~~~~~
λ€μ κ²μλ¬Όμ jekyll ν λ§λ₯Ό μ μ©ν΄λ³΄λ λ°©λ²μ λν΄μ ν¬μ€ν ν΄λ³΄κ²μ΅λλ€
'πΆπππ·ππ' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ
revert νκΈ° pushνκ±° λλ리기 (0) | 2024.05.25 |
---|---|
Github README Stack λ£κΈ° (0) | 2023.07.30 |
1-3. github.io ν λ§ μ μ© & νΈμ§νκΈ° (0) | 2023.07.22 |
[Error : Github build failed] theme could not be found. (0) | 2023.07.21 |
1-1. github.io νμ΄μ§ λ§λ€κΈ° (github repository μμ±, VScode μ°κ²°) (2) | 2023.07.13 |