修复一些bug
This commit is contained in:
parent
545fa37894
commit
9cf571f360
|
|
@ -28,8 +28,8 @@
|
|||
|
||||
## 这个主题可以做什么?
|
||||
* 案例1:[知识库兼博客站](https://xugaoyi.com/)
|
||||
* 案例2:仅知识库
|
||||
* 案例3:[仅博客站](https://xugaoyi.github.io/vdoing-demo-blog/)
|
||||
* 案例2:[仅博客站](https://xugaoyi.github.io/vdoing-demo-blog/)
|
||||
* 案例3:仅知识库
|
||||
* 案例4:[文档站](https://xugaoyi.github.io/vuepress-theme-vdoing-doc/)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ module.exports = {
|
|||
markdown: {
|
||||
lineNumbers: true // 代码行号
|
||||
},
|
||||
// theme: 'vdoing', // 使用依赖包主题
|
||||
theme: require.resolve('../../vuepress-theme-vdoing'), // 使用本地主题
|
||||
theme: 'vdoing', // 使用依赖包主题
|
||||
// theme: require.resolve('../../theme-vdoing'), // 使用本地主题
|
||||
themeConfig: { // 主题配置
|
||||
nav,
|
||||
sidebarDepth: 2, // 侧边栏显示深度,默认1,最大2(显示到h3标题)
|
||||
|
|
@ -140,7 +140,7 @@ module.exports = {
|
|||
[
|
||||
'vuepress-plugin-zooming', // 放大图片
|
||||
{
|
||||
selector:'.theme-vdoing-content img:not(.no-zoom)',
|
||||
selector:'.theme-vdoing-content img:not(.no-zoom)', // 排除class是no-zoom的图片
|
||||
options: {
|
||||
bgColor: 'rgba(0,0,0,0.6)'
|
||||
},
|
||||
|
|
|
|||
|
|
@ -25,7 +25,11 @@ features: # 可选的
|
|||
# postList: simple
|
||||
---
|
||||
|
||||
|
||||
|
||||
<!-- 小熊猫 -->
|
||||
<img src="/img/panda-waving.png" class="panda no-zoom" style="width: 130px;height: 115px;opacity: 0.8;margin-bottom: -4px;padding-bottom:0;position: fixed;bottom: 0;left: 0.5rem;">
|
||||
|
||||
<!--
|
||||
## 关于
|
||||
|
||||
### 📚Blog
|
||||
|
|
@ -39,7 +43,7 @@ features: # 可选的
|
|||
|
||||
</br>
|
||||
|
||||
<!--
|
||||
|
||||
## 特色功能
|
||||
博客部分特色功能介绍
|
||||
|
||||
|
|
@ -76,5 +80,8 @@ features: # 可选的
|
|||
- **WeChat or QQ**: <a href="tencent://message/?uin=894072666&Site=&Menu=yesUrl" class='qq'>894072666</a>
|
||||
- **Email**: <a href="mailto:894072666@qq.com">894072666@qq.com</a>
|
||||
- **GitHub**: <https://github.com/xugaoyi>
|
||||
|
||||
</br>
|
||||
-->
|
||||
|
||||
|
||||
<img src="/img/panda-waving.png" class="panda" style="width: 250px;height: 223px;opacity: 0.85;margin-bottom: -4px;"> -->
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
"vuepress-plugin-one-click-copy": "^1.0.2",
|
||||
"vuepress-plugin-thirdparty-search": "^1.0.2",
|
||||
"vuepress-plugin-zooming": "^1.1.7",
|
||||
"vuepress-theme-vdoing": "file:vuepress-theme-vdoing",
|
||||
"vuepress-theme-vdoing": "^1.0.0-beta.7",
|
||||
"yamljs": "^0.3.0"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
|||
|
|
@ -456,10 +456,12 @@ export default {
|
|||
.pagination
|
||||
margin-bottom 4rem
|
||||
.theme-vdoing-content
|
||||
padding 0rem 2rem
|
||||
overflow hidden
|
||||
padding 0 2rem
|
||||
clear:both;
|
||||
&>:first-child
|
||||
padding-top 1rem
|
||||
padding-top 2rem
|
||||
&>:last-child
|
||||
padding-bottom 2rem
|
||||
|
||||
@keyframes heart
|
||||
from{transform:translate(0,0)}
|
||||
|
|
@ -113,7 +113,7 @@ function mapTocToSidebar(root, collapsable, prefix){
|
|||
let [order, title, type] = filename.split('.');
|
||||
order = parseInt(order, 10);
|
||||
if (isNaN(order) || order < 0) {
|
||||
log(chalk.yellow(`warning: 该文件 "${file}" 序号出错,请填写正确的序号,序号约定请查看:https://github.com/xugaoyi/vuepress-theme-vdoing/issues/113`))
|
||||
log(chalk.yellow(`warning: 该文件 "${file}" 序号出错,请填写正确的序号`))
|
||||
return;
|
||||
}
|
||||
if (sidebar[order]) { // 判断序号是否已经存在
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "vuepress-theme-vdoing",
|
||||
"version": "1.0.0-beta.6",
|
||||
"version": "1.0.0-beta.7",
|
||||
"description": "Vdoing theme for VuePress. 一个基于VuePress的知识管理兼博客主题。",
|
||||
"author": {
|
||||
"name": "gaoyi(Evan) Xu"
|
||||
Loading…
Reference in New Issue