Skip to content

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Jekyll source for the liblouis website (www.liblouis.io, via CNAME), served by GitHub Pages. Content is Markdown (kramdown) with Bootstrap 3 layouts. No tests, no build step beyond Jekyll. Setup: gem install jekyll jekyll-sitemap.

Commands

  • jekyll serve (or just serve): build and serve at http://localhost:4000. Output goes to _site/ (gitignored).
  • make: copy the single-page manual (documentation/liblouis.html) from a sibling checkout at ../liblouis/doc, stripping the HTML head and adding Jekyll front matter. Requires ../liblouis to exist (the Makefile includes ../liblouis/doc/Makefile.am).
  • just copy-multipage-docs: same for the multi-page manual, ../liblouis/doc/liblouis.html/* into documentation/liblouis/. Build the docs in the liblouis repo first.

Structure

  • _posts/YYYY-MM-DD-<slug>.md: news items. Posts get layout: post by default (see _config.yml); front matter is category (Liblouis, louis-rs, Liblouisutdml, …) and title. news/index.md shows the latest post in full and lists the rest; index.md (layout front) shows the latest three posts’ excerpts, i.e. the first paragraph, so make it a self-contained summary.
  • downloads/index.md: hand-maintained table of release download links pointing at GitHub release assets.
  • documentation/: manuals copied from the liblouis repo (see commands above). Don’t edit the generated HTML by hand; regenerate it.
  • translate/: in-browser “try liblouis” page using an Emscripten build (liblouis.js).
  • _drafts/: unpublished drafts.

Release workflow

A liblouis release update (see e.g. commit c6ff543) is one commit containing: a new _posts/<date>-liblouis-release-X.Y.Z.md, the bumped version in the links in downloads/index.md, and refreshed documentation/ from the liblouis repo. Release posts link the closed-issues milestone on GitHub and include a {:toc} block.

Context

liblouis is transitioning to louis-rs (Rust reimplementation); liblouis is in maintenance mode until a final release planned for November 2027. The front page (index.md) carries a notice about this, and louis-rs releases are posted under category: louis-rs.