Skip to content

Commit 335b95e

Browse files
authored
Update script/content-migrations/update-tocs.js
1 parent c31c0c3 commit 335b95e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

script/content-migrations/update-tocs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const indexFiles = fullDirectoryPaths.map(fullDirectoryPath => walk(fullDirector
3434

3535
indexFiles
3636
.forEach(indexFile => {
37-
const relativePath = indexFile.replace(/^.+content\//, '')
37+
const relativePath = indexFile.replace(/^.+\/content\//, '')
3838
const documentType = getDocumentType(relativePath)
3939

4040
const { data, content } = frontmatter(fs.readFileSync(indexFile, 'utf8'))

0 commit comments

Comments
 (0)