We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd40799 commit 8fb5eceCopy full SHA for 8fb5ece
scripts/generateSearch.js
@@ -141,8 +141,11 @@ async function run() {
141
}
142
content.url = url;
143
} else {
144
- const url = content.url.startsWith('/') ? content.url : `/${content.url}`;
145
- content.url = `/docs/${version}/docs${url}`;
+ let url = content.url.startsWith('/') ? content.url : `/${content.url}`;
+ if (!url.startsWith('/docs')) {
146
+ url = '/docs' + url;
147
+ }
148
+ content.url = `/docs/${version}${url}`;
149
150
console.log(`${++count} / ${contents.length}`);
151
await content.save();
0 commit comments