Skip to content

Commit 53ed895

Browse files
committed
lint and no cache
1 parent 9992351 commit 53ed895

File tree

2 files changed

+19
-21
lines changed

2 files changed

+19
-21
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ TAG ?= stellar/stellar-docs:$(LABEL)
99
BUILD_DATE := $(shell date -u +%FT%TZ)
1010

1111
docker-build:
12-
$(SUDO) docker build --pull --label org.opencontainers.image.created="$(BUILD_DATE)" -t $(TAG) .
12+
$(SUDO) docker build --no-cache --pull --label org.opencontainers.image.created="$(BUILD_DATE)" -t $(TAG) .
1313

1414
docker-push:
1515
$(SUDO) docker push $(TAG)

src/analytics-module.js

+18-20
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
1-
module.exports = function (context, options) {
2-
return {
3-
name: 'analytics-module',
1+
module.exports = () => ({
2+
name: 'analytics-module',
43

5-
injectHtmlTags({content}) {
6-
return {
7-
preBodyTags: [
8-
{
9-
tagName: 'script',
10-
innerHTML: `
11-
if (typeof window.ga === "function") {
12-
window.ga("require", "linker");
13-
window.ga("linker:autolink", ["www.stellar.org", "stellar.org"]);
14-
}
15-
`,
16-
},
17-
],
18-
};
19-
},
20-
};
21-
};
4+
injectHtmlTags() {
5+
return {
6+
preBodyTags: [
7+
{
8+
tagName: 'script',
9+
innerHTML: `
10+
if (typeof window.ga === "function") {
11+
window.ga("require", "linker");
12+
window.ga("linker:autolink", ["www.stellar.org", "stellar.org"]);
13+
}
14+
`,
15+
},
16+
],
17+
};
18+
},
19+
});

0 commit comments

Comments
 (0)