bump
This commit is contained in:
parent
4f27fff283
commit
2cf91da2f0
2 changed files with 1 additions and 7 deletions
|
|
@ -2249,8 +2249,6 @@ var bindEvent = function () {
|
||||||
|
|
||||||
var DEFAULT_OPTS = {
|
var DEFAULT_OPTS = {
|
||||||
el: '#app',
|
el: '#app',
|
||||||
title: document.title,
|
|
||||||
sep: ' - ',
|
|
||||||
repo: ''
|
repo: ''
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -2266,7 +2264,6 @@ var Docsify = function Docsify (opts) {
|
||||||
Docsify.installed = true;
|
Docsify.installed = true;
|
||||||
|
|
||||||
this.opts = Object.assign({}, opts, DEFAULT_OPTS);
|
this.opts = Object.assign({}, opts, DEFAULT_OPTS);
|
||||||
this.opts.title = (this.opts.title ? this.opts.sep : '') + this.opts.title;
|
|
||||||
|
|
||||||
this.replace = true;
|
this.replace = true;
|
||||||
this.dom = document.querySelector(this.opts.el);
|
this.dom = document.querySelector(this.opts.el);
|
||||||
|
|
@ -2297,9 +2294,6 @@ Docsify.prototype.load = function load () {
|
||||||
};
|
};
|
||||||
|
|
||||||
Docsify.prototype.render = function render$1 (content) {
|
Docsify.prototype.render = function render$1 (content) {
|
||||||
if (this.loc.slice(1) !== 'README') {
|
|
||||||
document.title = this.loc.slice(1) + this.opts.title;
|
|
||||||
}
|
|
||||||
this.dom[this.replace ? 'outerHTML' : 'innerHTML'] = render(content, this.opts);
|
this.dom[this.replace ? 'outerHTML' : 'innerHTML'] = render(content, this.opts);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
2
lib/docsify.min.js
vendored
2
lib/docsify.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue