Skip to content

Commit

Permalink
Activate SimpleAnalytics and remove Fathom (w3f#3580)
Browse files Browse the repository at this point in the history
* Activate SimpleAnalytics and remove Fathom

* Simple analytics on Kusama guide

* remove fathom Kusama guide

* remove fathom kusama guide

* Remove whole former fathom block

Co-authored-by: Philipp D <[email protected]>
  • Loading branch information
DrW3RK and Philipp D authored Jul 28, 2022
1 parent b7b4a03 commit 39f8f46
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 22 deletions.
5 changes: 5 additions & 0 deletions kusama-guide/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ module.exports = {
src: "https://unpkg.com/[email protected]/dist/vanilla-back-to-top.min.js",
onload: "addBackToTop()",
defer: true,
},
{
src: "https://apisa.web3.foundation/latest.js",
async: true,
defer: true,
},
"../js/custom.js",
"../js/clipboard.min.js",
Expand Down
16 changes: 0 additions & 16 deletions kusama-guide/static/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,3 @@
}
};
})("docReady", window);

docReady(function () {
setTimeout(function () {
// Custom logic goes here

// Insert "Improve this wiki ribbon": Done in docusaurus.config.js

// Add fathom to footer
let script = document.createElement("script");
script.setAttribute("src", "https://lion.kusama.network/script.js");
script.setAttribute("site", "PNZSQVUV");
document.querySelector("#footer").appendChild(script);

// Force edit button to go to non-mirror page: Done in docusaurus.config.js
}, 1000);
});
5 changes: 5 additions & 0 deletions polkadot-wiki/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ module.exports = {
src: 'https://unpkg.com/[email protected]/dist/vanilla-back-to-top.min.js',
onload: 'addBackToTop()',
defer: true,
},
{
src: "https://apisa.web3.foundation/latest.js",
async: true,
defer: true,
},
'../js/custom.js',
'../js/clipboard.min.js',
Expand Down
6 changes: 0 additions & 6 deletions polkadot-wiki/static/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,5 @@ docReady(() =>

AOS.init();

// Add fathom to footer

let script = document.createElement("script");
script.setAttribute("src", "https://mammal.polkadot.network/script.js");
script.setAttribute("site", "YOUKYIQA");
document.querySelector("body footer").appendChild(script);
}, 500)
);

0 comments on commit 39f8f46

Please sign in to comment.