This file provides guidance to AI coding assistants (Claude Code, Cursor, GitHub Copilot, etc.) when working with code in this repository.
Apache HugeGraph documentation website built with Hugo static site generator and the Docsy theme. The site is bilingual (Chinese/English) and covers the complete HugeGraph graph database ecosystem.
# Install dependencies npm install # Start development server (auto-reload enabled) hugo server # Build production site (output to ./public) hugo --minify # Clean build rm -rf public/ # Production build with garbage collection HUGO_ENV="production" hugo --gc # Custom server configuration hugo server -b http://127.0.0.1 -p 80 --bind=0.0.0.0
content/ ├── cn/ # Chinese documentation (default language) │ ├── docs/ # Main documentation │ ├── blog/ # Blog posts │ ├── community/ │ └── about/ └── en/ # English documentation (parallel structure) themes/docsy/ # Docsy theme (submodule) layouts/ # Custom template overrides assets/ # Processed assets (SCSS, images) static/ # Static files served directly config.toml # Main site configuration
Documentation sections in content/{cn,en}/docs/:
quickstart/ - Getting started guides for HugeGraph componentsconfig/ - Configuration documentationclients/ - Client API documentation (Gremlin, RESTful)guides/ - User guides and tutorialsperformance/ - Benchmarks and optimizationlanguage/ - Query language docscontribution-guidelines/ - Contributing guideschangelog/ - Release notesdownload/ - Download instructionsconfig.toml - Site-wide settings, language config, menu structure, version (currently 0.13)package.json - Node dependencies for CSS processing (postcss, autoprefixer, mermaid).editorconfig - UTF-8, LF line endings, spaces for indentationWhen editing documentation:
content/cn/ and content/en/.github/workflows/hugo.yml)master branch or pull requestsnpm i && hugo --minify with Node v16 and Hugo v0.102.3 extendedasf-site branch (GitHub Pages)This documentation covers:
“TOCSS: failed to transform scss/main.scss”
Theme/module not found
git submodule update --init --recursiveCI build fails but works locally