From 7276664bab098538966f3a6df2e186cd6388307a Mon Sep 17 00:00:00 2001 From: ULIVZ <472590061@qq.com> Date: Tue, 23 Oct 2018 23:15:34 +0800 Subject: [PATCH] feat: init blog & blog theme --- package.json | 7 ++-- packages/@vuepress/theme-blog/.npmignore | 2 ++ packages/@vuepress/theme-blog/README.md | 3 ++ packages/@vuepress/theme-blog/index.js | 10 ++++++ .../@vuepress/theme-blog/layouts/Layout.vue | 13 +++++++ packages/@vuepress/theme-blog/package.json | 32 ++++++++++++++++++ packages/blog/package.json | 14 ++++++++ packages/blog/source/.vuepress/config.js | 4 +++ .../blog/source/.vuepress/public/logo.png | Bin 0 -> 3451 bytes packages/blog/source/_posts/1.html | 12 +++++++ packages/blog/source/_posts/1.md | 5 +++ packages/blog/source/index.md | 13 +++++++ 12 files changed, 112 insertions(+), 3 deletions(-) create mode 100644 packages/@vuepress/theme-blog/.npmignore create mode 100644 packages/@vuepress/theme-blog/README.md create mode 100644 packages/@vuepress/theme-blog/index.js create mode 100644 packages/@vuepress/theme-blog/layouts/Layout.vue create mode 100644 packages/@vuepress/theme-blog/package.json create mode 100644 packages/blog/package.json create mode 100644 packages/blog/source/.vuepress/config.js create mode 100644 packages/blog/source/.vuepress/public/logo.png create mode 100644 packages/blog/source/_posts/1.html create mode 100644 packages/blog/source/_posts/1.md create mode 100644 packages/blog/source/index.md diff --git a/package.json b/package.json index cd774cfd65..e8931793a7 100644 --- a/package.json +++ b/package.json @@ -3,15 +3,16 @@ "workspaces": [ "packages/@vuepress/*", "packages/vuepress", - "packages/docs" + "packages/docs", + "packages/blog" ], "description": "Minimalistic doc generator with Vue component based layout system", "scripts": { "boot": "node scripts/bootstrap.js", "dev": "yarn workspace docs dev", "build": "yarn workspace docs build", - "dev:blog-example": "yarn workspace blog-example dev", - "build:blog-example": "yarn workspace blog-example build", + "dev:blog": "yarn workspace blog dev", + "build:blog": "yarn workspace blog build", "lint": "eslint --fix packages/**/*.js packages/**/*.vue packages/**/bin/*", "release": "yarn --pure-lockfile && node scripts/release.js", "changelog": "node scripts/genChangelog.js run", diff --git a/packages/@vuepress/theme-blog/.npmignore b/packages/@vuepress/theme-blog/.npmignore new file mode 100644 index 0000000000..18f0a334a4 --- /dev/null +++ b/packages/@vuepress/theme-blog/.npmignore @@ -0,0 +1,2 @@ +__tests__ +__mocks__ \ No newline at end of file diff --git a/packages/@vuepress/theme-blog/README.md b/packages/@vuepress/theme-blog/README.md new file mode 100644 index 0000000000..6e0ab6075c --- /dev/null +++ b/packages/@vuepress/theme-blog/README.md @@ -0,0 +1,3 @@ +# @vuepress/theme-blog + +> theme-blog for vuepress \ No newline at end of file diff --git a/packages/@vuepress/theme-blog/index.js b/packages/@vuepress/theme-blog/index.js new file mode 100644 index 0000000000..19e95fffaf --- /dev/null +++ b/packages/@vuepress/theme-blog/index.js @@ -0,0 +1,10 @@ +module.exports = { + plugins: [ + '@vuepress/blog', + '@vuepress/pagination', + '@vuepress/medium-zoom', + ['@vuepress/search', { + searchMaxSuggestions: 10 + }] + ] +} diff --git a/packages/@vuepress/theme-blog/layouts/Layout.vue b/packages/@vuepress/theme-blog/layouts/Layout.vue new file mode 100644 index 0000000000..cde03ada1c --- /dev/null +++ b/packages/@vuepress/theme-blog/layouts/Layout.vue @@ -0,0 +1,13 @@ + diff --git a/packages/@vuepress/theme-blog/package.json b/packages/@vuepress/theme-blog/package.json new file mode 100644 index 0000000000..3a04e3db9b --- /dev/null +++ b/packages/@vuepress/theme-blog/package.json @@ -0,0 +1,32 @@ +{ + "private": true, + "name": "@vuepress/theme-blog", + "version": "1.0.0-alpha.13", + "description": "theme-blog for vuepress", + "main": "index.js", + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/vuejs/vuepress.git" + }, + "keywords": [ + "documentation", + "vue", + "vuepress", + "generator" + ], + "dependencies": { + "@vuepress/plugin-blog": "^1.0.0-alpha.13", + "@vuepress/plugin-pagination": "^1.0.0-alpha.13", + "@vuepress/plugin-search": "^1.0.0-alpha.13", + "@vuepress/plugin-medium-zoom": "^1.0.0-alpha.13" + }, + "author": "ULIVZ ", + "license": "MIT", + "bugs": { + "url": "https://github.com/vuejs/vuepress/issues" + }, + "homepage": "https://github.com/vuejs/vuepress/packages/@vuepress/theme-blog#readme" +} diff --git a/packages/blog/package.json b/packages/blog/package.json new file mode 100644 index 0000000000..852b1562a6 --- /dev/null +++ b/packages/blog/package.json @@ -0,0 +1,14 @@ +{ + "private": true, + "name": "blog", + "description": "blog of VuePress", + "version": "1.0.0-alpha.13", + "scripts": { + "dev": "vuepress dev source --temp .temp", + "build": "vuepress build source --temp .temp" + }, + "dependencies": { + "vuepress": "^1.0.0-alpha.13", + "@vuepress/theme-blog": "^1.0.0-alpha.13" + } +} diff --git a/packages/blog/source/.vuepress/config.js b/packages/blog/source/.vuepress/config.js new file mode 100644 index 0000000000..f60536c0ee --- /dev/null +++ b/packages/blog/source/.vuepress/config.js @@ -0,0 +1,4 @@ +module.exports = { + title: 'VuePress\'s Blog', + theme: '@vuepress/blog' +} diff --git a/packages/blog/source/.vuepress/public/logo.png b/packages/blog/source/.vuepress/public/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..60e17006ad07cd313788585e2f5e528fbb7cf821 GIT binary patch literal 3451 zcmai0dpOj27oUg~BfU14)f(-t-WBEYW{4Ss7DZ)^+{4Vcgc&pLGr}m;*wj!$A+bA4 zlFL|`ap|367Oi5-Ws)(rQYx2GtESCtdVk-U;c44vpV#wqp3gbo&-tA5J?Hz!obdA8 zt*LIH4uioo-S@b7!(eMpgMT$;D8eQ5F2i6-=3e`JT=&H!IJf0MA3813@nVJ?%iUEg z4?=_wBdEhGiK`$LM9?x9of;3Y+|mFB?g{{yx)NLgsFamRa-4!M1L##ZNfAdSQse|w z0syE4MO=mzM*zo>kjdz%h7Xbpu{dlB%DAFSoxi=KK z4+pt6-{Nhs1e*h4w!Yy|?#_dekg^><3MvORV1I~cA4Rl}CPHmPH-c`5il?BH;!xCh zRBAl5EObVqLuL{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>4herRYSlL z!1SLf&zT8S=FCoknKg9ry1``c#EtpuYvs^Y($-1yQq-jCQ_zi_G(i8VQuS9Vl2IJA ztIt4w^d^PiGGCF48uPE;G3Kua9^ m1dnUL@Oj4Wg@5@pTTmBFG|pCC&p82pXS%z3x-{;>Xa5hJTdMB> literal 0 HcmV?d00001 diff --git a/packages/blog/source/_posts/1.html b/packages/blog/source/_posts/1.html new file mode 100644 index 0000000000..fda660896a --- /dev/null +++ b/packages/blog/source/_posts/1.html @@ -0,0 +1,12 @@ +