Doc Blocks for Astro
Astro reference-page layouts with contents links and previous/next navigation.
Guide
Use a reading column with contents links, a callout, and previous and next navigation.
bunx --bun shadcn@latest add @gnostic/doc-1npx shadcn@latest add @gnostic/doc-1pnpm dlx shadcn@latest add @gnostic/doc-1Choose a doc layout
Choose a doc layout for material that readers will scan and revisit. Keep the title specific and organize the body into stable headings that can be linked directly.
Pass content from Astro
Pass the title, description, table-of-contents items, labels, and navigation links required by the variant. The copy button reads the current page path and copies the text from that path with a .md extension. The block does not discover collections, create routes, or infer heading IDs.
Responsive layout and images
Check the contents list when the layout becomes one column. Wide code and tables need their own overflow handling. Images in the body need dimensions and descriptive alt text; avoid using screenshots as the only source of instructions.