Merge branch 'master' of github.com:qingwei-li/docsify

This commit is contained in:
qingwei.li 2017-07-26 08:37:02 +08:00
commit b8a96b867b
11 changed files with 26 additions and 11 deletions

View File

@ -1,3 +1,13 @@
<a name="4.2.2"></a>
## [4.2.2](https://github.com/QingWei-Li/docsify/compare/v4.2.1...v4.2.2) (2017-07-24)
### Bug Fixes
* style rerender due to setting themeColor ([17ff3d1](https://github.com/QingWei-Li/docsify/commit/17ff3d1))
<a name="4.2.1"></a>
## [4.2.1](https://github.com/QingWei-Li/docsify/compare/v4.2.0...v4.2.1) (2017-07-19)

View File

@ -73,6 +73,7 @@ These projects are using docsify to generate their sites. Pull requests welcome
| [samlify](https://samlify.js.org) | Node.js SAML2 library |
| [palettify](https://dobromir-hristov.github.io/palettify/) | A color palette effects assistant |
| [commitlint](https://marionebl.github.io/commitlint/) | Lint commit messages |
| [vue-data-tables](https://github.com/njleonzhang/vue-data-tables/) | A simple and customizable data tablebased on vue2 and element-ui. |
## Similar projects

View File

@ -33,7 +33,7 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
npm version $VERSION --message "[release] $VERSION $RELEASE_TAG"
# changelog
node_modules/.bin/conventional-changelog -p angular -i CHANGELOG.md -s
node_modules/.bin/conventional-changelog -p angular -i CHANGELOG.md -s -r 2
git add .
git commit -m "chore: add changelog $VERSION"

View File

@ -1,6 +1,6 @@
![logo](_media/icon.svg)
# docsify <small>4.2.1</small>
# docsify <small>4.2.2</small>
> A magical documentation site generator.

View File

@ -3318,7 +3318,9 @@ function initRender (vm) {
before(navAppendToTarget, navEl);
if (config.themeColor) {
$.head.innerHTML += theme(config.themeColor);
$.head.appendChild(
create('div', theme(config.themeColor)).getRootNode()
);
// Polyfll
cssVars(config.themeColor);
}
@ -3800,7 +3802,7 @@ initGlobalAPI();
/**
* Version
*/
Docsify.version = '4.2.1';
Docsify.version = '4.2.2';
/**
* Run Docsify

4
lib/docsify.min.js vendored

File diff suppressed because one or more lines are too long

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "docsify",
"version": "4.2.1",
"version": "4.2.2",
"lockfileVersion": 1,
"dependencies": {
"abbrev": {

View File

@ -1,6 +1,6 @@
{
"name": "docsify",
"version": "4.2.1",
"version": "4.2.2",
"description": "A magical documentation generator.",
"author": {
"name": "qingwei-li",

View File

@ -37,5 +37,5 @@
"integrity": "sha1-6DWIAbhrg7F1YNTjw4LXrvIQCUQ="
}
},
"version": "4.2.1"
"version": "4.2.2"
}

View File

@ -1,6 +1,6 @@
{
"name": "docsify-server-renderer",
"version": "4.2.1",
"version": "4.2.2",
"description": "docsify server renderer",
"author": {
"name": "qingwei-li",

View File

@ -211,7 +211,9 @@ export function initRender (vm) {
dom.before(navAppendToTarget, navEl)
if (config.themeColor) {
dom.$.head.innerHTML += tpl.theme(config.themeColor)
dom.$.head.appendChild(
dom.create('div', tpl.theme(config.themeColor)).getRootNode()
)
// Polyfll
cssVars(config.themeColor)
}