Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehesp committed Jan 25, 2024
1 parent 0afac7b commit f83c323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/mdx/search.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function Search(nextConfig = {}) {

let files = glob.sync('**/*.mdx', { cwd: appDir })
let data = files.map((file) => {
let url = '/' + file.replace(/(^|\/)page\.mdx$/, '')
let url = '/' + file.replace(/(^|\/)page\.mdx$/, '').replace('(docs)/', '')
let mdx = fs.readFileSync(path.join(appDir, file), 'utf8')

let sections = []
Expand Down

0 comments on commit f83c323

Please sign in to comment.