Content

Alinea generates files on your file system in a few places.

  • Content is published into a directory as JSON files. Note that we're considering making these files more human editable in the future too.

  • Media files are published in two places: a JSON file with metadata is placed with the content and the file itself is placed in a separate directory, typically ./public.

  • A supporting Javascript library is generated inside the @alinea/generated package.

// Published content is stored in json files 
// inside the content directory
content
pages // pages root
│ ├ index.json
│ ├ blog.json
│ ╰ blog
│   ├ blog-post.json
│   ╰ another-blog-post.json
media // media root
image.json
file.json

// A folder which is publicly available
public
image.XYZ.png
file.XYZ.pdf

// The alinea directory exports a Javascript library
// which can be imported from @alinea/generated
node_modules/@alinea/generated
├ ...
config.js
store.js