Browse Source

lunr search fix from https://github.com/praveenn77/docusaurus-lunr-search/pull/91

windhamdavid 2 years ago
parent
commit
fc0ba15d1f
1 changed files with 9 additions and 1 deletions
  1. 9 1
      src/pages/help.md

+ 9 - 1
src/pages/help.md

@@ -58,7 +58,7 @@ react                              17.0.2  17.0.2  18.2.0  node_modules/react
 react-dom                          17.0.2  17.0.2  18.2.0  node_modules/react-dom                   daw_til
 ```
 
-- colorMode.switchConfig is deprecated #[6771](https://github.com/facebook/docusaurus/pull/6771)
+- colorMode.switchConfig is deprecated #[6771](https://github.com/facebook/docusaurus/pull/6771) rm'd -
 
 ```js
       switchConfig: {
@@ -72,6 +72,14 @@ react-dom                          17.0.2  17.0.2  18.2.0  node_modules/react-do
         },
       },
 ```
+
+- lunr-search broken  ( see: https://github.com/praveenn77/docusaurus-lunr-search/pull/91 ) made the following change in the plugin to fix 
+
+```
+src/theme/SearchBar/lunar-search.js
+29  - url: this.baseUrl !== '/' || doc.url.charAt(0) !== '/' ? this.baseUrl + doc.url : doc.url,
+    + url: doc.url,
+```
 #### 12/04/2021
 
 - added in [Notes](/notes) for non-technical docs