Compare commits

..
4 Commits
Author SHA1 Message Date
qingwei.li 5dcd6d43ea -> v2.4.3 2017-02-15 20:01:11 +08:00
qingwei.li 00e3609b25 bump: 2.4.3 2017-02-15 20:01:07 +08:00
qingwei.li a6d9669bfa docs: update package size 2017-02-15 20:00:56 +08:00
Songandcinwell.li 00983ab796 fix emoji replacing error (#76) 2017-02-14 15:47:04 +08:00
11 changed files with 20 additions and 13 deletions
+7
View File
@@ -1,3 +1,10 @@
### 2.4.3
> 2017-02-15
#### Bug fixes
* fix emoji replacing error (#76)
### 2.4.2
> 2017-02-14
+1 -1
View File
@@ -20,7 +20,7 @@
## Features
- Not build static html files
- Simple and lightweight (~13kB gzipped)
- Simple and lightweight (~14kB gzipped)
- Smart full-text search plugin
- Multiple themes
- Useful plugin API
+1 -1
View File
@@ -11,7 +11,7 @@ See the [Quick start](/quickstart) for more details.
## Features
- Not build static html files
- Simple and lightweight (~13kB gzipped)
- Simple and lightweight (~14kB gzipped)
- Smart full-text search plugin
- Multiple themes
- Useful plugin API
+2 -2
View File
@@ -1,10 +1,10 @@
![logo](_media/icon.svg)
# docsify <small>2.4.2</small>
# docsify <small>2.4.3</small>
> A magical documentation site generator.
- Simple and lightweight (~13kB gzipped)
- Simple and lightweight (~14kB gzipped)
- Not build static html files
- Multiple themes
+2 -2
View File
@@ -12,8 +12,8 @@ docsify 是一个动态生成文档网站的工具。不同于 GitBook、Hexo
## 特性
- 无需构建,写完文档直接发布
- 容易使用并且轻量 (~13Kb gzipped)
- 智能的全文
- 容易使用并且轻量 (~14kB gzipped)
- 智能的全文
- 提供多套主题
- 丰富的 API
- 兼容 IE9+
+1 -1
View File
@@ -108,7 +108,7 @@ window.$docsify = {
- 类型:`Number`
- 默认值: `0`
自定义侧边栏后默认不会再生成目录,你也可以通过设置生成目录的最大层级开启这个功能
自定义侧边栏后默认不会再生成目录,你也可以通过设置生成目录的最大层级开启这个功能
```js
+2 -2
View File
@@ -2,9 +2,9 @@
## 内置插件
### 全文索 - Search
### 全文索 - Search
全文索插件会根据当前页面上的超链接获取文档内容,在 `localStorage` 内建立文档索引。默认过期时间为一天,当然我们可以自己指定需要缓存的文件列表或者配置过期时间。
全文索插件会根据当前页面上的超链接获取文档内容,在 `localStorage` 内建立文档索引。默认过期时间为一天,当然我们可以自己指定需要缓存的文件列表或者配置过期时间。
```html
+1 -1
View File
@@ -171,7 +171,7 @@ var merge = Object.assign || function (to) {
function emojify (text) {
return text
.replace(/<(pre|template)[^>]*?>([\s\S]+)<\/(pre|template)>/g, function (match) { return match.replace(/:/g, '__colon__'); })
.replace(/:(\w*?):/ig, '<img class="emoji" src="https://assets-cdn.github.com/images/icons/emoji/$1.png" alt="$1" />')
.replace(/:(\w+?):/ig, '<img class="emoji" src="https://assets-cdn.github.com/images/icons/emoji/$1.png" alt="$1" />')
.replace(/__colon__/g, ':')
}
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "docsify",
"version": "2.4.2",
"version": "2.4.3",
"description": "A magical documentation generator.",
"main": "lib/docsify.js",
"files": [
+1 -1
View File
@@ -161,6 +161,6 @@ export const merge = Object.assign || function (to) {
export function emojify (text) {
return text
.replace(/<(pre|template)[^>]*?>([\s\S]+)<\/(pre|template)>/g, match => match.replace(/:/g, '__colon__'))
.replace(/:(\w*?):/ig, '<img class="emoji" src="https://assets-cdn.github.com/images/icons/emoji/$1.png" alt="$1" />')
.replace(/:(\w+?):/ig, '<img class="emoji" src="https://assets-cdn.github.com/images/icons/emoji/$1.png" alt="$1" />')
.replace(/__colon__/g, ':')
}