Skip to content

Commit

Permalink
chore: quick fix for 7.x docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Nov 15, 2023
1 parent fd40799 commit 8fb5ece
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/generateSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,11 @@ async function run() {
}
content.url = url;
} else {
const url = content.url.startsWith('/') ? content.url : `/${content.url}`;
content.url = `/docs/${version}/docs${url}`;
let url = content.url.startsWith('/') ? content.url : `/${content.url}`;
if (!url.startsWith('/docs')) {
url = '/docs' + url;
}
content.url = `/docs/${version}${url}`;
}
console.log(`${++count} / ${contents.length}`);
await content.save();
Expand Down

0 comments on commit 8fb5ece

Please # to comment.