mirror of
https://github.com/supabase/supabase.git
synced 2026-12-03 23:18:57 +00:00
## 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
14 lines
442 B
TypeScript
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')
|
|
})
|
|
})
|