ユーザとの対話は日本語を使用する。 This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is a static documentation generator for creating HTML build guides from Markdown source files. The project is specifically designed for generating keyboard build guides that will be published to GitHub Pages. It uses Pandoc to convert Markdown files to HTML with custom styling and templates.
build.batchmod +x build.sh
./build.shBoth scripts perform the same operations:
- Check for Pandoc installation
- Validate required directories and template files exist
- Copy CSS files from
src/css/todocs/css/ - Convert all
.mdfiles insrc/to HTML indocs/ - Copy corresponding image directories from
src/images/todocs/images/
src/- Source content directory*.md- Markdown files to be convertedcss/style.css- Source CSS fileimages/[filename]/- Images organized by document name
template/template.html- Pandoc HTML template with TOC supportdocs/- Generated output directory (created by build process)*.html- Generated HTML filescss/style.css- Copied CSS fileimages/- Copied image directories
The build system automatically:
- Generates HTML with table of contents using
--tocflag - Links CSS stylesheet with
--css css/style.css - Uses custom HTML template for consistent layout
- Copies image directories matching document names
- Creates responsive layout with sidebar TOC
- Pandoc (required): Used for Markdown to HTML conversion
- The build scripts check for Pandoc availability and provide installation instructions if missing
- Uses Pandoc templating with conditional TOC generation
- Template includes responsive design with sidebar navigation
- Japanese content support with appropriate fonts
- GitHub-style formatting and color scheme
Generated files in docs/ directory are ready for GitHub Pages deployment without additional configuration.