Skip to content

Commit

Permalink
chore(docs): closer mimic docs page with meili query
Browse files Browse the repository at this point in the history
  • Loading branch information
almostSouji committed Jul 27, 2024
1 parent 0fc770f commit 14cd40e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/functions/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ export async function queryDocs(query: string, pack: string, version: string) {
const searchRes = await fetch(searchURL(pack, version), {
method: 'post',
body: JSON.stringify({
limit: 100,
limit: 25,
// eslint-disable-next-line id-length
q: query,
attributesToSearchOn: ['name'],
sort: ['type:asc'],
}),
headers: {
Authorization: `Bearer ${process.env.DJS_DOCS_BEARER!}`,
Expand Down

0 comments on commit 14cd40e

Please sign in to comment.