-
Notifications
You must be signed in to change notification settings - Fork 46
/
extracts-load.js
45 lines (38 loc) · 1004 Bytes
/
extracts-load.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* This file should be loaded after all other extracts*.js files.
*/
Extracts.config = {
/* Selector for containers within which targets may be found.
*/
contentContainersSelector: [
".markdownBody",
"#TOC",
"#page-metadata",
"#sidebar"
].join(", "),
/* Selector for containers within which targets may not be found.
*/
excludedContainerElementsSelector: "h1, h2, h3, h4, h5, h6",
/* Selector for targets.
*/
targetElementsSelector: "a[href]",
/* Elements that shouldn’t be targets.
*/
excludedElementsSelector: [
".section-self-link",
".footnote-self-link",
".sidenote-self-link",
"[aria-hidden='true']",
"[href$='#top']",
".extract-not"
].join(", "),
/* Don’t display indicator hooks on links in these containers.
*/
hooklessLinksContainersSelector: [
"body.page-index #markdownBody",
"#sidebar",
".TOC",
"#floating-header"
].join(", ")
};
GW.notificationCenter.fireEvent("Extracts.didLoad");
Extracts.setup();