diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-02 21:48:02 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-02 21:48:02 +0300 |
| commit | b751d102f158968aab681cb663d27b4c32197f62 (patch) | |
| tree | 85d03609314559df7705c2cb0ab4e37ab6d9715f /website/src/content.config.ts | |
| parent | 295b09ca25edbccac65401ee84fa420dd3888aad (diff) | |
feat: add preview update channel
Diffstat (limited to 'website/src/content.config.ts')
| -rw-r--r-- | website/src/content.config.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/website/src/content.config.ts b/website/src/content.config.ts index c9a9b8fd..834d37cf 100644 --- a/website/src/content.config.ts +++ b/website/src/content.config.ts @@ -5,7 +5,8 @@ import { docsSchema } from '@astrojs/starlight/schema'; function docsPath({ entry }: { entry: string }) { const slug = entry.replace(/\.(md|mdx|markdown|mdown|mkdn|mkd|mdwn)$/i, ''); - return slug === 'index' ? 'docs' : `docs/${slug}`; + const normalized = slug.replace(/\/index$/, ''); + return normalized === 'index' ? 'docs' : `docs/${normalized}`; } export const collections = { |
