@mastra/docusaurus-plugin-common
v1.1.3
Published
Common plugins that every Mastra docs site needs
Keywords
Readme
@mastra/docusaurus-plugin-common
A collection of Docusaurus plugins for Mastra's projects. They are commonly used across Mastra's documentation sites. This package contains:
/tailwind: A plugin to add@tailwindcss/postcssto Docusaurus/llms-txt: A plugin to generate, for each document, a per-page<route>/llms.txtand a sibling<page>.md(so every page is reachable as markdown), plus a rootllms.txtindex that links to those.mdfiles for the entire site.
For a document mounted at /, the page exports are /index.md and /index/llms.txt, with identical content. /llms.txt remains the separate site-wide discovery index, not the root document's content. Non-root documents keep their existing paths, such as /docs.md and /docs/llms.txt.
Installation
npm install @mastra/docusaurus-plugin-commonAlso install the required peer dependencies:
npm install @tailwindcss/postcss tailwindcssUsage
import type { Config } from '@docusaurus/types'
const config: Config = {
plugins: [
'@mastra/docusaurus-plugin-common/tailwind',
'@mastra/docusaurus-plugin-common/llms-txt',
],
}
export default config