아직은 꿈꾸고 있는
GitHub Blog 만들기 _with_ Jekyll, Minimal Mistakes 본문
1. Jekyll Fork를 통한 GitHub Blog 생성
GitHub 계정 생성
https://github.com/Jekyll theme 을 GitHub에 fork
Jekyll theme 중 맘에드는 theme fork
Jekyll Minimal Mistakes : https://github.com/mmistakes/minimal-mistakes
Jekyll Themes : https://jekyllthemes.io/
Jekyll Themes : http://jekyllthemes.org/repository 명 [GitHub계정].github.id 으로 변경
GitHub repository - Settings - Repository name RenameGitHub Desktop 설치 및 환경변수 설정
https://desktop.github.com/
환경변수 Path : C:\Users\{ 계정 }\AppData\Local\GitHubDesktop\app-2.1.0\resources\app\git\cmdLocal Git Clone
2. JupyterLab setting
git clone http://github.com/{ GitHub id }/{ GitHub id }.github.io.git
git config --global user.name { GitHub id }
git config --global user.password { GitHub password }Python 설치
https://www.python.org/downloads/
설치 중 환경변수 Path 추가 : Add Python 3.x Path
또는 환경변수 Path 추가 :C:\Users\\{ windows id }\AppData\Local\Programs\Python\Python37-32 C:\Users\\{ windows id }\AppData\Local\Programs\Python\Python37-32\Scripts
JupyterLab 설치
pip install jupyerlab
NBConvert 설치
command 실행pip install nbconvert
Jupyter (.ipynb) → Jekyll (.md) 변환 템플릿 작성
jekyll.tpl 파일 생성{% extends 'markdown.tpl' %}
{%- block header -%}
---
{%- endblock header -%}Jupyter (.ipynb) → Jekyll (.md) 변환 스크립트 작성
post.bat 파일 생성3. Jekyll 설정
jupyter nbconvert --to markdown --template jekyll.tpl _ipynbs/*.ipynb --output-dir=_posts
git add --all
git commit -m "posted %date% %time%"
git push -u origin master_config.yml 수정
name, description 수정
4. Publish Post
- 파일 이름
YYYY-MM-DD-제목.md - 파일 헤더