docs: add full-text search (#2735)
### Change Type - [x] `patch` — Bug fix ### Test Plan 1. Make sure search (AI and regular) still works as expected. ### Release Notes - Docs: Add full-text search.
This commit is contained in:
parent
538734782c
commit
b50cda0a6e
7 changed files with 64 additions and 47 deletions
|
@ -1,5 +1,5 @@
|
|||
import { addAuthors } from '@/utils/addAuthors'
|
||||
import { addContentToDb } from '@/utils/addContent'
|
||||
import { addContentToDb, addFTS } from '@/utils/addContent'
|
||||
import { autoLinkDocs } from '@/utils/autoLinkDocs'
|
||||
import { nicelog } from '@/utils/nicelog'
|
||||
import { connect } from './connect'
|
||||
|
@ -23,6 +23,9 @@ export async function refreshContent(opts = {} as { silent: boolean }) {
|
|||
if (!opts.silent) nicelog('◦ Generating / adding API content to db...')
|
||||
await addContentToDb(db, await generateApiContent())
|
||||
|
||||
if (!opts.silent) nicelog('◦ Adding full-text search...')
|
||||
await addFTS(db)
|
||||
|
||||
if (!opts.silent) nicelog('◦ Fixing links to API docs...')
|
||||
await autoLinkDocs(db)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue