Skip to content

Commit

Permalink
docs: Exclude language docs from crawler (#2633)
Browse files Browse the repository at this point in the history
I've already applied this change to the production crawler. We'll remove
this exclusion as part of
#1642

## Checklist

- [-] I have added
[tests](https://www.cursorless.org/docs/contributing/test-case-recorder/)
- [-] I have updated the
[docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and
[cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet)
- [-] I have not broken the cheatsheet
  • Loading branch information
pokey authored Aug 4, 2024
1 parent 3199af6 commit a60b397
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ new Crawler({
actions: [
{
indexName: "cursorless",
pathsToMatch: ["https://www.cursorless.org/docs/**"],
pathsToMatch: [
"https://www.cursorless.org/docs/**",
"!https://www.cursorless.org/docs/user/languages/**",
],
recordExtractor: ({ $, helpers }) => {
// priority order: deepest active sub list header -> navbar active item -> 'Documentation'
const lvl0 =
Expand Down

0 comments on commit a60b397

Please sign in to comment.