ไธญๆ | 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!
