From 59cc98e29ceec0ae08275d2eb2c7c5e71a3e690b Mon Sep 17 00:00:00 2001 From: Zhang Peng Date: Tue, 14 Nov 2017 17:39:25 +0800 Subject: [PATCH] =?UTF-8?q?:tada:=20=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .editorconfig | 31 +++++++++++++++++++++ .gitattributes | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++ .gitignore | 26 +++++++++++++++++ README.md | 1 + book.json | 70 ++++++++++++++++++++++++++++++++++++++++++++++ docs/README.md | 3 ++ package.json | 24 ++++++++++++++++ 7 files changed, 230 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 book.json create mode 100644 docs/README.md create mode 100644 package.json diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..d9c3abd --- /dev/null +++ b/.editorconfig @@ -0,0 +1,31 @@ +# EditorConfig helps developers define and maintain consistent +# coding styles between different editors and IDEs +# http://editorconfig.org +# 所有文件换行使用 Unix like 风格(LF),bat 文件使用 win 风格(CRLF) +# 缩进 java 4 个空格,其他所有文件 2 个空格 + +root = true + +[*] +# Unix-style newlines with a newline ending every file +end_of_line = lf + +# Change these settings to your own preference +indent_size = 2 +indent_style = space +max_line_length = 120 + +# We recommend you to keep these unchanged +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.bat] +end_of_line = crlf + +[*.java] +indent_size = 4 + +[*.md] +max_line_length = 0 +trim_trailing_whitespace = false diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..1e3aabc --- /dev/null +++ b/.gitattributes @@ -0,0 +1,75 @@ +* text=auto eol=lf + +# plan text +*.txt text +*.java text +*.scala text +*.groovy text +*.gradle text +*.xml text +*.xsd text +*.tld text +*.yaml text +*.yml text +*.wsdd text +*.wsdl text +*.jsp text +*.jspf text +*.js text +*.jsx text +*.json text +*.css text +*.less text +*.sql text +*.properties text + +# unix style +*.sh text eol=lf + +# win style +*.bat text eol=crlf + +# don't handle +*.der -text +*.jks -text +*.pfx -text +*.map -text +*.patch -text +*.dat -text +*.data -text +*.db -text + +# binary +*.jar binary +*.war binary +*.zip binary +*.tar binary +*.tar.gz binary +*.gz binary +*.apk binary +*.bin binary +*.exe binary + +# images +*.png binary +*.jpg binary +*.ico binary +*.gif binary + +# medias +*.mp3 binary +*.swf binary + +# fonts +*.eot binary +*.svg binary +*.ttf binary +*.woff binary + +# others +*.pdf binary +*.doc binary +*.docx binary +*.xls binary +*.xlsx binary +*.xmind binary diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b12b999 --- /dev/null +++ b/.gitignore @@ -0,0 +1,26 @@ +################ JAVASCRIPT ################ +# dependencies +node_modules + +# temp folders +build +dist +_book +_jsdoc + +# temp files +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +bundle*.js + + +################ IDEA ################ +.idea +*.iml + + +################ Eclipse ################ +.classpath +.project diff --git a/README.md b/README.md index 6a73fa3..8a54a0a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # linux-notes + :book: Linux 学习笔记。 diff --git a/book.json b/book.json new file mode 100644 index 0000000..2f5f981 --- /dev/null +++ b/book.json @@ -0,0 +1,70 @@ +{ + "gitbook": "3.2.2", + "title": "linux-notes", + "description": "linux 学习笔记", + "author": "Zhang Peng", + "language": "zh-hans", + "root": "./docs", + "links": { + "sidebar": { + "linux-notes": "https://github.com/dunwu/linux-notes" + } + }, + "plugins": [ + "-lunr", + "-search", + "advanced-emoji@^0.2.2", + "anchor-navigation-ex@1.0.10", + "anchors@^0.7.1", + "edit-link@^2.0.2", + "expandable-chapters-small@^0.1.7", + "github@^2.0.0", + "search-plus@^0.0.11", + "simple-page-toc@^0.1.1", + "splitter@^0.0.8", + "tbfed-pagefooter@^0.0.1" + ], + "pluginsConfig": { + "anchor-navigation-ex": { + "showLevel": false, + "associatedWithSummary": true, + "multipleH1": true, + "mode": "float", + "isRewritePageTitle": false, + "float": { + "showLevelIcon": false, + "level1Icon": "fa fa-hand-o-right", + "level2Icon": "fa fa-hand-o-right", + "level3Icon": "fa fa-hand-o-right" + }, + "pageTop": { + "showLevelIcon": false, + "level1Icon": "fa fa-hand-o-right", + "level2Icon": "fa fa-hand-o-right", + "level3Icon": "fa fa-hand-o-right" + } + }, + "edit-link": { + "base": "https://github.com/dunwu/linux-notes/blob/master/docs", + "label": "编辑此页面" + }, + "github": { + "url": "https://github.com/dunwu" + }, + "simple-page-toc": { + "maxDepth": 4, + "skipFirstH1": true + }, + "sharing": { + "weibo": true, + "all": [ + "weibo" + ] + }, + "tbfed-pagefooter": { + "copyright": "Copyright © Zhang Peng 2017", + "modify_label": "该文件上次修订时间:", + "modify_format": "YYYY-MM-DD HH:mm:ss" + } + } +} diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000..8a54a0a --- /dev/null +++ b/docs/README.md @@ -0,0 +1,3 @@ +# linux-notes + +:book: Linux 学习笔记。 diff --git a/package.json b/package.json new file mode 100644 index 0000000..95c1731 --- /dev/null +++ b/package.json @@ -0,0 +1,24 @@ +{ + "name": "linux-notes", + "description": "linux 学习笔记", + "scripts": { + "clean": "rimraf _book", + "prepare": "gitbook install", + "build": "gitbook build ./ --log=debug --debug", + "start": "gitbook serve" + }, + "repository": { + "type": "git", + "url": "https://github.com/dunwu/linux-notes.git" + }, + "author": "Zhang Peng", + "license": "Apache 2.0", + "bugs": { + "url": "https://github.com/dunwu/linux-notes/issues" + }, + "homepage": "https://github.com/dunwu/linux-notes", + "devDependencies": { + "gitbook-cli": "^2.3.2", + "rimraf": "^2.3.4" + } +}