Getting Started
AI agents
Point your coding agent at these docs.
The module is built to be easy to use from an AI coding agent: every public type has JSDoc, the API is small and predictable, and this site serves its content as plain Markdown files an agent can read.
llms.txt
| URL | |
|---|---|
/llms.txt | An index of every page with a short description. |
/llms-full.txt | The whole documentation in one Markdown file. |
/raw/docs/<page>.md | Any page as Markdown, e.g. /raw/docs/guide/open-from-code.md. |
A prompt that works
Add nuxt-image-viewer to this Nuxt app (docs: https://kukson777.github.io/nuxt-image-viewer/llms-full.txt).
Use <ZoomImage> for the images in <file>, group them with data-image-viewer-group,
pass the natural width and height of each full image, and match the viewer colours
to our theme with the --image-viewer-* CSS variables.
The cheat sheet
- Mark images:
<ZoomImage src width height caption?>— width/height of the full image. Group withdata-image-viewer-groupon a container. - Options for one gallery: wrap it in
<ImageViewerGroup :options="{ ... }">— anythingopen()takes, buttons and arrows included. - Plain images:
img[data-image-viewer]plus optionaldata-image-viewer-src|width|height|caption. - From code:
useImageViewer().open(items, index?, options?)— auto-imported, client-only, items need onlysrc. - Configure:
nuxt.config→imageViewer(ModuleOptions); per call withImageViewerOpenOptions. - Style:
--image-viewer-*variables;.image-viewer__*BEM classes (unlayered CSS wins);css: falseto start from scratch. - Types:
import type { ImageViewerItem, ImageViewerOpenOptions, ImageViewerApi } from 'nuxt-image-viewer'.