diff --git a/scripts/migrate-documents.js b/scripts/migrate-documents.js index b22d7ea7..714b1268 100755 --- a/scripts/migrate-documents.js +++ b/scripts/migrate-documents.js @@ -140,8 +140,8 @@ async function processMarkdownFile(filePath, sourcePath) { // Extract table of contents const tableOfContents = extractTOC(content); - // Generate slug from title - const slug = generateSlug(metadata.title); + // Use slug from frontmatter if present, otherwise generate from title + const slug = metadata.slug || generateSlug(metadata.title); // Determine if document should be public // Internal document patterns (should NOT be public)