Getting Started
Getting Started with AnhDojo Docs
Section titled “Getting Started with AnhDojo Docs”Welcome to the AnhDojo documentation. This guide will help you set up the project, add new content, and customize the theme.
Prerequisites
Section titled “Prerequisites”- Node.js (>=18)
- pnpm (or npm/yarn)
- Git
Installation
Section titled “Installation”# Clone the repositorygit clone https://github.com/ducanhvina17/my-blog-v2.gitcd my-blog-v2
# Install dependenciespnpm installDevelopment
Section titled “Development”Run the development server:
pnpm devVisit http://localhost:3000 to see the site. The docs are available at http://localhost:3000/docs.
Adding New Blog Posts
Section titled “Adding New Blog Posts”Create a new markdown file in src/content/blog/ with front‑matter:
---title: "My New Post"date: 2025-11-22excerpt: "A short summary"tags: ["example", "tutorial"]---
Your content goes here.The post will automatically appear on the blog listing page.
Customizing the Theme
Section titled “Customizing the Theme”Edit src/styles/globals.css to adjust colors, fonts, and spacing. The primary color is defined by --primary and the accent by --accent.
Building for Production
Section titled “Building for Production”pnpm buildThe static files are generated in the dist/ folder. Deploy this folder to your hosting provider.
Deploying
Section titled “Deploying”You can deploy to platforms like Vercel, Netlify, or any static hosting service. Example for Vercel:
vercelFor more detailed guides, see the Guides section in the sidebar.