Skip to content
  • Sponsor docsifyjs/docsify

  • Notifications You must be signed in to change notification settings
  • Fork 5.7k
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: docsifyjs/docsify
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.0.4
Choose a base ref
...
head repository: docsifyjs/docsify
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.0.5
Choose a head ref
  • 4 commits
  • 6 files changed
  • 1 contributor

Commits on Nov 22, 2016

  1. Fix docs link

    QingWei-Li committed Nov 22, 2016
    Copy the full SHA
    9eccff8 View commit details
  2. Update vue theme

    QingWei-Li committed Nov 22, 2016
    Copy the full SHA
    3d54f9d View commit details
  3. fix title bug

    QingWei-Li committed Nov 22, 2016
    Copy the full SHA
    bb76a1e View commit details

Commits on Nov 24, 2016

  1. -> v0.0.5

    QingWei-Li committed Nov 24, 2016
    Copy the full SHA
    bbb540c View commit details
Showing with 26 additions and 7 deletions.
  1. +1 −1 README.md
  2. +5 −3 docs/404.html
  3. +1 −1 docs/README.md
  4. +6 −1 package.json
  5. +3 −1 src/docsify.js
  6. +10 −0 themes/vue.css
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.
8 changes: 5 additions & 3 deletions docs/404.html
Original file line number Diff line number Diff line change
@@ -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>
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -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.
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
4 changes: 3 additions & 1 deletion src/docsify.js
Original file line number Diff line number Diff line change
@@ -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 changes: 10 additions & 0 deletions themes/vue.css
Original file line number Diff line number Diff line change
@@ -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;