https://github.com/railmapgen/rmt-blog
https://github.com/railmapgen/rmt-blog
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/railmapgen/rmt-blog
- Owner: railmapgen
- License: gpl-3.0
- Created: 2026-02-09T14:08:23.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2026-04-04T08:57:16.000Z (2 months ago)
- Last Synced: 2026-04-04T09:35:51.389Z (2 months ago)
- Language: CSS
- Size: 9.27 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RMT Blog
Guide for local Hexo debugging and adding new documentation posts.
## Prerequisites
- Node.js LTS and npm installed
- Git installed
- Hexo CLI (optional for global use)
```bash
npm install -g hexo-cli
```
## Local Development (Debug)
1. Install dependencies in the repository root:
```bash
npm install
```
2. Start the local server:
```bash
npm run server
```
3. Open the site in your browser:
```text
http://localhost:4000
```
4. (Optional) Clean cache if you see stale content:
```bash
npx hexo clean
```
## Deploy to Github Pages
Trigger the pages workflows in Actions.
## Add a New Documentation Post
This repository stores posts under `source/_posts//`. Create the
Markdown file in the target locale folder and follow the front-matter format.
### Step 1: Create the Markdown file
Example paths:
- `source/_posts/en-US/your-doc-title.md`
- `source/_posts/zh-CN/your-doc-title.md`
### Step 2: Add front matter
Use a YAML front matter block at the top of the file:
```yaml
---
title: "Your Doc Title"
date: 2026-02-09 10:00:00
tags:
- docs
categories:
- documentation
---
```
### Step 3: Write content
Add your Markdown content below the front matter. Use headings, lists, and code
blocks as needed.
### Step 4: Preview locally
```bash
npx hexo server --draft
```
## Publish (Generate Static Files)
```bash
npx hexo generate
```