Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

sync-search-indices.js 527 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  1. #!/usr/bin/env node
  2. // [start-readme]
  3. //
  4. // This script is run automatically via GitHub Actions on every push to `main` to generate searchable data.
  5. // It can also be run manually. For more info see [contributing/search.md](contributing/search.md)
  6. //
  7. // [end-readme]
  8. require('make-promises-safe')
  9. main()
  10. async function main () {
  11. const sync = require('../lib/search/sync')
  12. const opts = {
  13. dryRun: 'DRY_RUN' in process.env,
  14. language: process.env.LANGUAGE,
  15. version: process.env.VERSION
  16. }
  17. await sync(opts)
  18. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...