diff --git a/README.md b/README.md index dc3678ae4..57f2d5127 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # docsify [WIP] -[![Build Status](https://travis-ci.org/QingWei-Li/docsify.svg?branch=master)](https://travis-ci.org/QingWei-Li/docwsify) +[![Build Status](https://travis-ci.org/QingWei-Li/docsify.svg?branch=master)](https://travis-ci.org/QingWei-Li/docsify) [![npm](https://img.shields.io/npm/v/docsify.svg)](https://www.npmjs.com/package/docsify) >🃏 A magical documentation site generator. diff --git a/docs/404.html b/docs/404.html index 7eb32e206..1df852aea 100644 --- a/docs/404.html +++ b/docs/404.html @@ -2,9 +2,11 @@ - docsify + - - + +
+ + diff --git a/docs/README.md b/docs/README.md index dc3678ae4..57f2d5127 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,5 +1,5 @@ # docsify [WIP] -[![Build Status](https://travis-ci.org/QingWei-Li/docsify.svg?branch=master)](https://travis-ci.org/QingWei-Li/docwsify) +[![Build Status](https://travis-ci.org/QingWei-Li/docsify.svg?branch=master)](https://travis-ci.org/QingWei-Li/docsify) [![npm](https://img.shields.io/npm/v/docsify.svg)](https://www.npmjs.com/package/docsify) >🃏 A magical documentation site generator. diff --git a/package.json b/package.json index ad71bd232..f967c3e69 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "docsify", - "version": "0.0.4", + "version": "0.0.5", "description": "A magical documentation generator.", "main": "lib/docsify.pack.js", "files": [ @@ -12,6 +12,10 @@ "build": "node build/build.js", "test": "eslint src test" }, + "repository": { + "type": "git", + "url": "https://github.com/QingWei-Li/docsify.git" + }, "keywords": [ "doc", "docs", @@ -20,6 +24,7 @@ "generator" ], "author": "qingwei-li (https://github.com/QingWei-Li)", + "homepage": "https://QingWei-Li.github.io/docsify", "license": "MIT", "devDependencies": { "eslint": "^3.10.2", diff --git a/src/docsify.js b/src/docsify.js index ffc7f69c2..5dea44657 100644 --- a/src/docsify.js +++ b/src/docsify.js @@ -12,8 +12,10 @@ class Docsify { constructor (opts) { Docsify.installed = true - this.replace = true this.opts = Object.assign({}, opts, DEFAULT_OPTS) + this.opts.title = (this.opts.title ? this.opts.sep : '') + this.opts.title + + this.replace = true this.dom = document.querySelector(this.opts.el) if (!this.dom) { this.dom = document.body diff --git a/themes/vue.css b/themes/vue.css index 77abe14a6..d8f180e3e 100644 --- a/themes/vue.css +++ b/themes/vue.css @@ -97,6 +97,16 @@ main { padding-top: 20px; } +@media screen(max-width: 600px) { + .sidebar { + left: -300px; + } + + .content { + left: 0; + } +} + /* markdown content found on pages */ .markdown-section { position: relative;