Docusaurus
Steps to install snippet on a Docusaurus site
- Copy the JS snippet from Data Collection under settings into a JS file in your repo. Example:
<repo_home>
/static/js/syft.js - Modify docusaurus.config.js and include the above file in scripts field.
docusaurus.config.js
const config = {
title: "Your App Name",
// other properties..
scripts: [
// other scripts..
{
src: "/js/syft.js",
async: false,
},
],
// other properties..
};