Commit d39543e
tools,doc: add Google Analytics tracking.
Adds Google Analytics tracking script to all doc pages when
`DOCS_ANALYTICS` is set when running `make`:
```bash
$ DOCS_ANALYTICS=<GOOGLE ANALYTICS ID> make
```
By default (when `DOCS_ANALYTICS` is not set), no tracking scripts are
included.
It respects "Do Not Track" settings end users might have in their
browser.
Also changes make target `doc-upload` from depending on the
`$(TARBALL)` target, to only depend on `doc` directly.
PR-URL: #6601
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>1 parent 7dff6aa commit d39543eCopy full SHA for d39543e
File tree
Expand file treeCollapse file tree
6 files changed
+109
-6
lines changedOpen diff view settings
Filter options
- doc
- api_assets
- test/doctool
- tools/doc
Expand file treeCollapse file tree
6 files changed
+109
-6
lines changedOpen diff view settings
Collapse file
+8-2Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
300 | 300 | |
301 | 301 | |
302 | 302 | |
| 303 | + |
| 304 | + |
| 305 | + |
| 306 | + |
| 307 | + |
303 | 308 | |
304 | 309 | |
305 | 310 | |
| ||
333 | 338 | |
334 | 339 | |
335 | 340 | |
336 | | - |
| 341 | + |
| 342 | + |
337 | 343 | |
338 | 344 | |
339 | 345 | |
| ||
587 | 593 | |
588 | 594 | |
589 | 595 | |
590 | | - |
| 596 | + |
591 | 597 | |
592 | 598 | |
593 | 599 | |
|
Collapse file
doc/api_assets/dnt_helper.js
Copy file name to clipboard+49Lines changed: 49 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 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 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
45 | 45 | |
46 | 46 | |
47 | 47 | |
| 48 | + |
48 | 49 | |
49 | 50 | |
Collapse file
test/doctool/test-doctool-html.js
Copy file name to clipboardExpand all lines: test/doctool/test-doctool-html.js+18Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
72 | 72 | |
73 | 73 | |
74 | 74 | |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
75 | 81 | |
76 | 82 | |
77 | 83 | |
78 | 84 | |
79 | 85 | |
| 86 | + |
80 | 87 | |
81 | 88 | |
82 | 89 | |
| ||
89 | 96 | |
90 | 97 | |
91 | 98 | |
| 99 | + |
92 | 100 | |
93 | 101 | |
94 | 102 | |
| ||
97 | 105 | |
98 | 106 | |
99 | 107 | |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | + |
100 | 118 | |
101 | 119 | |
102 | 120 | |
|
Collapse file
+8-4Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
11 | 11 | |
12 | 12 | |
13 | 13 | |
| 14 | + |
14 | 15 | |
15 | 16 | |
16 | | - |
| 17 | + |
17 | 18 | |
18 | | - |
| 19 | + |
19 | 20 | |
20 | | - |
| 21 | + |
21 | 22 | |
22 | | - |
| 23 | + |
23 | 24 | |
| 25 | + |
| 26 | + |
24 | 27 | |
25 | 28 | |
26 | 29 | |
| ||
54 | 57 | |
55 | 58 | |
56 | 59 | |
| 60 | + |
57 | 61 | |
58 | 62 | |
59 | 63 | |
|
Collapse file
+25Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
67 | 67 | |
68 | 68 | |
69 | 69 | |
| 70 | + |
70 | 71 | |
71 | 72 | |
72 | 73 | |
| ||
128 | 129 | |
129 | 130 | |
130 | 131 | |
| 132 | + |
| 133 | + |
| 134 | + |
| 135 | + |
| 136 | + |
| 137 | + |
| 138 | + |
131 | 139 | |
132 | 140 | |
133 | 141 | |
| ||
137 | 145 | |
138 | 146 | |
139 | 147 | |
| 148 | + |
| 149 | + |
| 150 | + |
| 151 | + |
| 152 | + |
| 153 | + |
| 154 | + |
| 155 | + |
| 156 | + |
| 157 | + |
| 158 | + |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | + |
| 163 | + |
| 164 | + |
140 | 165 | |
141 | 166 | |
142 | 167 | |
|
0 commit comments