This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is the documentation website for BEAR.Sunday, a resource-oriented PHP framework. The site is built with Jekyll and hosted on GitHub Pages at https://bearsunday.github.io/.
- Jekyll Site: Static site generator for documentation
- Bilingual Documentation: English (
manuals/1.0/en/) and Japanese (manuals/1.0/ja/) versions - LLMs.txt Compliance: Special handling for AI/LLM accessibility via custom scripts
- GitHub Actions: Automated deployment to GitHub Pages
# Install dependencies (requires Ruby 3.2.3)
gem install jekyll bundler
bundle install
# Serve locally with live reload
./bin/serve_local.sh
# Serve with Docker
./bin/serve_docker.sh# Build site
bundle exec jekyll build
# Build with custom scripts (production)
ruby bin/merge_md_files.rb
bundle exec jekyll buildbin/serve_local.sh: Local development server with Jekyll watch modebin/serve_docker.sh: Docker-based developmentbin/merge_md_files.rb: Generates combined documentation files (1page.md) from individual markdown filesbin/copy_markdown_files.sh: Copies markdown files to_sitefor llms.txt compliance (removes Jekyll frontmatter)
manuals/1.0/{en,ja}/: Main documentation in markdown format_includes/manuals/1.0/{en,ja}/contents.html: Navigation structure that determines page order_layouts/: Jekyll templates for different page types_config.yml: Jekyll configuration with llms.txt specific settings_site/: Generated static site (includes both HTML and cleaned markdown files)
The site uses a sophisticated system for managing documentation:
- Individual markdown files in
manuals/1.0/{en,ja}/ - Navigation order determined by
_includes/manuals/1.0/{language}/contents.html - Combined documentation generated via
merge_md_files.rb - LLMs.txt compliance through frontmatter-stripped copies in
_site/manuals/
- Uses Kramdown markdown processor with Rouge syntax highlighting
- Custom plugin (
_plugins/copy_markdown.rb) ensures markdown files are copied to_site/ - Special include/keep_files configuration for llms.txt standard compliance
- Navigation structure embedded in HTML files rather than configuration
- GitHub Actions:
.github/workflows/jekyll.ymlhandles automatic deployment - Ruby Version: 3.2.2 in CI, 3.2.3 locally (Jekyll compatibility requirement)
- Custom Build Steps: Runs
merge_md_files.rbbefore Jekyll build in CI