Compare commits

..
4 Commits
Author SHA1 Message Date
qingwei.li bbb540ce82 -> v0.0.5 2016-11-24 22:53:44 +08:00
qingwei.li bb76a1e446 fix title bug 2016-11-22 23:33:22 +08:00
qingwei.li 3d54f9d001 Update vue theme 2016-11-22 23:28:31 +08:00
qingwei.li 9eccff837d Fix docs link 2016-11-22 22:54:55 +08:00
6 changed files with 26 additions and 7 deletions
+1 -1
View File
@@ -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.
+5 -3
View File
@@ -2,9 +2,11 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>docsify</title>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="//unpkg.com/docsify/themes/vue.css">
</head>
<body></body>
<script src="//unpkg.com/docsify"></script>
<body>
<div id="app"></div>
</body>
<script src="//unpkg.com/docsify/lib/docsify.pack.min.js"></script>
</html>
+1 -1
View File
@@ -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.
+6 -1
View File
@@ -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 <cinwell.li@gmail.com> (https://github.com/QingWei-Li)",
"homepage": "https://QingWei-Li.github.io/docsify",
"license": "MIT",
"devDependencies": {
"eslint": "^3.10.2",
+3 -1
View File
@@ -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
+10
View File
@@ -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;