Skip to content
✨ Publier v1 is live — a polished docs platform built for the open web.
On this page

DocsShellOptions

The interface publier.shell.integration.DocsShellOptions.

Overview

interface DocsShellOptions

Properties

autolinkHeadings

autolinkHeadings?: boolean

Wire rehype-autolink-headings. Default: true.

externalLinks?: boolean

Wire rehype-external-links — adds target="_blank" + rel="noopener noreferrer" to outbound http(s) links. Default: true.

math

math?: boolean

Enable math via remark-math + rehype-katex + katex.min.css. Default: true.

mermaid

mermaid?: boolean

Enable astro-mermaid. Default: auto-detected.

prefetch

prefetch?: boolean

Apply Publier’s prefetch defaults. Default: true.

routes

routes?: false | { blog?: boolean; changelog?: boolean; deprecations?: boolean; docs?: boolean; notFound?: boolean; rss?: boolean }

Default-route injection. Default: all enabled — but routes whose matching src/content/<name>/ directory is absent are skipped.

rss controls the /blog/rss.xml + /changelog/rss.xml feed routes; they’re only injected when publier.config.yaml#site.url is set (@astrojs/rss requires context.site to emit absolute URLs).

search

search?: false | "pagefind"

Site-wide search backend. Default: 'pagefind'.

Set to false to skip injecting the search-button and search-dialog client scripts from the page bundle. The shell does NOT register astro-pagefind itself — register it explicitly in integrations: [docsShell(), …, pagefind()] to enable Pagefind-driven search.

snippets

snippets?: false | { directory?: string }

Enable <Snippet file="..." /> resolution.