diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..2d2ecd6 --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +.git/ diff --git a/.eslintrc b/.eslintrc index d6a85f8..5620c1c 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,5 +1,7 @@ { - "extends": ["vue"], + "extends": [ + "vue" + ], "env": { "browser": true }, diff --git a/.gitignore b/.gitignore index ee8a519..c2ba75d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -.DS_Store *.log +.DS_Store +/themes node_modules -/themes \ No newline at end of file diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..41b1431 --- /dev/null +++ b/.npmignore @@ -0,0 +1,5 @@ +.eslintignore +.eslintrc +.github/ +.gitignore +.travis.yml diff --git a/.travis.yml b/.travis.yml index fb0b83e..db361c4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,9 @@ sudo: false cache: directories: - - $HOME/.yarn-cache + - $HOME/.yarn-cache language: node_js node_js: stable +os: + - linux + - osx diff --git a/dev.html b/dev.html index 4b31b4d..2a689c6 100644 --- a/dev.html +++ b/dev.html @@ -23,15 +23,14 @@ '/zh-cn/changelog': '/changelog', '/changelog': 'https://raw.githubusercontent.com/QingWei-Li/docsify/master/CHANGELOG' }, + auto2top: true, + basePath: '/docs/', + executeScript: true, loadNavbar: true, - executeScript: true + loadSidebar: true, + name: 'docsify', + subMaxLevel: 2 } - + diff --git a/docs/_navbar.md b/docs/_navbar.md index 0957c69..350c32b 100644 --- a/docs/_navbar.md +++ b/docs/_navbar.md @@ -1,4 +1,4 @@ - :uk: - [:cn: 中文](/zh-cn/) - - [:de: German](/de-de/) + - [:de: Deutsch](/de-de/) - [:uk: English](/) diff --git a/docs/de-de/_navbar.md b/docs/de-de/_navbar.md index 95260cd..758167d 100644 --- a/docs/de-de/_navbar.md +++ b/docs/de-de/_navbar.md @@ -1,4 +1,4 @@ - :de: - [:cn: 中文](/zh-cn/) - - [:de: German](/de-de/) + - [:de: Deutsch](/de-de/) - [:uk: English](/) diff --git a/docs/zh-cn/_navbar.md b/docs/zh-cn/_navbar.md index 47bc8f7..87019b5 100644 --- a/docs/zh-cn/_navbar.md +++ b/docs/zh-cn/_navbar.md @@ -1,4 +1,4 @@ - :cn: - [:cn: 中文](/zh-cn/) - - [:de: German](/de-de/) + - [:de: Deutsch](/de-de/) - [:uk: English](/) diff --git a/package.json b/package.json index 6411565..03ac1dc 100644 --- a/package.json +++ b/package.json @@ -32,13 +32,13 @@ }, "devDependencies": { "cssnano": "^3.10.0", - "eslint": "^3.17.1", + "eslint": "^3.18.0", "eslint-config-vue": "^2.0.2", "eslint-plugin-vue": "^2.0.1", "nodemon": "^1.11.0", "postcss": "^5.2.16", "postcss-salad": "^1.0.8", - "rollup": "^0.41.5", + "rollup": "^0.41.6", "rollup-plugin-buble": "^0.15.0", "rollup-plugin-commonjs": "^8.0.2", "rollup-plugin-node-resolve": "^2.0.0", diff --git a/src/themes/basic/_layout.css b/src/themes/basic/_layout.css index 9c6408b..1752794 100644 --- a/src/themes/basic/_layout.css +++ b/src/themes/basic/_layout.css @@ -425,7 +425,17 @@ body.close { } } -@media (max-width: 600px) { +@media print { + .github-corner, .sidebar-toggle, .sidebar { + display: none; + } + + nav { + display: none; + } +} + +@media screen and (max-width: 768px) { .github-corner, .sidebar-toggle, .sidebar { position: fixed; }