Skip to content

Commit d2f412a

Browse files
louis-preclaude
andcommitted
chore: Remove unused .md extension fallback from redirect validator
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 760dc8f commit d2f412a

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

codegen/validate-redirects.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ const redirects: Redirect[] = Object.entries(gitbookConfig.redirects ?? {}).map(
2020

2121
function pageExists(fullPath: string): boolean {
2222
if (existsSync(fullPath) && statSync(fullPath).isFile()) return true
23-
if (!fullPath.endsWith('.md') && existsSync(fullPath + '.md')) return true
2423
if (fullPath.endsWith('/README.md')) {
2524
const parentPath = fullPath.slice(0, -'/README.md'.length)
2625
if (existsSync(parentPath + '.md')) return true

0 commit comments

Comments
 (0)