Skip to main content

Function: isRoutableDocusaurusSitePageFilePath()

isRoutableDocusaurusSitePageFilePath(filePath: string): boolean

Defined in: _internal/docusaurus-config-ast.ts:266

Determine whether a filename is a routable Docusaurus site page module.

Parametersโ€‹

filePathโ€‹

string

Returnsโ€‹

boolean

Remarksโ€‹

Docusaurus ignores files prefixed with _, common test-file patterns, and __tests__ folders under src/pages by default. This helper follows those same default routing exclusions when narrowing page modules for rules.