This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Jekyll-based documentation website for the Be Framework, a PHP framework focused on ontological programming. Supports English and Japanese.
./bin/serve.sh # Start Jekyll dev server via Docker on port 4000
docker compose up # Same as above
bundle exec jekyll serve # If Ruby/Jekyll installed locallyJekyll builds to _site/ automatically. Never edit files in _site/ — it is build output.
- Markdown files in
manuals/1.0/{en,ja}/with frontmatter - Layout templates in
_layouts/(docs-en.html,docs-ja.html,index.html,index_ja.html) - Shared header/footer in
_includes/manuals/1.0/(header, footer, language-specific contents) _plugins/sidebar_generator.rbauto-generates sidebar navigation from pages withcategory: Manual_includes/manuals/1.0/{en,ja}/contents.htmlrenders the sidebar using Liquid, iteratingsite.pages
Language toggle works by replacing /en/ ↔ /ja/ in the page's permalink. For this to work, English and Japanese pages must have mirrored permalink paths — e.g., /manuals/1.0/en/01-overview.html and /manuals/1.0/ja/01-overview.html.
Every manual page must include:
---
layout: docs-en # or docs-ja
title: "Overview"
category: Manual
permalink: /manuals/1.0/en/01-overview.html
---layoutdetermines language-specific template and sidebarcategory: Manualis required for sidebar inclusionpermalinkmust follow the pattern/manuals/1.0/{lang}/{filename}.html- Pages under
convention/or withsidebar: falseare excluded from sidebar 10-semantic-loggingand13-vision-lddare intentionally hidden from the sidebar (sidebar: false)
- Create
.mdfile inmanuals/1.0/en/andmanuals/1.0/ja/with proper frontmatter - File naming:
NN-slug.md(number prefix controls sort order in sidebar) - Navigation sidebar is auto-generated — no manual nav update needed
- Cross-link to other pages using
.htmlextensions (not.md):./02-input-classes.html
llms.txt/llms-full.txt— LLM-friendly project documentation (linked from header as "LLMs")_plugins/sidebar_data.rb/sidebar_generator.rb— Jekyll generators for sidebar dataDockerfile—jekyll/jekyll:pagesimage with webrick