Skip to content

astroprint v0.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 06 Jun 16:46

Release astroprint v0.2.0.

Added

  • Added AcademicDocument.astro for reusing the built-in academic CV document surface inside caller-owned layouts.
  • Added PreviewShell.astro for reusing generated-route navigation, print behavior, scroll restoration, and Paged.js preview branching without astroprint's BaseLayout.astro.
  • Added injected route support for single Markdown files and single content collection entries.
  • Added source-specific injected route config types: AstroPrintCollectionRouteConfig, AstroPrintCollectionEntryRouteConfig, AstroPrintMarkdownRouteConfig, and AstroPrintInjectedRouteConfig.

Changed

  • Renamed the integration route injection option from routes to injectedRoutes.
  • Replaced the exported AstroPrintRouteConfig type with AstroPrintInjectedRouteConfig.
  • 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 previewRoute or set it to false to skip preview injection, set previewRoute: true for the default preview path, or pass a custom preview route string.
  • Generated routes now pass withPreviewShell={true} to layouts instead of preview={true}.
  • AcademicLayout.astro now composes AcademicDocument.astro, reads titles only from collection entry data or Markdown frontmatter, and supports withPreviewShell from standalone Markdown frontmatter.
  • PrintPreview.astro now defaults its ready event to astroprint-preview:ready.
  • Renamed the playground package script from pnpm pdf to pnpm astroprint for running the local CLI.

Removed

  • Removed PreviewLayout.astro; use PreviewShell.astro inside a layout instead.
  • Removed root-level title and secondaryTitle props from AcademicLayout.astro; use collection entry data or Markdown frontmatter instead.