Skip to content

Commit

Permalink
chore: fix docs search generation for 8.x release
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Nov 15, 2023
1 parent 7f935cf commit fd40799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generateSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async function run() {
await Content.deleteMany({ version });
let count = 0;
for (const content of contents) {
if (version === '7.x') {
if (version === '8.x') {
let url = content.url.startsWith('/') ? content.url : `/${content.url}`;
if (!url.startsWith('/docs')) {
url = '/docs' + url;
Expand Down

0 comments on commit fd40799

Please sign in to comment.