Guide for local Hexo debugging and adding new documentation posts.
- Node.js LTS and npm installed
- Git installed
- Hexo CLI (optional for global use)
npm install -g hexo-cli- Install dependencies in the repository root:
npm install- Start the local server:
npm run server- Open the site in your browser:
http://localhost:4000
- (Optional) Clean cache if you see stale content:
npx hexo cleanTrigger the pages workflows in Actions.
This repository stores posts under source/_posts/<locale>/. Create the
Markdown file in the target locale folder and follow the front-matter format.
Example paths:
source/_posts/en-US/your-doc-title.mdsource/_posts/zh-CN/your-doc-title.md
Use a YAML front matter block at the top of the file:
---
title: "Your Doc Title"
date: 2026-02-09 10:00:00
tags:
- docs
categories:
- documentation
---Add your Markdown content below the front matter. Use headings, lists, and code blocks as needed.
npx hexo server --draftnpx hexo generate