Release astroprint v0.2.0.
Added
- Added
AcademicDocument.astrofor reusing the built-in academic CV document surface inside caller-owned layouts. - Added
PreviewShell.astrofor reusing generated-route navigation, print behavior, scroll restoration, and Paged.js preview branching without astroprint'sBaseLayout.astro. - Added injected route support for single Markdown files and single content collection entries.
- Added source-specific injected route config types:
AstroPrintCollectionRouteConfig,AstroPrintCollectionEntryRouteConfig,AstroPrintMarkdownRouteConfig, andAstroPrintInjectedRouteConfig.
Changed
- Renamed the integration route injection option from
routestoinjectedRoutes. - Replaced the exported
AstroPrintRouteConfigtype withAstroPrintInjectedRouteConfig. - Injected route configs now require an explicit
route; astroprint no longer injects a default/astroprint/{collection}route. - Paged preview routes are now opt-in. Omit
previewRouteor set it tofalseto skip preview injection, setpreviewRoute: truefor the default preview path, or pass a custom preview route string. - Generated routes now pass
withPreviewShell={true}to layouts instead ofpreview={true}. AcademicLayout.astronow composesAcademicDocument.astro, reads titles only from collection entry data or Markdown frontmatter, and supportswithPreviewShellfrom standalone Markdown frontmatter.PrintPreview.astronow defaults its ready event toastroprint-preview:ready.- Renamed the playground package script from
pnpm pdftopnpm astroprintfor running the local CLI.
Removed
- Removed
PreviewLayout.astro; usePreviewShell.astroinside a layout instead. - Removed root-level
titleandsecondaryTitleprops fromAcademicLayout.astro; use collection entry data or Markdown frontmatter instead.