Skip to content

Commit

Permalink
publish to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
Libra11-zz committed Nov 13, 2020
1 parent a95bc57 commit 1ff8307
Show file tree
Hide file tree
Showing 8 changed files with 10,861 additions and 2,541 deletions.
21 changes: 4 additions & 17 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,10 @@ module.exports = {
},
],
],
plugins: ['vuepress-plugin-table-of-contents','@vuepress/back-to-top'],
locales: {
"/": {
lang: "en-US", // 将会被设置为 <html> 的 lang 属性
title: "vue-press-theme-libra",
description: "a vuepress theme by libra",
},
"/zh/": {
lang: "zh-CN",
title: "vue-press-theme-libra",
description: "libra写的vuepress主题",
},
},
plugins: [
'vuepress-plugin-table-of-contents',
'@vuepress/back-to-top',
],
// theme:
themeConfig: {
// 主页
Expand Down Expand Up @@ -62,13 +53,9 @@ module.exports = {
headerPic: "https://libra321.oss-cn-huhehaote.aliyuncs.com/avatar.jpg",
},
comment: {
// 是否显示评论列表
showComment: true,
// The owner's name of repository to store the issues and comments.
owner: 'Libra11',
// The name of repository to store the issues and comments.
repo: 'vuepress-theme-libra',
// The clientId & clientSecret introduced in OAuth2 spec.
clientId: '07f6df24d9150e2da866',
clientSecret: 'ec60c756133e4a608e60405110a1fd6c78f19ecc',
}
Expand Down
6 changes: 6 additions & 0 deletions docs/.vuepress/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "vuepress-theme-libra2",
"version": "1.0.1",
"description": "a vuepress blog template",
"main": "config.js"
}
9 changes: 5 additions & 4 deletions docs/.vuepress/theme/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
const { themeConfig } = require("../config");
// pro
// const {themeConfig} = require('../../docs/.vuepress/config.js')
// dev
const {themeConfig} = require('../../.vuepress/config.js')
module.exports = {
plugins: [
[
"@vuepress/blog",
{
comment: {
// Which service you'd like to use
service: 'vssue',
locale: 'zh',
autoCreateIssue: true,
// The owner's name of repository to store the issues and comments.
owner: themeConfig.comment.owner,
// The name of repository to store the issues and comments.
Expand Down Expand Up @@ -104,4 +105,4 @@ module.exports = {
},
],
],
};
}
39 changes: 35 additions & 4 deletions docs/.vuepress/theme/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,37 @@
{
"name": "theme",
"version": "1.0.0",
"main": "index.js",
"license": "MIT"
"name": "vuepress-theme-libra",
"version": "1.0.0",
"description": "a vuepress blog template",
"main": "config.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Libra11/vuepress-theme-libra.git"
},
"keywords": [
"vuepress"
],
"author": "libra",
"license": "ISC",
"bugs": {
"url": "https://github.com/Libra11/vuepress-theme-libra/issues"
},
"homepage": "https://github.com/Libra11/vuepress-theme-libra#readme",
"dependencies": {
"less": "^3.12.2",
"less-loader": "^7.0.1",
"vue": "2.6.12",
"vue-particles": "^1.0.9",
"vue-router": "3.0.7",
"vue-server-renderer": "2.6.12",
"vue-template-compiler": "2.6.12",
"@vuepress/plugin-back-to-top": "^1.7.1",
"@vuepress/plugin-blog": "^1.9.2",
"vue-class-component": "^7.2.6",
"vue-property-decorator": "^9.0.2",
"vuepress": "^1.5.4",
"vuepress-plugin-table-of-contents": "^1.1.7"
}
}
Loading

0 comments on commit 1ff8307

Please sign in to comment.