Skip to content

Commit

Permalink
lint and no cache
Browse files Browse the repository at this point in the history
  • Loading branch information
kalepail committed Aug 30, 2022
1 parent 9992351 commit 53ed895
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ TAG ?= stellar/stellar-docs:$(LABEL)
BUILD_DATE := $(shell date -u +%FT%TZ)

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

docker-push:
$(SUDO) docker push $(TAG)
38 changes: 18 additions & 20 deletions src/analytics-module.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
module.exports = function (context, options) {
return {
name: 'analytics-module',
module.exports = () => ({
name: 'analytics-module',

injectHtmlTags({content}) {
return {
preBodyTags: [
{
tagName: 'script',
innerHTML: `
if (typeof window.ga === "function") {
window.ga("require", "linker");
window.ga("linker:autolink", ["www.stellar.org", "stellar.org"]);
}
`,
},
],
};
},
};
};
injectHtmlTags() {
return {
preBodyTags: [
{
tagName: 'script',
innerHTML: `
if (typeof window.ga === "function") {
window.ga("require", "linker");
window.ga("linker:autolink", ["www.stellar.org", "stellar.org"]);
}
`,
},
],
};
},
});

0 comments on commit 53ed895

Please sign in to comment.