Skip to content

Commit b948cb0

Browse files
committed
bump: 3.7.1
1 parent b2b4742 commit b948cb0

13 files changed

Lines changed: 26 additions & 18 deletions

β€ŽCHANGELOG.mdβ€Ž

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
21
# Changelog
32

3+
4+
## 3.7.1 / 2017-05-19
5+
6+
* fix: docsify-updated is undefined
7+
48
## 3.7.0 / 2017-05-16
59

6-
* feat: add externalLinkTarget, close #149
7-
* feat: add **{docsify-updated<span>}</span>**, close #158
10+
* feat: add externalLinkTarget, close ([#149](https://github.com/QingWei-Li/docsify/issues/149)
11+
* feat: add **{docsify-updated<span>}</span>**, close ([#158](https://github.com/QingWei-Li/docsify/issues/158)
812

913
## 3.6.6 / 2017-05-06
1014

@@ -25,7 +29,7 @@
2529
## 3.6.2/ 2017-04-12
2630

2731
* feat(external-script): detect more than one script dom, fixed ([#146](https://github.com/QingWei-Li/docsify/issues/146)
28-
* GA: Send hash instead of complete href (#147)
32+
* GA: Send hash instead of complete href ([#147](https://github.com/QingWei-Li/docsify/issues/147)
2933

3034
## 3.6.1 / 2017-04-09
3135

β€Ž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>3.6</small>
3+
# docsify <small>3.7</small>
44

55
> A magical documentation site generator.
66

β€Žlib/docsify.jsβ€Ž

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,8 @@ function get (url, hasBar) {
666666
var result = cache[url] = {
667667
content: target.response,
668668
opt: {
669-
updatedAt: xhr.getResponseHeader('last-modified')
669+
updatedAt: xhr.getResponseHeader('last-modified') ||
670+
xhr.getResponseHeader('expires')
670671
}
671672
};
672673

@@ -3273,10 +3274,13 @@ function renderMixin (proto) {
32733274

32743275
proto._renderMain = function (text, opt) {
32753276
var this$1 = this;
3277+
if ( opt === void 0 ) opt = {};
32763278

32773279
callHook(this, 'beforeEach', text, function (result) {
32783280
var html = this$1.isHTML ? result : markdown(result);
3279-
html = formatUpdated(html, opt.updatedAt, this$1.config.formatUpdated);
3281+
if (opt.updatedAt) {
3282+
html = formatUpdated(html, opt.updatedAt, this$1.config.formatUpdated);
3283+
}
32803284

32813285
callHook(this$1, 'afterEach', html, function (text) { return renderMain.call(this$1, text); });
32823286
});

β€Žlib/docsify.min.jsβ€Ž

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

β€Žlib/plugins/emoji.min.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žlib/plugins/front-matter.min.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žlib/plugins/ga.min.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)