Skip to content

La Famille / Field notes

Configuration Guide

La Famille uses a config.yaml file to manage site-wide settings. This file allows you to customize the behavior of the generator without having to pass multiple flags every time you build your site.

Initializing the Configuration

If you don’t have a config.yaml file in the root of your project, you can easily generate one with sensible defaults by running:

go run ./cmd/la-famille init

This will create a config.yaml file that looks something like this:

# La Famille Site Configuration
#
# site_name: The name of your site, used in the navbar and footer.
site_name: "La Famille"

# template: The path to the HTML layout file used to render pages.
# Octoburger (templates/layout-octoburger.html) is the flagship theme and the
# global default of La Famille: fresh init sites and the project's own builds
# render it.
template: "templates/layout-octoburger.html"

# content_dir: The directory containing your markdown source files.
content_dir: "content"

# output_dir: The directory where the generated HTML site will be placed.
output_dir: "public"

# asset_dir: The directory containing static assets.
asset_dir: "assets"

# rag_dir: The directory where RAG markdown bundles will be exported.
rag_dir: "rag-archive"

# project_root: Optional root for all relative paths. CLI --project-root wins.
# project_root: "."

# theme: The built-in palette applied by the default layout (retro, ink, sepia, slate, moss).
theme: "retro"

# siteurl: Public URL used for canonical links, og:url, sitemap.xml, and robots.txt.
# siteurl: "https://example.github.io/my-site"

# port: The port on which the local development server will run.
port: 8080

Configuration Fields

Here is a breakdown of each available field:

CLI Flag & Environment Overrides

While config.yaml sets the baseline, you can temporarily override settings using Command Line Flags or environment variables. Explicit CLI paths are resolved from --project-root; --config can select a config file from outside the current directory.

For example, if you want to build an alternative content directory into a different output folder, you can run:

go run ./cmd/la-famille build -c my_docs -o dist

To supply the public site URL without modifying config.yaml, pass --site-url or set the SITE_URL (or LA_FAMILLE_SITE_URL) environment variable:

SITE_URL="https://example.com" go run ./cmd/la-famille build

Any flags provided at runtime take precedence over environment variables and config.yaml. See the CLI Reference for more details.

Build cache and publish output

The complete publish artifact is the output_dir tree: clean-URL HTML pages, raw render: false files, taxonomies, graph/backlink/meta/search files, discovery files, feeds, and copied or embedded runtime assets. The incremental cache is named .la-famille-cache.json and is written beside the project root, not inside public/. Do not upload it. publish-check enforces this policy.