Skip to content

Commit f6c0a5c

Browse files
committed
refactor(crawler): nest selectors under default key for better organization
1 parent ff38879 commit f6c0a5c

1 file changed

Lines changed: 16 additions & 14 deletions

File tree

docs/crawlerConfig.json

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,22 @@
44
"rateLimit": 8,
55
"maxDepth": 10,
66
"selectors": {
7-
"lvl0": {
8-
"selector": "",
9-
"defaultValue": "Documentation"
10-
},
11-
"lvl1": ".content h1",
12-
"lvl2": ".content h2",
13-
"lvl3": ".content h3",
14-
"lvl4": ".content h4",
15-
"lvl5": ".content h5",
16-
"content": ".content p, .content li",
17-
"lang": {
18-
"selector": "/html/@lang",
19-
"type": "xpath",
20-
"global": true
7+
"default": {
8+
"lvl0": {
9+
"selector": "",
10+
"defaultValue": "Documentation"
11+
},
12+
"lvl1": ".content h1",
13+
"lvl2": ".content h2",
14+
"lvl3": ".content h3",
15+
"lvl4": ".content h4",
16+
"lvl5": ".content h5",
17+
"content": ".content p, .content li",
18+
"lang": {
19+
"selector": "/html/@lang",
20+
"type": "xpath",
21+
"global": true
22+
}
2123
}
2224
},
2325
"selectors_exclude": ["aside", ".page-footer", ".next-and-prev-link", ".table-of-contents"],

0 commit comments

Comments
 (0)