UNPKG

@signalwire/docusaurus-plugin-llms-txt

Version:

Generate Markdown versions of Docusaurus HTML pages and an llms.txt index file

19 lines 876 B
import type { Root } from 'hast'; import type { Plugin } from 'unified'; import type { RehypeLinksOptions } from '../../types'; /** * Rehype plugin that transforms internal links based on plugin configuration. * * This plugin automatically determines when to run: * - If relativePaths=true AND enableMarkdownFiles=false → plugin disabled * - If relativePaths=false → prepend baseUrl to internal links * - If enableMarkdownFiles=true → append .md to internal links * - If relativePaths=false AND enableMarkdownFiles=true → do both * * Special handling for excluded links: * - If relativePaths=false → excluded links get baseUrl but NO .md extension * - If relativePaths=true → excluded links are left unchanged */ declare const rehypeLinks: Plugin<[RehypeLinksOptions], Root, Root>; export default rehypeLinks; //# sourceMappingURL=rehype-links.d.ts.map