From 1a31d01764bc9fef1730d78a051ab65a42d02efd Mon Sep 17 00:00:00 2001 From: ppst Date: Thu, 15 Jun 2023 12:38:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 22 +++++++++++++++------- package.json | 2 +- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 5b8abfb..e43aa06 100644 --- a/README.md +++ b/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 +## 展示 +![首页](http://img.ppst.top/custom-vitepress-theme/custom-vitepress-theme/1.png) +![归档](http://img.ppst.top/custom-vitepress-theme/custom-vitepress-theme/2.png) +![搜索](http://img.ppst.top/custom-vitepress-theme/custom-vitepress-theme/3.png) +![分类](http://img.ppst.top/custom-vitepress-theme/custom-vitepress-theme/4.png) +![黑夜模式](http://img.ppst.top/custom-vitepress-theme/custom-vitepress-theme/5.png) + + ## 自定义使用 +### 安装 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导航以及标题等 diff --git a/package.json b/package.json index f6ab244..dde8b53 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "custom-vitepress-theme", - "version": "0.0.1", + "version": "0.0.2", "description": "自定义vitepress主题", "main": "src/index.ts", "exports": {