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 Javascript library is generated inside the .alinea folder which allows us to interact with the content in JavaScript. It is linked via the @alinea/generated package name.
// Published content is stored in json files
// inside the content directory
content
├ data // data root
│ ├ index.json
│ ├ blog.json
│ ╰ blog
│ ├ blog-post.json
│ ╰ another-blog-post.json
╰ media // media root
├ image.png.json
╰ file.pdf.json
// A folder which is publicly available
public
╰ media
├ image.png
╰ file.pdf
// The alinea directory exports a Javascript library
// which can be imported from @alinea/generated
.alinea
├ ...
├ pages.js
├ schema.js
╰ backend.js