Skip to content

Commit db4a103

Browse files
authored
Merge branch 'develop' into develop
2 parents b22e866 + b58941e commit db4a103

File tree

11 files changed

+59
-24
lines changed

11 files changed

+59
-24
lines changed

CHANGELOG.md

+27
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
## [4.12.2](https://github.com/docsifyjs/docsify/compare/v4.12.1...v4.12.2) (2022-01-06)
2+
3+
4+
### Bug Fixes
5+
6+
* Add escapeHtml for search ([#1551](https://github.com/docsifyjs/docsify/issues/1551)) ([c24f7f6](https://github.com/docsifyjs/docsify/commit/c24f7f6f0b87a87f6dd3755f69eb0969ebb029c9))
7+
* allow also " inside of an embed ([ec16e4a](https://github.com/docsifyjs/docsify/commit/ec16e4a9d5718ac4f4c25bb3dcaea3b7551372e0))
8+
* buble theme missing generic fallback font ([#1568](https://github.com/docsifyjs/docsify/issues/1568)) ([37d9f0e](https://github.com/docsifyjs/docsify/commit/37d9f0e1214276e93b2a11ed87390aafa1bdbcec))
9+
* Cannot read property 'classList' of null ([#1527](https://github.com/docsifyjs/docsify/issues/1527)) ([d6df2b8](https://github.com/docsifyjs/docsify/commit/d6df2b85a99371bb9a87402a10dd515bb734182e)), closes [/github.com/docsifyjs/docsify/pull/1527#issuecomment-793455105](https://github.com//github.com/docsifyjs/docsify/pull/1527/issues/issuecomment-793455105)
10+
* Cannot read property 'tagName' of null ([#1655](https://github.com/docsifyjs/docsify/issues/1655)) ([c3cdadc](https://github.com/docsifyjs/docsify/commit/c3cdadc37137edcd9e219359973902d2fc8b66ff)), closes [#1154](https://github.com/docsifyjs/docsify/issues/1154) [/github.com/docsifyjs/docsify/blob/develop/src/core/router/history/html5.js#L25-L27](https://github.com//github.com/docsifyjs/docsify/blob/develop/src/core/router/history/html5.js/issues/L25-L27) [/github.com/docsifyjs/docsify/blob/develop/src/core/router/history/hash.js#L47-L49](https://github.com//github.com/docsifyjs/docsify/blob/develop/src/core/router/history/hash.js/issues/L47-L49)
11+
* upgrade debug from 4.3.2 to 4.3.3 ([#1692](https://github.com/docsifyjs/docsify/issues/1692)) ([40e7749](https://github.com/docsifyjs/docsify/commit/40e77490c68b4143c75dfaebcd0b7f640581306b))
12+
* Upgrade docsify from 4.12.0 to 4.12.1 ([#1544](https://github.com/docsifyjs/docsify/issues/1544)) ([d607f6d](https://github.com/docsifyjs/docsify/commit/d607f6d71c35b50f586806a832f65061f5e3427e))
13+
* upgrade dompurify from 2.2.6 to 2.2.7 ([#1552](https://github.com/docsifyjs/docsify/issues/1552)) ([407e4d4](https://github.com/docsifyjs/docsify/commit/407e4d4f3de78bebd639a3fdae751f8045728e57))
14+
* Upgrade dompurify from 2.2.6 to 2.2.7 ([#1553](https://github.com/docsifyjs/docsify/issues/1553)) ([93c48f3](https://github.com/docsifyjs/docsify/commit/93c48f3d615d95dba550a0e95df6b545d68c3593))
15+
* upgrade dompurify from 2.2.7 to 2.2.8 ([#1577](https://github.com/docsifyjs/docsify/issues/1577)) ([0dd44cc](https://github.com/docsifyjs/docsify/commit/0dd44cc828cc54f7c3b776d45b32925b66cae499))
16+
* upgrade dompurify from 2.2.7 to 2.3.0 ([#1619](https://github.com/docsifyjs/docsify/issues/1619)) ([66303fe](https://github.com/docsifyjs/docsify/commit/66303fec4c7115621e556ad742cfac9d19f26bd9))
17+
* upgrade dompurify from 2.2.8 to 2.2.9 ([#1600](https://github.com/docsifyjs/docsify/issues/1600)) ([baf5a8a](https://github.com/docsifyjs/docsify/commit/baf5a8a4962656d8be8f714283064d2ea10c7e14))
18+
* upgrade dompurify from 2.2.9 to 2.3.0 ([#1616](https://github.com/docsifyjs/docsify/issues/1616)) ([b07fa3c](https://github.com/docsifyjs/docsify/commit/b07fa3cc8323e63dd7b105c7e29b2e1914f5c117))
19+
* upgrade dompurify from 2.3.0 to 2.3.1 ([#1635](https://github.com/docsifyjs/docsify/issues/1635)) ([5ac8237](https://github.com/docsifyjs/docsify/commit/5ac8237cc76e19ca2b373a1a1da6eb4a4da6d8b2))
20+
* upgrade dompurify from 2.3.1 to 2.3.2 ([#1647](https://github.com/docsifyjs/docsify/issues/1647)) ([ff6acfa](https://github.com/docsifyjs/docsify/commit/ff6acfa7623a7db8b00d62c51a9c3037215c4888))
21+
* upgrade node-fetch from 2.6.1 to 2.6.2 ([#1641](https://github.com/docsifyjs/docsify/issues/1641)) ([6ee1c14](https://github.com/docsifyjs/docsify/commit/6ee1c142769a6442aa8c1523ab215106707fa7fc))
22+
* upgrade node-fetch from 2.6.2 to 2.6.4 ([#1649](https://github.com/docsifyjs/docsify/issues/1649)) ([6f81034](https://github.com/docsifyjs/docsify/commit/6f81034ba6a7a6b64ccf1acd2d1fc73761f70a63))
23+
* upgrade node-fetch from 2.6.4 to 2.6.5 ([#1654](https://github.com/docsifyjs/docsify/issues/1654)) ([d16e657](https://github.com/docsifyjs/docsify/commit/d16e657f708777e8377d8e158b50b4010623282d))
24+
* upgrade node-fetch from 2.6.5 to 2.6.6 ([#1668](https://github.com/docsifyjs/docsify/issues/1668)) ([cefe3f8](https://github.com/docsifyjs/docsify/commit/cefe3f87e697a6c54a74d601df2eeb331fcd8933))
25+
26+
27+
128
## [4.12.1](https://github.com/docsifyjs/docsify/compare/v4.12.0...v4.12.1) (2021-03-07)
229

330

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2016 - present cinwell.li
3+
Copyright (c) 2016 - present Docsify Contributors (https://github.com/docsifyjs/docsify/graphs/contributors)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
- Multiple themes
4747
- Useful plugin API
4848
- Compatible with IE11
49-
- Support SSR ([example](https://github.com/docsifyjs/docsify-ssr-demo))
49+
- Experimental SSR support ([example](https://github.com/docsifyjs/docsify-ssr-demo))
5050
- Support embedded files
5151

5252
## Quick start

docs/_coverpage.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![logo](_media/icon.svg)
22

3-
# docsify <small>4.12.1</small>
3+
# docsify <small>4.12.2</small>
44

55
> A magical documentation site generator.
66

docs/ssr.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
# Server-Side Rendering
22

3+
!> :construction: SSR support is experimental and incomplete. We are working on it. Plugins and
4+
some features of Docsify will not work in SSR mode yet. :construction:
5+
6+
<!--
7+
This link is dead.
38
See https://docsify.now.sh
9+
-->
410

5-
Repo in https://github.com/docsifyjs/docsify-ssr-demo
11+
Sample repo at https://github.com/docsifyjs/docsify-ssr-demo
612

713
## Why SSR?
14+
815
- Better SEO
916
- Feeling cool
1017

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docsify",
3-
"version": "4.12.1",
3+
"version": "4.12.2",
44
"description": "A magical documentation generator.",
55
"author": {
66
"name": "qingwei-li",
@@ -28,6 +28,7 @@
2828
"lint": "eslint .",
2929
"fixlint": "eslint . --fix",
3030
"test": "jest",
31+
"build:test": "npm run build && npm test",
3132
"test:e2e": "jest --selectProjects e2e",
3233
"test:integration": "jest --selectProjects integration",
3334
"test:unit": "jest --selectProjects unit",
@@ -47,10 +48,12 @@
4748
"docker:build": "docker build -f Dockerfile -t docsify-test:local .",
4849
"docker:clean": "docker rmi docsify-test:local",
4950
"docker:rebuild": "npm run docker:clean && npm run docker:build",
50-
"docker:test": "docker run --rm -it --ipc=host --mount type=bind,source=$(pwd)/test,target=/app/test docsify-test:local test",
51-
"docker:test:e2e": "docker run --rm -it --ipc=host --mount type=bind,source=$(pwd)/test,target=/app/test docsify-test:local test:e2e",
52-
"docker:test:integration": "docker run --rm -it --ipc=host --mount type=bind,source=$(pwd)/test,target=/app/test docsify-test:local test:integration",
53-
"docker:test:unit": "docker run --rm -it --ipc=host --mount type=bind,source=$(pwd)/test,target=/app/test docsify-test:local test:unit"
51+
"docker:test": "npm run docker:cli -- test",
52+
"docker:build:test": "npm run docker:cli -- build:test",
53+
"docker:test:e2e": "npm run docker:cli -- test:e2e",
54+
"docker:test:integration": "npm run docker:cli -- test:integration",
55+
"docker:test:unit": "npm run docker:cli -- test:unit",
56+
"docker:cli": "docker run --rm -it --ipc=host --mount type=bind,source=$(pwd)/test,target=/app/test docsify-test:local"
5457
},
5558
"husky": {
5659
"hooks": {

packages/docsify-server-renderer/package-lock.json

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/docsify-server-renderer/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docsify-server-renderer",
3-
"version": "4.12.1",
3+
"version": "4.12.2",
44
"description": "docsify server renderer",
55
"author": {
66
"name": "qingwei-li",
@@ -16,7 +16,7 @@
1616
},
1717
"dependencies": {
1818
"debug": "^4.3.3",
19-
"docsify": "^4.12.1",
19+
"docsify": "^4.12.2",
2020
"dompurify": "^2.3.2",
2121
"node-fetch": "^2.6.6",
2222
"resolve-pathname": "^3.0.0"

src/core/render/emojify.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@ function replace(m, $1) {
1212

1313
export function emojify(text) {
1414
return text
15-
.replace(/:\+1:/g, ':thumbsup:')
16-
.replace(/:-1:/g, ':thumbsdown:')
1715
.replace(/<(pre|template|code)[^>]*?>[\s\S]+?<\/(pre|template|code)>/g, m =>
1816
m.replace(/:/g, '__colon__')
1917
)
20-
.replace(/:(\w+?):/gi, (inBrowser && window.emojify) || replace)
18+
.replace(/:([a-z0-9_\-\+]+?):/g, (inBrowser && window.emojify) || replace)
2119
.replace(/__colon__/g, ':');
2220
}

test/integration/__snapshots__/docs.test.js.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`Docs Site coverpage renders and is unchanged 1`] = `
4-
"<section class=\\"cover show\\" style=\\"background: linear-gradient(to left bottom, hsl(127, 100%, 85%) 0%,hsl(127, 100%, 85%) 100%)\\"><div class=\\"mask\\"></div><div class=\\"cover-main\\"><p><img src=\\"http://127.0.0.1:3001/_media/icon.svg\\" data-origin=\\"_media/icon.svg\\" alt=\\"logo\\"></p><h1 id=\\"docsify-4121\\"><a href=\\"#/?id=docsify-4121\\" data-id=\\"docsify-4121\\" class=\\"anchor\\"><span>docsify <small>4.12.1</small></span></a></h1><blockquote>
4+
"<section class=\\"cover show\\" style=\\"background: linear-gradient(to left bottom, hsl(127, 100%, 85%) 0%,hsl(127, 100%, 85%) 100%)\\"><div class=\\"mask\\"></div><div class=\\"cover-main\\"><p><img src=\\"http://127.0.0.1:3001/_media/icon.svg\\" data-origin=\\"_media/icon.svg\\" alt=\\"logo\\"></p><h1 id=\\"docsify-4122\\"><a href=\\"#/?id=docsify-4122\\" data-id=\\"docsify-4122\\" class=\\"anchor\\"><span>docsify <small>4.12.2</small></span></a></h1><blockquote>
55
<p>A magical documentation site generator.</p></blockquote>
66
<ul><li>Simple and lightweight</li><li>No statically built html files</li><li>Multiple themes</li></ul><p><a href=\\"https://github.com/docsifyjs/docsify/\\" target=\\"_blank\\" rel=\\"noopener\\">GitHub</a>
77
<a href=\\"#/?id=docsify\\">Getting Started</a></p></div></section>"

0 commit comments

Comments
 (0)