]> BookStack Code Mirror - website/blob - search/config.json
Started playing with webidx based search
[website] / search / config.json
1 {
2     "index_uid": "docs",
3     "allowed_domains": ["bookstackapp.com"],
4     "start_urls": [
5         {
6             "url": "https://www.bookstackapp.com/docs/",
7             "page_rank": 5,
8             "selectors_key": "docs"
9         },
10         {
11             "url": "https://www.bookstackapp.com/blog/",
12             "page_rank": 1,
13             "selectors_key": "blog"
14         },
15         {
16             "url": "https://www.bookstackapp.com/about/",
17             "page_rank": 1,
18             "selectors_key": "default"
19         },
20         {
21             "url": "https://www.bookstackapp.com/support/",
22             "page_rank": 1,
23             "selectors_key": "default"
24         },
25         {
26             "url": "https://www.bookstackapp.com/donate/",
27             "page_rank": 1,
28             "selectors_key": "default"
29         },
30         {
31             "url": "https://www.bookstackapp.com/",
32             "page_rank": 1,
33             "selectors_key": "home"
34         }
35     ],
36     "sitemap_urls": [
37         "https://www.bookstackapp.com/sitemap.xml"
38     ],
39     "stop_urls": [
40         "https://www.bookstackapp.com/categories/",
41         "https://www.bookstackapp.com/tags/",
42         "https://www.bookstackapp.com/blog/page/"
43     ],
44     "selectors": {
45         "default": {
46             "lvl0": "#content h1",
47             "lvl1": "#content h2",
48             "lvl2": "#content h3",
49             "lvl3": "#content h4",
50             "lvl4": "#content h5",
51             "text": "#content p, #content ul, #content ol, #content blockquote, #content pre, #content table"
52         },
53         "home": {
54             "lvl0": {
55                 "selector": "#nothing",
56                 "global": true,
57                 "default_value": "Homepage"
58             },
59             "lvl1": {
60                 "selector": ".homepage  h2"
61             },
62             "lvl2": ".homepage h3",
63             "lvl3": ".homepage h4",
64             "lvl4": ".homepage h5",
65             "text": ".homepage p"
66         },
67         "docs": {
68             "lvl0": {
69                 "selector": ".docs-section-title",
70                 "global": true,
71                 "default_value": "Documentation"
72             },
73             "lvl1": {
74                 "selector": "main h1",
75                 "global": true,
76                 "default_value": "Topic"
77             },
78             "lvl2": "main h2",
79             "lvl3": "main h3",
80             "lvl4": "main h4",
81             "text": "main > *"
82         },
83         "blog": {
84             "lvl0": {
85                 "selector": "#nothing",
86                 "global": true,
87                 "default_value": "On Our Blog"
88             },
89             "lvl1": {
90                 "selector": "main h1",
91                 "global": true,
92                 "default_value": "Topic"
93             },
94             "lvl2": "main h3",
95             "lvl3": "main h4",
96             "lvl4": "main h5",
97             "text": "main > p, main > ul, main > ol, main > blockquote, main > pre, main > table"
98         }
99     },
100     "selectors_exclude": [
101         "footer > .container",
102         ".edit-link",
103         ".icon",
104         ".lnt"
105     ]
106 }