Projects

A directory of notes, compiled into one file your website reads.

A project is a directory with a cdrm_config file ( cdrm_config.json , .toml or .yaml ). Two commands compile it:

cdrm compile-project        # compile once
cdrm watch-directory        # compile, then recompile as notes change

Both read the config in the current directory. To use another one, pass its directory:

cdrm compile-project apps/website

The config file

{
  "name": "Fluster",
  "desc": "Modern academic note taking",
  "build_target": "next",
  "opts": {
    "note_id": null,
    "content": "",
    "modifiers": [],
    "hide_components": [],
    "ui_params": {
      "dark_mode": true,
      "font_scalar": 1,
      "math_font_scalar": 1.2,
      "syntax_theme": null
    },
    "target": "html",
    "trusted": true
  },
  "source": {
    "input": "./cdrm",
    "output": {
      "path": "./src/features/cdrm/cdrm.db",
      "format": "html"
    }
  },
  "ignore": {
    "respect_gitignore": true
  }
}
Key Meaning
name , desc The project's name and description. desc is Conundrum content and can end up in generated pages, such as a website's description.
build_target The kind of site the output is for. next (Next.js) is the only one so far.
opts How every note is compiled: the same options as the Conundrum library's ParseConundrumOptions . ui_params sets dark mode, font scale and code theme; target is the output format.
source.input The directory of notes, relative to the config.
source.output.path Where the output goes: a SQLite database, or a JSON file with blog.storage = "json" . If it's a directory, cdrm_output.db (or .json ) is written inside it. See Storage and search.
ignore.respect_gitignore Skip files your .gitignore excludes.
blog How the notes are presented as a blog: featured posts, subject order and colors, hidden notes. See Blog configuration.

Notes are .cdrm , .mdx and .md files anywhere under source.input . To leave some out, list them in a cdrm_ignore file, which uses the same patterns as .gitignore .

Watching

cdrm watch-directory compiles the whole project once, then watches source.input . When notes change, it compiles only those notes again and rewrites the output. If a changed note doesn't compile, the last good version is kept. Several saves in quick succession are handled together.