From 2d4a6997900dcd2973c531c7a0f08043ee7f94e1 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Wed, 8 Sep 2021 07:18:23 -0400 Subject: [PATCH] no backslashes --- scripts/make-search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/make-search.js b/scripts/make-search.js index aee1adb1c..51ba2d98b 100644 --- a/scripts/make-search.js +++ b/scripts/make-search.js @@ -36,7 +36,7 @@ console.log('Generating search index for documentation'); this.field('c'); // content files.map((file, index) => { - const relativePath = path.relative('./docs', file); + const relativePath = path.relative('./docs', file).replace(/\\/g, '/'); const url = relativePath.replace(/\.md$/, ''); const filename = path.basename(file);