Install / Usage
Less than 1 minute
Requirement
- Env: LTS Versions of Node.js (^18.19.0, ^20.6.0, ^22.0.0)
- Package Manager: npm >= 8, yarn >= 2, pnpm >= 7
- A VuePress2 project with Vue3
Install
Create a new vuepress-theme-hope project in <dir>
folder:
pnpm
pnpm create vuepress-theme-hope <dir>
yarn
yarn create vuepress-theme-hope <dir>
npm
npm init vuepress-theme-hope@latest <dir>
To add vuepress-theme-hope as docs builder to an existing project, run the following command in the project root directory:
pnpm
pnpm create vuepress-theme-hope add <dir>
yarn
yarn create vuepress-theme-hope add <dir>
npm
npm init vuepress-theme-hope@latest add <dir>
Important
<dir>
is a parameter here, replace it with real folder names, such as docs
, blog
or other name you like.
Usage and Configuration
Please import and use hopeTheme
to use vuepress-theme-hope
, the first argument accepted by hopeTheme
will be used as the theme config:
import { hopeTheme } from "vuepress-theme-hope";
export default {
theme: hopeTheme({
// your theme config here
}),
};
You can view Config of this site as an example.
Changelog
2/25/25, 4:08 AM
View All Changelog
b9506
-one639c
-on8289f
-on2c32a
-on6d493
-onb41c0
-on7d82b
-on54c46
-on16c4f
-on5c0cb
-on1ba82
-on94e9b
-on24b0b
-on5e7ca
-on8174c
-onf7e60
-on9a16a
-on2fa50
-on9856d
-on23515
-on9cdd7
-on63d09
-on1bd08
-one07b5
-onfd395
-on1eb77
-onfc15c
-onbcf02
-onf6ff0
-on47206
-on3c199
-on