Files
supabase/apps/docs/internals/markdown-sources.test.ts
Kody Jackson 051d5f79da chore(docs) - remove troubleshooting guides and rendering logic (#52339)
## Problem

Dupe content and workflows when this content now all lives in the KB.

## Solution

Removes various artifacts from the docs repo (content files, github
workflows, etc.) from the docs app.

These paths have already been redirected to /kb in #52095 and we haven't
seen any meaningful 404 traffic indicating the redirects were done
incorrectly.

## Preview links

TBD
2026-10-27 12:32:33 -05:00

14 lines
442 B
TypeScript

import { describe, expect, it } from 'vitest'
import { guideSlug } from './markdown-sources'
describe('guideSlug', () => {
it('strips the content/guides prefix and .mdx extension, keeping nested path', () => {
expect(guideSlug('content/guides/ai/vector-columns.mdx')).toBe('ai/vector-columns')
})
it('handles a top-level guide', () => {
expect(guideSlug('content/guides/getting-started.mdx')).toBe('getting-started')
})
})