feat: 添加展示图片
This commit is contained in:
22
README.md
22
README.md
@@ -1,25 +1,33 @@
|
||||
# vitepress 自定义主题
|
||||
可以直接克隆,也可以使用下面方法一步步自定义实现
|
||||
|
||||
## 克隆demo项目
|
||||
克隆地址
|
||||
```shell
|
||||
git clone http://git.ppst.top/pp/custom-vitepress-theme-demo.git
|
||||
http://git.ppst.top/pp/custom-vitepress-theme-demo
|
||||
```
|
||||
## 安装 vitepress
|
||||
## 展示
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
## 自定义使用
|
||||
### 安装 vitepress
|
||||
```shell
|
||||
pnpm install vitepress
|
||||
```
|
||||
## 安装主题
|
||||
### 安装主题
|
||||
|
||||
```shell
|
||||
pnpm install custom-vitepress-theme
|
||||
```
|
||||
## 安装读取文档插件
|
||||
### 安装读取文档插件
|
||||
```shell
|
||||
pnpm install markdown-from-posts
|
||||
```
|
||||
|
||||
## 目录结构
|
||||
### 目录结构
|
||||
|
||||
```md
|
||||
.vitepress
|
||||
@@ -37,7 +45,7 @@ public
|
||||
index.md
|
||||
```
|
||||
|
||||
### .vitepress文件夹
|
||||
#### .vitepress文件夹
|
||||
|
||||
config.ts - 配置自定义vitepress导航以及标题等
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "custom-vitepress-theme",
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.2",
|
||||
"description": "自定义vitepress主题",
|
||||
"main": "src/index.ts",
|
||||
"exports": {
|
||||
|
Reference in New Issue
Block a user