Skip to content

Commit

Permalink
feat: add default documentation search
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Hivert <[email protected]>
  • Loading branch information
ghivert committed May 18, 2024
1 parent 19a610d commit 02b5b15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/backend/src/backend/router.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ fn isolate_filters(query: String) -> #(String, List(String)) {
|> pair.map_first(string.join(_, " "))
|> pair.map_second(fn(filters) {
let no_filters = list.is_empty(filters)
use <- bool.guard(when: no_filters, return: ["in:signature", "in:name"])
use <- bool.guard(when: no_filters, return: [
"in:signature", "in:name", "in:documentation",
])
filters
})
}
Expand Down

0 comments on commit 02b5b15

Please sign in to comment.