Workspaces allow you to structure content into logical categories. Editors can easily switch workspaces in the dashboard.

alinea.workspace('My workspace', {
  source, schema, color, roots



A directory in which published content is stored.

// content is stored in the `content` directory
source: './content'


A directory in which uploaded files are placed. In case you'r using alinea to manage web content this will often point to a directory that is made publicly available so an url can be created to download or display the file.

// uploaded files are placed in the `public` folder
mediaDir: './public'


An object containing Root configurations and their keys. Use the alinea.root function to create one.