Installation & Usage
About 565 wordsAbout 2 min
GuideQuick Start
2025-10-08
Environment Requirements
How to Install Environment Dependencies?
Download Node.js
Visit the Node.js official website to download the latest stable version. Follow the installation wizard to complete the installation (typically keeping the default settings is sufficient).
Enable PNPM
After installation, open the terminal and execute the following command:
corepack enable
We recommend using pnpm as the package manager.
Environment Ready
Command Line Installation Recommended
We provide a command-line tool for quickly setting up a basic project structure. Execute the following command to start the installation wizard:
pnpm create vuepress-theme-plume@latest
yarn create vuepress-theme-plume@latest
npm create vuepress-theme-plume@latest
After launching, simply answer a few simple questions to complete the configuration:
┌ Welcome to VuePress and vuepress-theme-plume !
│
◇ Select a language to display / 选择显示语言
│ Simplified Chinese
│
◇ Where do you want to initialize VuePress?
│ ./my-project
│
◇ Site name:
│ My Vuepress Site
│
◇ Site description:
│ My Vuepress Site Description
│
◇ Use multiple languages?
│ No
│
◇ Select the default language for the site
│ Simplified Chinese
│
◇ Use TypeScript?
│ Yes
│
◇ Select the bundler tool
│ Vite
│
◇ Deployment method:
│ Custom
│
◇ Initialize git repository?
│ Yes
│
◇ Install dependencies?
│ Yes
│
◇ 🎉 Creation successful!
│
└ 🔨 Start with the following commands:
cd ./my-project
pnpm run docs:dev
Command Line Tool Usage Guide
Using Windows as an example:
- Press
Win + R
to open the "Run" dialog - Enter
cmd
orpowershell
and press Enter
If the current directory is incorrect, use the following commands to switch:
D: # Switch to D drive (adjust according to your situation)
cd open-source # Enter the target directory
You can then execute pnpm create vuepress-theme-plume@latest
to create the project. The project will be located in the D:\open-source\my-project
directory.
Manual Installation
Important Notes
If manual installation is required, follow these steps:
Create Project Directory
mkdir my-blog cd my-blog
Initialize Project
pnpmgit init pnpm init
yarngit init yarn init
npmgit init npm init
Install Core Dependencies
Install
vuepress@next
and the theme package:pnpm# Install VuePress pnpm add -D vuepress@next vue # Install theme and build tool pnpm add -D vuepress-theme-plume @vuepress/bundler-vite@next
yarn# Install VuePress yarn add -D vuepress@next vue # Install theme and build tool yarn add -D vuepress-theme-plume @vuepress/bundler-vite@next
npm# Install VuePress npm i -D vuepress@next vue # Install theme and build tool npm i -D vuepress-theme-plume @vuepress/bundler-vite@next
Version Compatibility
The current theme is adapted to
[email protected]
. Using other versions may cause compatibility issues.Configure Build Scripts
Add the following to
package.json
:package.json{ "scripts": { "docs:dev": "vuepress dev docs", "docs:build": "vuepress build docs" } }
VuePress uses the
docs
directory as the documentation root by default.Configure Git Ignore Rules
.gitignorenode_modules .temp .cache
shecho 'node_modules' >> .gitignore echo '.temp' >> .gitignore echo '.cache' >> .gitignore
Configure Theme
docs/.vuepress/config.tsimport {
viteBundler} from '@vuepress/bundler-vite' import {defineUserConfig} from 'vuepress' import {plumeTheme} from 'vuepress-theme-plume' export defaultdefineUserConfig({ // Default language must be setlang: 'zh-CN',theme:plumeTheme({ // Theme configuration... }),bundler:viteBundler(), })Language Configuration Required
Regardless of whether multiple languages are used, the
lang
option must be correctly configured. The theme relies on this setting to determine the text language environment.Create Homepage Document
README.md--- home: true ---
Start Development Server
pnpmpnpm docs:dev
yarnyarn docs:dev
npmnpm run docs:dev
VuePress will start a development server at http://localhost:8080 with hot-reload support for Markdown files.
Installation Complete
Theme Update
Use the following command to check and update the theme:
pnpm dlx vp-update
yarn dlx vp-update
npx vp-update
Contributors
Changelog
38505
-docs: update en docs (#708)on4d236
-feat(theme)!: add collections support (#704)on729a0
-feat!: dropnode18
support, close #574 (#575)on497fe
-docs: fix markdown formatting and update snippet path in usage guideon9f99a
-docs: add enmarkdown
doc (#538)ona4ac3
-docs: add en-US docs (#514)onbf9ef
-docs: update docson