# Exports

A roadmap is exported to three files. Each is listed in `exports.json`, the manifest beside it.

```bash
npx recit export --to ics product.md   # product.ics
npx recit export --to rss product.md   # product.rss
npx recit export --to pdf product.md   # product.pdf
```

## Calendar (ICS)

One all-day event per **dated milestone**, and per dated item with `ics.items: true`. Dates stay
civil dates (`VALUE=DATE`): an event never moves to the day before in another time zone. Each event
keeps the same `UID` from one build to the next (`<id>@<slug>.<host>`, the host of `url`), so a
calendar app that subscribes updates it rather than adding it twice.

## Feed (RSS)

An RSS 2.0 feed of the items **done and dated** (`end`), the most recent first: the changelog of the
roadmap. Its links need the address of the published page, `url:` in the front matter or
`roadmap.url` in `recit.config`; without it the command stops and says so.

## PDF

`recit export --to pdf` prints the printable view (`?print=1`): the timeline by default, on one A4
landscape page with 12 mm margins, set by `roadmap.pdf` (`view`, and `page` with `size`,
`orientation` and `margins`).

## In a site

A Récit site that publishes a roadmap writes its files beside the page at build time:
`/roadmap/product` is served with `/roadmap/product.ics` and, when the roadmap has a `url`,
`/roadmap/product.rss`, in each language (`/fr/roadmap/product.ics`), all listed in the site's
`exports.json`. On Vercel, the `headers` of `vercel.json` serve them as `text/calendar` and
`application/rss+xml`.

In an MDX page, `<RoadmapChangelog slug="product" />` lists what shipped, each entry linking to its
card, with the link to the feed.
