中文 | English
This is the source code repository for the HugeGraph documentation website.
For the HugeGraph database project, visit apache/hugegraph.
Only 3 steps to run the documentation website locally:
Prerequisites: Hugo Extended v0.95+ and Node.js v16+
# 1. Clone repository
git clone https://github.com/apache/hugegraph-doc.git
cd hugegraph-doc
# 2. Install dependencies
npm install
# 3. Start development server (auto-reload)
hugo serverOpen http://localhost:1313 to preview.
Troubleshooting: If you see
TOCSS: failed to transform "scss/main.scss", install Hugo Extended version, not the standard version.
hugegraph-doc/
├── content/ # 📄 Documentation content (Markdown)
│ ├── cn/ # 🇨🇳 Chinese documentation
│ │ ├── docs/ # Main documentation
│ │ │ ├── quickstart/ # Quick start guides
│ │ │ ├── config/ # Configuration docs
│ │ │ ├── clients/ # Client docs
│ │ │ ├── guides/ # User guides
│ │ │ └── ...
│ │ ├── blog/ # Blog posts
│ │ └── community/ # Community pages
│ └── en/ # 🇺🇸 English documentation (mirrors cn/ structure)
│
├── themes/docsy/ # 🎨 Docsy theme (git submodule)
├── assets/ # 🖼️ Custom assets (fonts, images, scss)
├── layouts/ # 📐 Hugo template overrides
├── static/ # 📁 Static files
├── config.toml # ⚙️ Site configuration
└── package.json # 📦 Node.js dependencies
- Fork this repository
- Create a new branch from
master - Make your changes
- Submit a Pull Request with screenshots
| Requirement | Description |
|---|---|
| Bilingual Updates | Update BOTH content/cn/ and content/en/ |
| PR Screenshots | Include before/after screenshots in PR |
| Markdown | Use Markdown with Hugo front matter |
See contribution.md for:
- Platform-specific Hugo installation
- Docsy theme customization
- Translation tips
| Command | Description |
|---|---|
hugo server |
Start dev server (hot reload) |
hugo --minify |
Build production to ./public/ |
hugo server -p 8080 |
Custom port |
这是 HugeGraph 官方文档网站 的源代码仓库。
如果你想查找 HugeGraph 数据库本身,请访问 apache/hugegraph。
只需 3 步即可在本地启动文档网站:
前置条件: Hugo Extended v0.95+ 和 Node.js v16+
# 1. 克隆仓库
git clone https://github.com/apache/hugegraph-doc.git
cd hugegraph-doc
# 2. 安装依赖
npm install
# 3. 启动开发服务器(支持热重载)
hugo server打开 http://localhost:1313 预览网站。
常见问题: 如果遇到
TOCSS: failed to transform "scss/main.scss"错误, 说明你需要安装 Hugo Extended 版本,而不是标准版本。
hugegraph-doc/
├── content/ # 📄 文档内容 (Markdown)
│ ├── cn/ # 🇨🇳 中文文档
│ │ ├── docs/ # 主要文档目录
│ │ │ ├── quickstart/ # 快速开始指南
│ │ │ ├── config/ # 配置文档
│ │ │ ├── clients/ # 客户端文档
│ │ │ ├── guides/ # 使用指南
│ │ │ └── ...
│ │ ├── blog/ # 博客文章
│ │ └── community/ # 社区页面
│ └── en/ # 🇺🇸 英文文档(与 cn/ 结构一致)
│
├── themes/docsy/ # 🎨 Docsy 主题 (git submodule)
├── assets/ # 🖼️ 自定义资源 (fonts, images, scss)
├── layouts/ # 📐 Hugo 模板覆盖
├── static/ # 📁 静态文件
├── config.toml # ⚙️ 站点配置
└── package.json # 📦 Node.js 依赖
- Fork 本仓库
- 基于
master创建新分支 - 修改文档内容
- 提交 Pull Request(附截图)
| 要求 | 说明 |
|---|---|
| 双语更新 | 修改内容时需同时更新 content/cn/ 和 content/en/ |
| PR 截图 | 提交 PR 时需附上修改前后对比截图 |
| Markdown | 文档使用 Markdown 格式,带 Hugo front matter |
查看 contribution.md 了解:
- 各平台 Hugo 安装方法
- Docsy 主题定制
- 翻译技巧
| 命令 | 说明 |
|---|---|
hugo server |
启动开发服务器(热重载) |
hugo --minify |
构建生产版本到 ./public/ |
hugo server -p 8080 |
指定端口 |
- Issues: GitHub Issues
- Mailing List: dev@hugegraph.apache.org (subscribe first)
- Slack: ASF Slack
Thanks to all contributors to the HugeGraph documentation!
