Skip to content

Commit 6db5af4

Browse files
committed
Merge branch 'fix-issue1069' of https://github.com/Koooooo-7/docsify into fix-issue1069
2 parents cab0352 + 2233562 commit 6db5af4

File tree

13 files changed

+152
-64
lines changed

13 files changed

+152
-64
lines changed

.github/stale.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 50 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,41 @@
1+
## [4.11.6](https://github.com/docsifyjs/docsify/compare/v4.11.5...v4.11.6) (2020-08-22)
2+
3+
4+
### Bug Fixes
5+
6+
* Add patch for {docsify-ignore} and {docsify-ignore-all} ([ce31607](https://github.com/docsifyjs/docsify/commit/ce316075e033afdbeb43ce01e284a29fe1870e38))
7+
8+
9+
10+
## [4.11.5](https://github.com/docsifyjs/docsify/compare/v4.11.4...v4.11.5) (2020-08-21)
11+
12+
13+
### Bug Fixes
14+
15+
* Russian language link error ([#1270](https://github.com/docsifyjs/docsify/issues/1270)) ([2a52460](https://github.com/docsifyjs/docsify/commit/2a52460a59448abaf681046fbc5dca642285ae1f))
16+
* {docsify-updated} in the sample code is parsed into time ([#1321](https://github.com/docsifyjs/docsify/issues/1321)) ([2048610](https://github.com/docsifyjs/docsify/commit/2048610aacd4e3c6a592f4247834a726c7ca33fb))
17+
* Add error handling for missing dependencies (fixes [#1210](https://github.com/docsifyjs/docsify/issues/1210)) ([#1232](https://github.com/docsifyjs/docsify/issues/1232)) ([3673001](https://github.com/docsifyjs/docsify/commit/3673001a24cb24c57454f9bc7619de49d2c3a044))
18+
* after setting the background image, the button is obscured ([#1234](https://github.com/docsifyjs/docsify/issues/1234)) ([34d918f](https://github.com/docsifyjs/docsify/commit/34d918f9973bdb8e893248853e3ef7e803d4c253))
19+
* convert {docsify-ignore} and {docsify-ignore-all} to HTML comments ([#1318](https://github.com/docsifyjs/docsify/issues/1318)) ([90d283d](https://github.com/docsifyjs/docsify/commit/90d283d340502456a5d8495df596bb4a02ceb39b))
20+
* fallback page should use path not file location ([#1301](https://github.com/docsifyjs/docsify/issues/1301)) ([2bceabc](https://github.com/docsifyjs/docsify/commit/2bceabcb8e623570540493e2f1d956adf45c99e7))
21+
* Fix search error when exist translations documents ([#1300](https://github.com/docsifyjs/docsify/issues/1300)) ([b869019](https://github.com/docsifyjs/docsify/commit/b8690199006366e86084e9e018def7b9b8f46512))
22+
* gitignore was ignoring folders in src, so VS Code search results or file fuzzy finder were not working, etc ([d4c9247](https://github.com/docsifyjs/docsify/commit/d4c9247b87c0a2701683ed1a17383cfb451cf609))
23+
* packages/docsify-server-renderer/package.json & packages/docsify-server-renderer/package-lock.json to reduce vulnerabilities ([#1250](https://github.com/docsifyjs/docsify/issues/1250)) ([d439bac](https://github.com/docsifyjs/docsify/commit/d439bac93f479d0480799880538fc3104e54c907))
24+
* search can not search the table header ([#1256](https://github.com/docsifyjs/docsify/issues/1256)) ([3f03e78](https://github.com/docsifyjs/docsify/commit/3f03e78418993d8e9a4f5062e10dc79c3753389e))
25+
* Search plugin: matched text is replaced with search text ([#1298](https://github.com/docsifyjs/docsify/issues/1298)) ([78775b6](https://github.com/docsifyjs/docsify/commit/78775b6ee73102cc5ac71c0ee2b392c5f4f6f4f8))
26+
* the uncaught typeerror when el is null ([#1308](https://github.com/docsifyjs/docsify/issues/1308)) ([952f4c9](https://github.com/docsifyjs/docsify/commit/952f4c921b7a6a558c500ca6b105582d39ad36a2))
27+
* Updated docs with instructions for installing specific version (fixes [#780](https://github.com/docsifyjs/docsify/issues/780)) ([#1225](https://github.com/docsifyjs/docsify/issues/1225)) ([b90c948](https://github.com/docsifyjs/docsify/commit/b90c948090e89fa778279c95060dbd7668285658))
28+
* upgrade medium-zoom from 1.0.5 to 1.0.6 ([3beaa66](https://github.com/docsifyjs/docsify/commit/3beaa6666b78518f1ffaa37f6942f3cb08fef896))
29+
* upgrade tinydate from 1.2.0 to 1.3.0 ([#1341](https://github.com/docsifyjs/docsify/issues/1341)) ([59d090f](https://github.com/docsifyjs/docsify/commit/59d090fe9096bc03e259c166634bb75bb2623f85))
30+
31+
32+
### Features
33+
34+
* **search:** add pathNamespaces option ([d179dde](https://github.com/docsifyjs/docsify/commit/d179dde1c71acdcbe66cb762377b123926c55bf2))
35+
* Add title to sidebar links ([#1286](https://github.com/docsifyjs/docsify/issues/1286)) ([667496b](https://github.com/docsifyjs/docsify/commit/667496b85d99b168255f58e60a6bfe902cc6ee03))
36+
37+
38+
139
## [4.11.4](https://github.com/docsifyjs/docsify/compare/v4.11.3...v4.11.4) (2020-06-18)
240

341

@@ -57,8 +95,8 @@
5795
* emojis in titles not working correctly and update ([#1016](https://github.com/docsifyjs/docsify/issues/1016)) ([b3d9b96](https://github.com/docsifyjs/docsify/commit/b3d9b966dfbb6f456c2c457da1d2a366e85d9190))
5896
* searching table content ([6184e50](https://github.com/docsifyjs/docsify/commit/6184e502629932ca71fdd0a1b10150d118f5a7c8))
5997
* stage modified files as part of pre-commit hook ([#985](https://github.com/docsifyjs/docsify/issues/985)) ([5b77b0f](https://github.com/docsifyjs/docsify/commit/5b77b0f628f056b7ebb6d0b617561d19964516a2))
60-
* config initialization and coercion ([#861](https://github.com/docsifyjs/docsify/pull/861))
61-
* strip indent when embedding code fragment ([#996](https://github.com/docsifyjs/docsify/pull/996))
98+
* config initialization and coercion ([#861](https://github.com/docsifyjs/docsify/pull/861))
99+
* strip indent when embedding code fragment ([#996](https://github.com/docsifyjs/docsify/pull/996))
62100
* Ensure autoHeader dom result is similar to parsed H1 ([#811](https://github.com/docsifyjs/docsify/pull/811))
63101
* upgrade docsify from 4.9.4 to 4.10.2 ([#1054](https://github.com/docsifyjs/docsify/issues/1054)) ([78290b2](https://github.com/docsifyjs/docsify/commit/78290b21038a3ae09c4c7438bd89b14ca4c02805))
64102
* upgrade medium-zoom from 1.0.4 to 1.0.5 ([39ebd73](https://github.com/docsifyjs/docsify/commit/39ebd73021290439180878cae32e663b9e60e214))
@@ -77,29 +115,29 @@
77115

78116
### Docs
79117

80-
* update docs for the `name` config option ([#992](https://github.com/docsifyjs/docsify/pull/992))
118+
* update docs for the `name` config option ([#992](https://github.com/docsifyjs/docsify/pull/992))
81119
* about cache ([#854](https://github.com/docsifyjs/docsify/pull/854))
82120
* removed FOSSA badge
83121
* documented `__colon__` tip ([#1025](https://github.com/docsifyjs/docsify/pull/1025))
84122

85123
### Chore
86124

87125
* Migrate relative links to absolute in embedded markdown ([#867](https://github.com/docsifyjs/docsify/pull/867))
88-
* smarter scroll behavior ([#744](https://github.com/docsifyjs/docsify/pull/744))
126+
* smarter scroll behavior ([#744](https://github.com/docsifyjs/docsify/pull/744))
89127
* improve basic layout style ([#884](https://github.com/docsifyjs/docsify/pull/884))
90-
* There are currently {three=>four} themes available. ([#892](https://github.com/docsifyjs/docsify/pull/892))
91-
* Added a redirect for images to show up in Amplify ([#918](https://github.com/docsifyjs/docsify/pull/918))
128+
* There are currently {three=>four} themes available. ([#892](https://github.com/docsifyjs/docsify/pull/892))
129+
* Added a redirect for images to show up in Amplify ([#918](https://github.com/docsifyjs/docsify/pull/918))
92130
* removed the escaping of the name of sidebar ([#991](https://github.com/docsifyjs/docsify/pull/991))
93-
* Eslint fixes for v4x ([#989](https://github.com/docsifyjs/docsify/pull/989))
94-
* added github Actions for CI ([#1000](https://github.com/docsifyjs/docsify/pull/1000))
131+
* Eslint fixes for v4x ([#989](https://github.com/docsifyjs/docsify/pull/989))
132+
* added github Actions for CI ([#1000](https://github.com/docsifyjs/docsify/pull/1000))
95133
* Add a prepare script. ([#1010](https://github.com/docsifyjs/docsify/pull/1010))
96-
* chore(GH-action): using ubuntu 16 and removed node 8 from CI
134+
* chore(GH-action): using ubuntu 16 and removed node 8 from CI
97135
* chore: add config ([#1014](https://github.com/docsifyjs/docsify/pull/1014))
98136
* chore(stale): added enhancement label to exemptlabels
99137
* chore(stale): added bug label to exemptlabels
100-
* .markdown-section max-width 800px to 80% ([#1017](https://github.com/docsifyjs/docsify/pull/1017))
101-
* changed the CDN from unpkg to jsDelivr #1020 ([#1022](https://github.com/docsifyjs/docsify/pull/1022))
102-
* migrate CI to github, refactore CI and npm scripts, linting fixes ([#1023](https://github.com/docsifyjs/docsify/pull/1023))
138+
* .markdown-section max-width 800px to 80% ([#1017](https://github.com/docsifyjs/docsify/pull/1017))
139+
* changed the CDN from unpkg to jsDelivr #1020 ([#1022](https://github.com/docsifyjs/docsify/pull/1022))
140+
* migrate CI to github, refactore CI and npm scripts, linting fixes ([#1023](https://github.com/docsifyjs/docsify/pull/1023))
103141
* chore(readme): added CI badges and fixed the logo issue
104142
* added new linter config ([#1028](https://github.com/docsifyjs/docsify/pull/1028))
105143

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<p align="center">
22
<a href="https://docsify.js.org">
3-
<img alt="docsify" src="https://github.com/docsifyjs/docsify/blob/develop/docs/_media/icon.svg">
3+
<img alt="docsify" src="./docs/_media/icon.svg">
44
</a>
55
</p>
66

@@ -84,7 +84,7 @@ So that you can start straight away.
8484

8585
- Fork it!
8686
- Create your feature branch: `git checkout -b my-new-feature`
87-
- Commit your changes: `git commit -am 'Add some feature'`
87+
- Commit your changes: `git add . && git commit -m 'Add some feature'`
8888
- Push to the branch: `git push origin my-new-feature`
8989
- Submit a pull request
9090

docs/_coverpage.md

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

3-
# docsify <small>4.11.4</small>
3+
# docsify <small>4.11.6</small>
44

55
> A magical documentation site generator.
66

docs/index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,15 @@
1414
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/dark.css" title="dark" disabled>
1515
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/buble.css" title="buble" disabled>
1616
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/pure.css" title="pure" disabled>
17-
17+
<script src="//cdn.jsdelivr.net/npm/[email protected]/index.min.js"></script>
1818
<style>
1919
nav.app-nav li ul {
2020
min-width: 100px;
2121
}
22+
23+
#carbonads {
24+
box-shadow: none !important;
25+
}
2226
</style>
2327
</head>
2428

@@ -64,6 +68,7 @@
6468
}
6569
},
6670
plugins: [
71+
DocsifyCarbon.create('CEBI6KQE', 'docsifyjsorg'),
6772
function (hook, vm) {
6873
hook.beforeEach(function (html) {
6974
if (/githubusercontent\.com/.test(vm.route.file)) {

index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,15 @@
1010
<link rel="stylesheet" href="/themes/dark.css" title="dark" disabled>
1111
<link rel="stylesheet" href="/themes/buble.css" title="buble" disabled>
1212
<link rel="stylesheet" href="/themes/pure.css" title="pure" disabled>
13+
<script src="//cdn.jsdelivr.net/npm/[email protected]/index.min.js"></script>
1314
<style>
1415
nav.app-nav li ul {
1516
min-width: 100px;
1617
}
18+
19+
#carbonads {
20+
box-shadow: none !important;
21+
}
1722
</style>
1823
</head>
1924

@@ -56,6 +61,7 @@
5661
pathNamespaces: ['/zh-cn', '/de-de', '/ru-ru', '/es']
5762
},
5863
plugins: [
64+
DocsifyCarbon.create('CEBI6KQE', 'docsifyjsorg'),
5965
function (hook, vm) {
6066
hook.beforeEach(function (html) {
6167
if (/githubusercontent\.com/.test(vm.route.file)) {

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docsify",
3-
"version": "4.11.4",
3+
"version": "4.11.6",
44
"description": "A magical documentation generator.",
55
"author": {
66
"name": "qingwei-li",
@@ -17,7 +17,6 @@
1717
"unpkg": "lib/docsify.min.js",
1818
"files": [
1919
"lib",
20-
"src",
2120
"themes"
2221
],
2322
"scripts": {
@@ -59,11 +58,11 @@
5958
"dependencies": {
6059
"dompurify": "^2.0.8",
6160
"marked": "^1.1.1",
62-
"medium-zoom": "^1.0.5",
61+
"medium-zoom": "^1.0.6",
6362
"opencollective-postinstall": "^2.0.2",
6463
"prismjs": "^1.19.0",
6564
"strip-indent": "^3.0.0",
66-
"tinydate": "^1.0.0",
65+
"tinydate": "^1.3.0",
6766
"tweezer.js": "^1.4.0"
6867
},
6968
"devDependencies": {

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

Lines changed: 11 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/docsify-server-renderer/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docsify-server-renderer",
3-
"version": "4.11.4",
3+
"version": "4.11.6",
44
"description": "docsify server renderer",
55
"author": {
66
"name": "qingwei-li",
@@ -16,7 +16,7 @@
1616
},
1717
"dependencies": {
1818
"debug": "^4.1.1",
19-
"docsify": "^4.11.2",
19+
"docsify": "^4.11.4",
2020
"dompurify": "^2.0.8",
2121
"node-fetch": "^2.6.0",
2222
"resolve-pathname": "^3.0.0"

src/core/render/compiler.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import marked from 'marked';
12
import { isAbsolutePath, getPath, getParentPath } from '../router/util';
23
import { isFn, merge, cached, isPrimitive } from '../util/core';
34
import { tree as treeTpl } from './tpl';
@@ -11,7 +12,6 @@ import { paragraphCompiler } from './compiler/paragraph';
1112
import { taskListCompiler } from './compiler/taskList';
1213
import { taskListItemCompiler } from './compiler/taskListItem';
1314
import { linkCompiler } from './compiler/link';
14-
import marked from 'marked';
1515

1616
const cachedLinks = {};
1717

@@ -214,12 +214,24 @@ export class Compiler {
214214
nextToc.ignoreSubHeading = true;
215215
}
216216

217+
if (/{docsify-ignore}/g.test(str)) {
218+
str = str.replace('{docsify-ignore}', '');
219+
nextToc.title = str;
220+
nextToc.ignoreSubHeading = true;
221+
}
222+
217223
if (/<!-- {docsify-ignore-all} -->/g.test(str)) {
218224
str = str.replace('<!-- {docsify-ignore-all} -->', '');
219225
nextToc.title = removeAtag(str);
220226
nextToc.ignoreAllSubs = true;
221227
}
222228

229+
if (/{docsify-ignore-all}/g.test(str)) {
230+
str = str.replace('{docsify-ignore-all}', '');
231+
nextToc.title = str;
232+
nextToc.ignoreAllSubs = true;
233+
}
234+
223235
const slug = slugify(config.id || str);
224236
const url = router.toURL(router.getCurrentPath(), { id: slug });
225237
nextToc.slug = url;

src/core/render/compiler/headline.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,24 @@ export const headingCompiler = ({ renderer, router, _self }) =>
1212
nextToc.ignoreSubHeading = true;
1313
}
1414

15+
if (/{docsify-ignore}/g.test(str)) {
16+
str = str.replace('{docsify-ignore}', '');
17+
nextToc.title = str;
18+
nextToc.ignoreSubHeading = true;
19+
}
20+
1521
if (/<!-- {docsify-ignore-all} -->/g.test(str)) {
1622
str = str.replace('<!-- {docsify-ignore-all} -->', '');
1723
nextToc.title = str;
1824
nextToc.ignoreAllSubs = true;
1925
}
2026

27+
if (/{docsify-ignore-all}/g.test(str)) {
28+
str = str.replace('{docsify-ignore-all}', '');
29+
nextToc.title = str;
30+
nextToc.ignoreAllSubs = true;
31+
}
32+
2133
const slug = slugify(config.id || str);
2234
const url = router.toURL(router.getCurrentPath(), { id: slug });
2335
nextToc.slug = url;

0 commit comments

Comments
 (0)