vuepress-theme-hope
Advanced tools
Comparing version 0.0.5-alpha1 to 0.0.5-alpha2
@@ -5,8 +5,8 @@ /* | ||
* @LastEditors: Mr.Hope | ||
* @LastEditTime: 2019-10-11 19:56:21 | ||
* @LastEditTime: 2019-10-11 22:32:57 | ||
* @Description: Vuepress增强配置 | ||
*/ | ||
const resolveSideBar = require('./lib/resolve-sideBar'); | ||
const assign = require('./lib/assign'); | ||
export default ({ | ||
@@ -20,2 +20,11 @@ Vue, // VuePress 正在使用的 Vue 构造函数 | ||
// // 设置图标前缀 | ||
// if (themeConfig.iconPrefix === undefined) themeConfig.iconPrefix = 'icon-'; | ||
// // 设置默认页脚 | ||
// if (!themeConfig.footer) | ||
// themeConfig.footer = { text: 'MIT Licensed | Copyright © 2019-present Mr.Hope' }; | ||
// else if (!themeConfig.footer.text) | ||
// themeConfig.footer.text = 'MIT Licensed | Copyright © 2019-present Mr.Hope'; | ||
const themeConfigDefault = { | ||
@@ -84,3 +93,3 @@ | ||
siteData.themeConfig = Object.assign(themeConfigDefault, themeConfig); | ||
assign(themeConfigDefault, themeConfig); | ||
}; |
@@ -5,3 +5,3 @@ /* | ||
* @LastEditors: Mr.Hope | ||
* @LastEditTime: 2019-10-08 20:56:12 | ||
* @LastEditTime: 2019-10-11 20:44:23 | ||
* @Description: 主题配置 | ||
@@ -31,2 +31,9 @@ */ | ||
/** 添加脚注、上下角标功能 */ | ||
extendMarkdown: md => { | ||
md.use(require('markdown-it-footnote')); | ||
md.use(require('markdown-it-sub')); | ||
md.use(require('markdown-it-sup')); | ||
}, | ||
/** 插件选项 */ | ||
@@ -33,0 +40,0 @@ plugins: [ |
{ | ||
"name": "vuepress-theme-hope", | ||
"version": "0.0.5-alpha1", | ||
"version": "0.0.5-alpha2", | ||
"description": "a light vuepress theme", | ||
@@ -27,2 +27,5 @@ "main": "index.js", | ||
"leancloud-storage": "^3.15.0", | ||
"markdown-it-footnote": "^3.0.2", | ||
"markdown-it-sub": "^1.0.0", | ||
"markdown-it-sup": "^1.0.0", | ||
"moment": "^2.24.0", | ||
@@ -29,0 +32,0 @@ "screenfull": "5.0.0", |
71510
32
586
11
+ Addedmarkdown-it-footnote@^3.0.2
+ Addedmarkdown-it-sub@^1.0.0
+ Addedmarkdown-it-sup@^1.0.0
+ Added@types/http-proxy@1.17.16(transitive)
+ Added@types/node@22.13.1(transitive)
+ Addedmarkdown-it-footnote@3.0.3(transitive)
+ Addedmarkdown-it-sub@1.0.0(transitive)
+ Addedmarkdown-it-sup@1.0.0(transitive)
+ Addedobject-inspect@1.13.4(transitive)
+ Addedsass@1.84.0(transitive)
+ Addedsemver@7.7.1(transitive)
- Removed@types/http-proxy@1.17.15(transitive)
- Removed@types/node@22.13.0(transitive)
- Removedobject-inspect@1.13.3(transitive)
- Removedsass@1.83.4(transitive)
- Removedsemver@7.7.0(transitive)