Exporting and sharing notes

~2 min read

Exporting and sharing notes

There’s no separate bundler command — lettuce publish is the export path. It renders the vault to a self-contained static site (HTML, search, graph, tag pages, sitemap) with no .lettuce/ cruft, which is exactly what you share or host.

What gets exported

By default, only notes with published: true in their frontmatter are rendered — so marking the handful of notes you want to share is the selection mechanism (there’s no folder include/exclude config). Pass --all to render every note instead.

lettuce publish ~/Notes --out ~/share/site          # only published: true notes
lettuce publish ~/Notes --out ~/share/site --all     # everything

See CLI cookbook/03 lettuce publish for the full flag set, and Publishing/01 Overview for how the static site is built.

Sharing privately vs publicly

Single file

To export one note as a standalone HTML page (no site), use CLI cookbook/02 lettuce render:

lettuce render Notes/Recipe.md --out recipe.html