Skip to content

Commit 4ca9acb

Browse files
committed
feat: format markdown file by prettier
1 parent 994f099 commit 4ca9acb

File tree

106 files changed

+2940
-2867
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+2940
-2867
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"license": "MIT",
99
"private": true,
1010
"scripts": {
11+
"format": "yarn prettier --write **/*.md",
1112
"lint": "textlint **/*.md",
1213
"lint:fix": "yarn lint --fix"
1314
},

前端/2013-10-02-blog-build-course.md

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ keywords: markdown
77
description:
88
---
99

10-
1110
关键词:**Git+github+jekyll+.tk+DNS.LA+markdown**
1211

1312
## 前言:搭建博客的几大要素
@@ -16,23 +15,22 @@ description:
1615
- 一个服务器(即博客的代码存放的地方,这里选用 github)
1716
- 一个 Blog 生成工具(这里选用 jekyll,类似 WordPress)
1817

19-
## 第一部分:使用GitHub Pages快速生成博客
20-
18+
## 第一部分:使用 GitHub Pages 快速生成博客
2119

22-
### 一、介绍Git和Github
20+
### 一、介绍 Git 和 Github
2321

2422
Git,一个非常强大的版本管理工具。
2523

2624
Github 则是一个基于 Git 的日益流行的开源项目托管库,也就是你的“代码仓库”(repository)。
2725

2826
你可以在本地或者网上对自己的代码进行修改,而 Github 就是一个将你对代码的任何修改和更改说明(commit)进行同步的一个工具,并且可以进行版本管理。在我们搭建博客的过程中,它就扮演着一个“云仓库”服务器的角色,存放我们的博客代码。
2927

30-
### 二、Github的安装和配置
28+
### 二、Github 的安装和配置
3129

3230
1. 注册,这个总会吧,官网([https://github.com/](https://github.com/)
3331
2. 下载安装([https://help.github.com/articles/set-up-git](https://help.github.com/articles/set-up-git)
3432
3. 安装完成后,桌面出现两个图标:
35-
![](https://lh4.googleusercontent.com/-muAVO81BsfM/Ukwf1vepLzI/AAAAAAAAAFc/20AHhLdbK8U/s0/GIT.jpg)
33+
![](https://lh4.googleusercontent.com/-muAVO81BsfM/Ukwf1vepLzI/AAAAAAAAAFc/20AHhLdbK8U/s0/GIT.jpg)
3634

3735
[[https://lh4.googleusercontent.com/-muAVO81BsfM/Ukwf1vepLzI/AAAAAAAAAFc/20AHhLdbK8U/s0/GIT.jpg]]
3836

@@ -48,15 +46,15 @@ git config --global user.email "your_email@example.com"# Sets the default email
4846

4947
更多关于 Github 的设置可以看[这里](http://www.cnblogs.com/sprying/p/3276984.html)
5048

51-
### 三、使用Github Pages生成博客
49+
### 三、使用 Github Pages 生成博客
5250

53-
>**说明:**
51+
> **说明:**
5452
55-
>先前就介绍过Github是一个跨平台的“云仓库”,所以我们既可以在网上操作,也可以在本地操作再推送到云端。
53+
> 先前就介绍过 Github 是一个跨平台的“云仓库”,所以我们既可以在网上操作,也可以在本地操作再推送到云端。
5654
57-
>我先介绍一下在Github网站上怎么直接用Github Pages快速生成一个博客,再介绍在本地利用Git Shell新建一个,同时可以熟悉一下git的操作流程
55+
> 我先介绍一下在 Github 网站上怎么直接用 Github Pages 快速生成一个博客,再介绍在本地利用 Git Shell 新建一个,同时可以熟悉一下 git 的操作流程
5856
59-
1、在[Github网站](https://github.com)上新建一个仓库(repository),网站右上角:
57+
1、在[Github 网站](https://github.com)上新建一个仓库(repository),网站右上角:
6058

6159
![](https://lh5.googleusercontent.com/-eQD90D5qlfY/UkwsyUt3ZHI/AAAAAAAAAFw/xSU3QCTUZPs/s0/%E5%88%9B%E5%BB%BArepository.jpg)
6260

@@ -80,11 +78,11 @@ git config --global user.email "your_email@example.com"# Sets the default email
8078

8179
当然输入http://yourname.github.com/也可以,它会自动跳转到http://yourname.github.io/
8280

83-
### 四、在本地上新建一个Github项目
81+
### 四、在本地上新建一个 Github 项目
8482

85-
> 其实到以上为止我们已经创建好了一个属于自己的博客,接下来我们再新建一个其他项目,用来熟悉github的整个操作流程,你会发现它真的超好用。
83+
> 其实到以上为止我们已经创建好了一个属于自己的博客,接下来我们再新建一个其他项目,用来熟悉 github 的整个操作流程,你会发现它真的超好用。
8684
87-
#### 4.1 利用GitHub图形界面
85+
#### 4.1 利用 GitHub 图形界面
8886

8987
1、跟上面一样,在网站上新建一个 repository,这里我们把名字命名为 myBlog,(其实随意啦)
9088

@@ -102,7 +100,7 @@ git config --global user.email "your_email@example.com"# Sets the default email
102100

103101
之后点击上方的 publish 按钮就可以把本地的更改发布上去了,这里 publish 的概念应该就是发布一个新版本,在右边它会让你填写 commit,应该是对此版本的一个说明。
104102

105-
#### 4.2 利用Git Shell命令行
103+
#### 4.2 利用 Git Shell 命令行
106104

107105
1、也可以选择在 Shell 下完成整个过程,虽然比较麻烦,但是有一种程序员的感觉有木有:
108106

@@ -144,7 +142,5 @@ git push -u origin master //将本地项目更新到github项目上去
144142

145143
> 发现还是图形界面好用吗?只需要用鼠标点击几个按钮就行了?
146144
> 但是程序员可不一样,他们喜欢一直用键盘敲啊敲,这样的场景在电视电影中太常见了而且很酷炫有木有。
147-
> 而且啊?!你有米有发现在Shell下完全不用切换界面了!!!
145+
> 而且啊?!你有米有发现在 Shell 下完全不用切换界面了!!!
148146
> 所有工作都在一个黑底白字的框框里面完成了,当你熟悉过后你就会发现图形界面才是更难用的。
149-
150-

前端/2014-09-26-write-article-use-jekyll-github-markdown.md

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ tags: [Jekyll, 写作, Git]
66
published: true
77
---
88

9-
## 搭建Jekyll环境
9+
## 搭建 Jekyll 环境
1010

1111
[官方文档](http://jekyllcn.com/docs/installation/)
1212

13-
### 1. 安装RubyGems
13+
### 1. 安装 RubyGems
1414

1515
`apt-get install rubygems`
1616

@@ -42,7 +42,7 @@ $ jekyll -v
4242
jekyll 2.4.0
4343
```
4444

45-
### 3. 测试Jekyll
45+
### 3. 测试 Jekyll
4646

4747
```sh
4848
$ jekyll new my-awesome-site
@@ -54,13 +54,12 @@ $ cd my-awesome-site
5454
打开浏览器可以看到:
5555
![3](https://raw.githubusercontent.com/JimmyLv/images/master/images/tech/0926-3.png)
5656

57-
5857
## 使用[「JekyllBootstrap」](http://jekyllbootstrap.com/)
5958

6059
> The Quickest Way to Blog on GitHub Pages.
6160
> Jekyll Generates Static Websites
6261
63-
### 1. 使用Jekyll + GitHub Pages快速生成博客
62+
### 1. 使用 Jekyll + GitHub Pages 快速生成博客
6463

6564
- JekyllBootstrap 提供了一个界面:[Host on GitHub in 3 Minutes](http://jekyllbootstrap.com/usage/jekyll-quick-start.html)
6665

@@ -70,7 +69,7 @@ $ cd my-awesome-site
7069
7170
> 3. Profit
7271
73-
### 2. 利用Jekyll进行本地调试
72+
### 2. 利用 Jekyll 进行本地调试
7473

7574
- 直接下载 jekyll-bootstrap 模板
7675

@@ -102,14 +101,13 @@ CNAME already taken: ......
102101

103102
这个错误是因为 CNAME 文件的原因,是用来指定自定义域名的,和本地调试地址冲突。如果你没有自定义域名,那就不需要删除。
104103

105-
106-
### 3. Markdown写作
104+
### 3. Markdown 写作
107105

108106
> [Markdown: Basics (快速入门)](http://wowubuntu.com/markdown/basic.html)
109107
110-
> [阳志平:Markdown写作浅谈](http://www.yangzhiping.com/tech/r-markdown-knitr.html)
108+
> [阳志平:Markdown 写作浅谈](http://www.yangzhiping.com/tech/r-markdown-knitr.html)
111109
112-
1) **本地写作**
110+
1. **本地写作**
113111

114112
- [UberWriter](http://jonathanmh.com/uberwriter-a-markdown-editor-for-linux/): a MarkDown Editor for Linux
115113

@@ -119,9 +117,9 @@ sudo apt-get update
119117
sudo apt-get install uberwriter
120118
```
121119

122-
- 只需要在_posts 文件夹下添加相应博文的.md 文件即可。
120+
- 只需要在\_posts 文件夹下添加相应博文的.md 文件即可。
123121

124-
> 注意命名格式一定要是yy-mm-dd-title.md,title是你文章的标题。(也可以卸载.md文件开头
122+
> 注意命名格式一定要是 yy-mm-dd-title.md,title 是你文章的标题。(也可以卸载.md 文件开头
125123
126124
- 每篇文章的开头都要指定一定的格式,如本文:
127125

@@ -135,7 +133,7 @@ description: null
135133
published: true
136134
```
137135

138-
layout: post 指的是博文格式要按照_layouts 文件夹下的
136+
layout: post 指的是博文格式要按照\_layouts 文件夹下的
139137

140138
post.html 指定的格式来显示。
141139

@@ -145,11 +143,11 @@ tags: 指定博文标签。
145143

146144
published: 表示发布与否
147145

148-
2) **线上写作**
146+
2. **线上写作**
149147

150148
- 在线 Md 编辑器:
151149

152-
> 1.[马克飞象](http://maxiang.info)- 专为印象笔记打造的Markdown
150+
> 1.[马克飞象](http://maxiang.info)- 专为印象笔记打造的 Markdown
153151
154152
> 2.[StackEdit](https://stackedit.io/) – In-browser markdown editor
155153
@@ -163,7 +161,6 @@ published: 表示发布与否
163161

164162
![5](https://raw.githubusercontent.com/JimmyLv/images/master/images/tech/0926-5.png)
165163

166-
167164
## 其他的快速「博客」方案
168165

169166
### 1. [Postach.io](http://postach.io)
@@ -177,12 +174,12 @@ Connect and post using Evernote, Dropbox and Pocket.
177174
### 2. [Farbox](https://www.farbox.com/)
178175

179176
The Best Blog Platform on Cloud
180-
181-
> Realtime and dynamic, Folder is a database, FarBox is a webserver. Simple is Everything.
177+
178+
> Realtime and dynamic, Folder is a database, FarBox is a webserver. Simple is Everything.
182179
183180
### 3. [Medium](https://medium.com/about/welcome-to-medium-9e53ca408c48)
184181

185-
> Medium is a new place on the Internet where people share ideas and stories that are longer than 140 characters and not just for friends.
182+
> Medium is a new place on the Internet where people share ideas and stories that are longer than 140 characters and not just for friends.
186183
187184
### 4. [简书](http://www.jianshu.com/)
188185

前端/2015-03-21-learning-react-js.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ categories: [前端]
55
tags: [React, GitBook, 笔记]
66
gitbook: learning-react-js
77
published: True
8-
98
---

0 commit comments

Comments
 (0)