Kaynağa Gözat

初始化项目

seamong 7 yıl önce
işleme
ab84c99e4e

+ 10 - 0
.editorconfig

@@ -0,0 +1,10 @@
+# editorconfig.org
+root = true
+
+[*]
+indent_style =空格
+indent_size = 4
+end_of_line = lf
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true

+ 35 - 0
.gitignore

@@ -0,0 +1,35 @@
+# Logs
+logs
+*.log
+
+# Runtime data
+pids
+*.pid
+*.seed
+
+# Directory for instrumented libs generated by jscoverage/JSCover
+lib-cov
+
+# Coverage directory used by tools like istanbul
+coverage
+
+# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
+.grunt
+
+# Compiled binary addons (http://nodejs.org/api/addons.html)
+build/Release
+
+# Dependency directory
+# Deployed apps should consider commenting this line out:
+# see https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git
+/node_modules
+
+# vim swapfile
+*.swp
+
+# Output of documentation
+_book
+
+book.pdf
+book.epub
+book.mobi

+ 23 - 0
book.js

@@ -0,0 +1,23 @@
+var pkg = require('./package.json');
+
+module.exports = {
+    // Documentation for GitBook is stored under "docs"
+    root: './doc/',
+    title: '代码收集',
+
+    // Enforce use of GitBook v3
+    gitbook: '3.1.1',
+
+    // Use the "official" theme
+    plugins: ['theme-official@2.1.1', '-sharing', '-fontsettings', 'sitemap'],
+
+    variables: {
+        version: pkg.version
+    },
+
+    pluginsConfig: {
+        sitemap: {
+            hostname: 'https://toolchain.gitbook.com'
+        }
+    }
+};

+ 2 - 0
doc/Examples/examples.md

@@ -0,0 +1,2 @@
+# Examples
+

+ 2 - 0
doc/FAQ/faq.md

@@ -0,0 +1,2 @@
+# FAQ
+

+ 2 - 0
doc/Getting/README.md

@@ -0,0 +1,2 @@
+# About this documentation
+

+ 2 - 0
doc/Getting/setup.md

@@ -0,0 +1,2 @@
+# Installation and Setup
+

+ 3 - 0
doc/README.md

@@ -0,0 +1,3 @@
+# Introduction
+
+参考项目地址:[gitbook](https://github.com/GitbookIO/gitbook)

+ 14 - 0
doc/SUMMARY.md

@@ -0,0 +1,14 @@
+# Summary
+
+## Getting Started
+* [About this documentation](README.md)
+* [Installation and Setup](setup/setup.md)
+
+## Getting
+* [About this documentation](Getting/README.md)
+* [Installation and Setup](Getting/setup.md)
+
+-----
+* [FAQ](FAQ/faq.md)
+* [Examples](Examples/examples.md)
+

+ 26 - 0
doc/_layouts/website/page.html

@@ -0,0 +1,26 @@
+{% extends template.self %}
+
+{% block header_nav %}
+<a href="https://github.com/GitbookIO/gitbook/blob/master/docs/{{ file.path }}" target="_blank" class="btn btn-link pull-right hidden-xs">
+    <i class="octicon octicon-mark-github"></i> Edit on GitHub
+</a>
+<a href="{{ "faq.md"|resolveFile }}" class="btn btn-link pull-right hidden-xs">
+    F.A.Q
+</a>
+<a href="https://github.com/GitbookIO/gitbook/blob/master/CHANGES.md" target="_blank" class="btn btn-link pull-right hidden-xs">
+    {{ book.version }}
+</a>
+{% endblock %}
+
+{% block page %}
+{{ super() }}
+<hr>
+<div class="btn-group btn-group-justified">
+    {% if page.previous and page.previous.path %}
+    <a class="btn" href="{{ page.previous.path|resolveFile }}"><b>Previous:</b> {{ page.previous.title }}</a>
+    {% endif %}
+    {% if page.next and page.next.path %}
+    <a class="btn" href="{{ page.next.path|resolveFile }}"><b>Next:</b> {{ page.next.title }}</a>
+    {% endif %}
+</div>
+{% endblock %}

+ 2 - 0
doc/setup/setup.md

@@ -0,0 +1,2 @@
+# Installation and Setup
+

+ 16 - 0
package.json

@@ -0,0 +1,16 @@
+{
+  "name": "blogs",
+  "version": "1.0.0",
+  "description": "",
+  "main": "book.js",
+  "dependencies": {
+    "gitbook-plugin-sitemap": "^1.2.0",
+    "gitbook-plugin-theme-official": "^2.1.1"
+  },
+  "devDependencies": {},
+  "scripts": {
+    "test": "echo \"Error: no test specified\" && exit 1"
+  },
+  "author": "",
+  "license": "ISC"
+}