@signalwire/docusaurus-plugin-llms-txt
Version:
Generate Markdown versions of Docusaurus HTML pages and an llms.txt index file
26 lines • 1.08 kB
TypeScript
/**
* Route filtering and validation
* Handles route discovery and filtering logic
*/
import type { PluginRouteConfig } from '@docusaurus/types';
import type { PluginOptions, Logger } from '../types';
/**
* Validate routes and return filtering summary for info logging
* @internal
*/
export declare function validateAndLogRouteFiltering(routes: PluginRouteConfig[], options: PluginOptions, isExcluded: (_path: string) => boolean, logger: Logger): {
validRoutes: PluginRouteConfig[];
summary: string;
};
/**
* Validate that a route should be processed (combines all validation checks)
* @internal
*/
export declare function validateRouteForProcessing(route: PluginRouteConfig, options: PluginOptions, isExcluded: (_path: string) => boolean, logger: Logger): boolean;
/**
* Convert a route path to its corresponding HTML file path
* Handles index routes and standard route-to-file mapping
* @internal
*/
export declare function routePathToHtmlPath(routePath: string, baseUrl?: string, trailingSlash?: boolean): string;
//# sourceMappingURL=route-filter.d.ts.map