Create Project
This tutorial guides you through creating a VuePress Theme Hope project.
1. Choose an Appropriate Location
To avoid accidentally triggering problems that you cannot solve, please avoid using file paths that contain CJK characters, emoji or spaces (e.g. C:\Users\鲁迅\Desktop\VuePress Project\Hope theme ❤️\
).
We recommend using plain English paths (e.g. D:\projects\vuepress-theme-hope\
).
2. Create Project Template
Open a terminal in the chosen folder.
Opening Terminal on Windows
Please use File Explorer to open that folder, then enter cmd
in the address bar above and press Enter.
Execute one of the following commands in the terminal:
pnpm create vuepress-theme-hope my-docs
yarn create vuepress-theme-hope my-docs
npm init vuepress-theme-hope@latest my-docs
Folder Argument
Here my-docs
is an argument representing the folder name of the VuePress Theme Hope project. In this tutorial, we will generate the project to the my-docs
folder in the current directory.
You can change this parameter to use a new folder if you want.
Development Server
If you choose to start the development server after the template is initialized, you can enter localhost:8080/
in the browser address bar to access the development server after it starts.
Changelog
6ca3e
-ond45e2
-onc1923
-on7d82b
-on5a635
-ond45fd
-on2a306
-on24b0b
-on5e7ca
-on8174c
-ona0c8a
-onec469
-on9a16a
-onad023
-on570c6
-onfd395
-on9e3b2
-on