Skip to content

Commit

Permalink
Merge pull request #1365 from Datawheel/feature-add-lunr
Browse files Browse the repository at this point in the history
Feature add lunr
  • Loading branch information
palamago authored May 20, 2022
2 parents 9c82fce + bcdf157 commit 359e915
Show file tree
Hide file tree
Showing 5 changed files with 274 additions and 172 deletions.
1 change: 1 addition & 0 deletions packages/cms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ A Canon site often takes the form of DataCountry.io, and is made of **Profiles**
| `CANON_CMS_REQUESTS_PER_SECOND` | Sets the `requestsPerSecond` value in the [promise-throttle](https://www.npmjs.com/package/promise-throttle) library, used for rate-limiting Generator requests | 20 |
| `CANON_CMS_GENERATOR_TIMEOUT` | The number of ms after which a generator request times out, defaults to 5s. Increase this if you are making heavy requests that exceed 5s | 5000 |
| `CANON_CMS_DEEPSEARCH_API` | Server location of Deepsearch API | `undefined` |
| `CANON_CMS_LUNR` | Enable Basic LUNR search | `undefined` |
| `CANON_CMS_HTACCESS_USER` | Authentication user for PDF generation on .htaccess protected pages | `undefined` |
| `CANON_CMS_HTACCESS_PW` | Authentication password for PDF generation on .htaccess protected pages | `undefined` |
| `CANON_CMS_PDF_DISABLE` | Disable the PDF generation endpoint | `undefined` |
Expand Down
2 changes: 2 additions & 0 deletions packages/cms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@
"jsonwebtoken": "^8.5.1",
"jszip": "^3.2.2",
"localforage": "^1.7.2",
"lunr": "^2.3.9",
"lunr-languages": "^1.9.0",
"multer": "^1.4.2",
"node-yaml": "^3.1.1",
"promise-throttle": "^1.0.0",
Expand Down
Loading

0 comments on commit 359e915

Please sign in to comment.