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:
site_name(string): The title of your website. This is often used by layouts in the header or footer navigation. Default: “La Famille”template(string): The default HTML layout used for rendering pages. Octoburger (templates/layout-octoburger.html) is the flagship soul theme and the global default of La Famille — every freshinitsite and the project’s own builds render it. You can override this on a per-page basis using frontmatter. Default: “templates/layout-octoburger.html”content_dir(string): The source directory containing your Markdown.mdfiles. Default: “content”output_dir(string): The destination directory where the fully generated static site (HTML, JSON graphs, etc.) will be placed. Default: “public”asset_dir(string): The directory containing static assets. Default: “assets”include_unused_theme_assets(bool): Keep the entire bundled theme CSS/image packet in published output, even if no generated page or stylesheet references it. By default, unused embedded assets and unchanged copies installed byinitare omitted. Edited site assets remain untouched. Enable this for assets used only by dynamic client-side fetches. Search and graph assets keep their own behavior. Default:falserag_dir(string): The directory where RAG markdown bundles will be exported. Default: “rag-archive”project_root(string, optional): The site root used to resolve the other relative paths. When omitted, the config file directory (or current directory) is used. An explicit--project-rootflag takes precedence.theme(string): The built-in palette applied by the default layout. The default layout ships five local-first palettes:retro(warm paper, the default),ink(dark),sepia(aged paper),slate(cool light), andmoss(green light). Alternate layouts may ignore this value and keep their own fixed identity. Default: “retro”siteurl(string, optional): The public base URL for canonical links,og:url, absolutesitemap.xmllocations, and theSitemapdirective inrobots.txt. For example, GitHub Pages projects can usehttps://username.github.io/project-name. Leave it unset for local-only builds; the sitemap uses root-relative locations and no production host is guessed. The legacysite_urlkey is still accepted.port(integer): The local network port used by the built-in HTTP server (go run ./cmd/la-famille serve). Default: 8080graph_explorer(bool): Whentrue(default), every build also emits a self-contained Knowledge Graph Explorer page at<output_dir>/graph/index.html. The page is fully static, loads its prebuiltgraph/data.jsonpayload via a relative fetch, and supports search, filter toggles, focus mode, and?node=deep-linking. Sites at or above 500 nodes open in search-first mode, where the visualization is not drawn until a page is selected. Set tofalseto skip generation entirely; the legacy config keysgraphExplorerandGraph Explorerare not accepted. The associated client bundle is atassets/graph/explorer.{js,css}; released binaries provide fallback copies, while files in the selected site asset directory remain authoritative overrides. Note: the YAML tag is snake_casegraph_explorerto match neighboring keys likecheck_asset_health; the camelCasegraphExplorerform documented in the original task spec is intentionally not accepted.
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.