This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is the Komapper Documentation project - a Hugo-based static site using the Docsy theme to document Komapper, an ORM library for server-side Kotlin supporting JDBC and R2DBC. The site is deployed at https://www.komapper.org/ and supports bilingual content (English/Japanese).
# Local development (preferred method)
docker compose build
docker compose up
# Access at http://localhost:1313
# Version management
./gradlew updateVersion # Update version numbers across documentation
./gradlew archive # Archive current version for release
./gradlew debug # Show current branch name
# Direct Hugo (requires local Hugo installation)
hugo server # Start development server
hugo server --buildDrafts # Include draft content- Hugo: Static site generator with Docsy theme
- Gradle: Version management and automated content updates
- Docker: Containerized development environment
- Netlify: Hosting with deploy previews for PRs
The project maintains multiple versions with sophisticated automation:
- Version numbers defined in
gradle.properties(currently Kotlin 2.1.21, KSP 2.0.1, Komapper 5.3.0) updateVersiontask automatically updates version references across documentation- Each version gets its own branch and subdomain (e.g., v5-2.komapper.org)
content/
βββ en/ # English documentation
βββ ja/ # Japanese documentation
- Update version numbers in
gradle.properties - Run
./gradlew updateVersion - Update version URLs in
config.toml - Create new branch from main
- Configure Netlify for new branch
- In old branch, run
./gradlew archive - Update URLs in
config.toml - Create subdomain on Netlify
config.toml: Hugo configuration with version and URL settingsgradle.properties: Version definitions for all dependenciesbuild.gradle.kts: Gradle tasks for version management and content updatescontent/en/andcontent/ja/: Bilingual documentation content
- Always maintain both English and Japanese content when making changes
- Use Gradle tasks for version updates to ensure consistency across all files
- Netlify provides automatic deploy previews for pull requests
- The Docsy theme is managed as a Hugo module dependency