Appearance
VitePress Blog
A simple blog built with VitePress, maintained through Markdown files.
Installation
bash
npm installDevelopment
Start the development server:
bash
npm run docs:devThe blog will be available at http://localhost:5173
Build
Build the static site:
bash
npm run docs:buildThe built files will be in the .vitepress/dist directory.
Preview
Preview the production build:
bash
npm run docs:previewAdding New Blog Posts
- Create a new
.mdfile in theblog/directory - Add the post to the sidebar in
.vitepress/config.mjs - Update the blog index in
blog/index.mdif desired
Project Structure
docs/
├── .vitepress/
│ └── config.mjs # VitePress configuration
├── blog/
│ ├── index.md # Blog posts listing
│ └── welcome.md # Example blog post
├── index.md # Home page
├── about.md # About page
├── package.json # Project dependencies
└── .gitignore # Git ignore rulesCustomization
- Edit
.vitepress/config.mjsto customize the site title, navigation, sidebar, and theme - Modify the Markdown files to change the content
- Add custom CSS or JavaScript in
.vitepress/theme/for advanced customization