fix: 主题升级v1.9.0

This commit is contained in:
xugaoyi 2022-01-03 11:29:29 +08:00
parent d8e4447252
commit bc26495567
5 changed files with 12 additions and 11 deletions

View File

@ -1,15 +1,14 @@
import { resolve } from 'path'
import { defineConfig4CustomTheme } from 'vuepress/config'
import { VdoingThemeConfig } from '../../vdoing/types'
// import { VdoingThemeConfig } from 'vuepress-theme-vdoing/types'
import { VdoingThemeConfig } from 'vuepress-theme-vdoing/types'
import dayjs from 'dayjs'
import baiduCode from './config/baiduCode' // 百度统计hm码
import htmlModules from './config/htmlModules' // 自定义插入的html块
export default defineConfig4CustomTheme<VdoingThemeConfig>({
// theme: 'vdoing', // 使用npm包主题
theme: resolve(__dirname, '../../vdoing'), // 使用本地主题
theme: 'vdoing', // 使用npm包主题
// theme: resolve(__dirname, '../../vdoing'), // 使用本地主题
locales: {
'/': {

View File

@ -385,11 +385,13 @@ function loadScript(src, done) {
**渲染树转换为网页布局称为“布局流”flow布局显示到页面的这个过程称为“绘制”paint**。它们都具有阻塞效应,并且会耗费很多时间和计算资源。
```` markdown
```mermaid
graph LR
1(渲染树) -- 布局流flow --> 2(网页布局)
2 --绘制paint--> 3(页面显示)
```
````
**页面生成以后脚本操作和样式表操作都会触发“重流”reflow和“重绘”repaint**。

View File

@ -15,7 +15,7 @@ author:
### 加载渲染过程
```text
```
父beforeCreate -> 父created-> 父beforeMount-> 子beforeCreate -> 子created -> 子beforeMount -> 子mounted -> 父mounted
```
@ -23,18 +23,18 @@ author:
### 子组件更新过程
```text
```
父beforeUpdate -> 子beforeUpdate -> 子updated -> 父updated
```
### 父组件更新过程
```text
```
父beforeUpdate -> 父updated
```
### 销毁过程
```text
```
父beforeDestroy -> 子beforeDestroy -> 子destroyed -> 父destroyed
```

View File

@ -7,7 +7,7 @@
"deploy": "bash deploy.sh",
"editFm": "node utils/editFrontmatter.js",
"baiduPush": "node utils/baiduPush.js https://xugaoyi.com && bash baiduPush.sh",
"publish": "cd ./theme-vdoing && npm publish && cd .. && yarn updateTheme",
"publish": "cd ./vdoing && npm publish && cd .. && yarn updateTheme",
"updateTheme": "yarn remove vuepress-theme-vdoing && rm -rf node_modules && yarn && yarn add vuepress-theme-vdoing -D"
},
"license": "MIT",
@ -22,7 +22,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": "^1.8.6",
"vuepress-theme-vdoing": "^1.9.0",
"yamljs": "^0.3.0"
},
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "vuepress-theme-vdoing",
"version": "1.8.6",
"version": "1.9.0",
"description": "Vdoing theme for VuePress. 一个基于VuePress的知识管理兼博客主题。",
"author": {
"name": "gaoyi(Evan) Xu"