GitHub Pagesでmarkdownを公開する2
**** GitHub Pagesでmarkdownを公開する2:Repositoryをcloneし,markdownをpushする
*** overview
*** relative posts
- 1905-github-pages-with-jekyll-publishment
*** reference
- N/A
*** procedure
** note
** logs
* git clone
(base) g:\workspace>git clone https://github.com/sakai-memoru/www.git Cloning into 'www'... remote: Enumerating objects: 13, done. remote: Counting objects: 100% (13/13), done. remote: Compressing objects: 100% (10/10), done. remote: Total 13 (delta 1), reused 0 (delta 0), pack-reused 0 Unpacking objects: 100% (13/13), done. (base) g:\workspace\www>powershell ls Directory: G:\workspace\www Mode LastWriteTime Length Name ---- ------------- ------ ---- -a---- 5/6/2019 15:11 278 README.md -a---- 5/6/2019 15:11 28 _config.yml
* modify index.md
(base) g:\workspace\www>type index.md --- --- # memoru's page ## *** overview - GitHub repository で、markdown filesを公開! ## *** contents ### ** Jekyll + [./logs/1905-github-pages-with-jekyll-publishment.md](./logs/1905-github-pages-with-jekyll-publishment.html) + [./logs/1905-clone-and-push-markdowns-for-jekyll-publishment.md](./logs/1905-clone-and-push-markdowns-for-jekyll-publishment.html) // --- end of index --- //
* add /logs/1905-github-pages-with-jekyll-publishment.md, etc
- Save target md files as UTF-8.
(base) g:\workspace\www\logs>powershell ls Directory: G:\workspace\www\logs Mode LastWriteTime Length Name ---- ------------- ------ ---- -a---- 5/6/2019 15:33 2087 1905-clone-and-push-markdowns-for-jekyll-publishment.md -a---- 5/6/2019 15:32 2502 1905-github-pages-with-jekyll-publishment.md
* create .gitignore from gibo template
(base) g:\workspace\www>gibo dump vim python jekyll > .gitignore (base) g:\workspace\www>ls (base) g:\workspace\www>powershell ls Directory: G:\workspace\www Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 5/6/2019 15:33 logs -a---- 5/6/2019 15:35 1607 .gitignore -a---- 5/6/2019 15:25 13022 .index.md.un~ -a---- 5/6/2019 15:26 407 index.md -a---- 5/6/2019 15:11 278 README.md -a---- 5/6/2019 15:11 28 _config.yml
* git commit and push
(base) g:\workspace\www>git status On branch master Your branch is up-to-date with 'origin/master'. Untracked files: (use "git add <file>..." to include in what will be committed) .gitignore index.md logs/ nothing added to commit but untracked files present (use "git add" to track) (base) g:\workspace\www>git add . warning: LF will be replaced by CRLF in logs/1905-clone-and-push-markdowns-for-jekyll-publishment.md. The file will have its original line endings in your working directory. (base) g:\workspace\www>git commit -m "add index.md and logs" [master 3f72697] add index.md and logs 4 files changed, 298 insertions(+) create mode 100644 .gitignore create mode 100644 index.md create mode 100644 logs/1905-clone-and-push-markdowns-for-jekyll-publishment.md create mode 100644 logs/1905-github-pages-with-jekyll-publishment.md (base) g:\workspace\www>git push fatal: AggregateException encountered. One or more errors occurred. Username for 'https://github.com': sakai-memoru Password for 'https://sakai-memoru@github.com': Counting objects: 7, done. Delta compression using up to 4 threads. Compressing objects: 100% (7/7), done. Writing objects: 100% (7/7), 3.26 KiB | 0 bytes/s, done. Total 7 (delta 0), reused 0 (delta 0) To https://github.com/sakai-memoru/www.git 864f39e..3f72697 master -> master
* access url
index
logs/1905-github-pages-with-jekyll-publishment.html
** notice
- mdが、utf-8でない場合など、GitHub側のJekyllのgenerationでerrorが発生すると、以下のmailが飛んでくる。(GitHubも、LocalでJekyllを動かして、正しく生成されることを確認して、pushすることを推奨している)
- 次のpostで、LocalでのJekyllの確認について、記述する
// --- end of markdown --- //