Skip to content

Commit

Permalink
add bot to footer
Browse files Browse the repository at this point in the history
add bot to footer
  • Loading branch information
jartuso authored Jul 19, 2024
2 parents 24067e1 + 4516d47 commit ceda874
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 77 deletions.
159 changes: 82 additions & 77 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,99 +1,104 @@
module.exports={
"title": "OpenBCI Documentation",
"tagline": "OpenBCI Docs",
"url": "https://openbci.github.io",
"baseUrl": "/",
"organizationName": "OpenBCI",
"projectName": "Documentation",
"scripts": [
"https://buttons.github.io/buttons.js"
],
"favicon": "img/favicon_large.ico",
"customFields": {
"gaGtag": true
module.exports = {
title: "OpenBCI Documentation",
tagline: "OpenBCI Docs",
url: "https://openbci.github.io",
baseUrl: "/",
organizationName: "OpenBCI",
projectName: "Documentation",
scripts: ["https://buttons.github.io/buttons.js"],
favicon: "img/favicon_large.ico",
customFields: {
gaGtag: true,
},
"onBrokenLinks": "log",
"onBrokenMarkdownLinks": "log",
"trailingSlash": true,
"presets": [
onBrokenLinks: "log",
onBrokenMarkdownLinks: "log",
trailingSlash: true,
presets: [
[
"@docusaurus/preset-classic",
{
"docs": {
"showLastUpdateAuthor": false,
"showLastUpdateTime": true,
"editUrl": "https://github.com/OpenBCI/Documentation/edit/master/website/",
"path": "docs",
"sidebarPath": require.resolve('./sidebars.json'),
"routeBasePath": '/'
docs: {
showLastUpdateAuthor: false,
showLastUpdateTime: true,
editUrl:
"https://github.com/OpenBCI/Documentation/edit/master/website/",
path: "docs",
sidebarPath: require.resolve("./sidebars.json"),
routeBasePath: "/",
},
blog: {
path: "blog",
},
"blog": {
"path": "blog"
theme: {
customCss: [require.resolve("./src/css/customTheme.css")],
},
"theme": {
"customCss": [require.resolve('./src/css/customTheme.css')],
googleTagManager: {
containerId: "GTM-5MNP6L3Q",
},
"googleTagManager": {
"containerId": 'GTM-5MNP6L3Q'
}
}
]
},
],
],
"plugins": [],
"themeConfig": {
"navbar": {
"title": "OpenBCI Documentation",
"logo": {
"src": "img/open-bci-gear.svg"
plugins: [],
themeConfig: {
navbar: {
title: "OpenBCI Documentation",
logo: {
src: "img/open-bci-gear.svg",
},
"items": [
items: [
{
"href": "https://openbci.com",
"label": "Main Site",
"position": "right"
href: "https://openbci.com",
label: "Main Site",
position: "right",
},
{
"href": "https://shop.openbci.com/collections/frontpage",
"label": "Shop",
"position": "right"
href: "https://shop.openbci.com/collections/frontpage",
label: "Shop",
position: "right",
},
{
"href": "https://openbci.com/forum/",
"label": "Forum",
"position": "right"
href: "https://openbci.com/forum/",
label: "Forum",
position: "right",
},
{
"to": "/",
"label": "Documentation",
"position": "right"
to: "/",
label: "Documentation",
position: "right",
},
{
"href": "https://github.com/OpenBCI",
"label": "Github",
"position": "right"
href: "https://github.com/OpenBCI",
label: "Github",
position: "right",
},
{
"to": "/citations",
"label": "Citations",
"position": "right"
}
]
to: "/citations",
label: "Citations",
position: "right",
},
],
},
"image": "https://openbci.github.io/Documentation/img/UC-production-1140x424.jpg",
metadata: [{name: 'thumbnail', content: 'https://docs.openbci.com/img/openbci-logo-web.png'}],
"footer": {
"links": [],
"copyright": "Copyright © 2023 OpenBCI",
"logo": {
"src": "img/open-bci-gear-blue.png"
}
image:
"https://openbci.github.io/Documentation/img/UC-production-1140x424.jpg",
metadata: [
{
name: "thumbnail",
content: "https://docs.openbci.com/img/openbci-logo-web.png",
},
],
footer: {
links: [],
copyright: "Copyright © 2024 OpenBCI",
logo: {
src: "img/open-bci-gear-blue.png",
},
},
"algolia": {
"appId": "BH4D9OD16A",
"apiKey": "19411ba246745c95db0bff87cfed97b0",
"indexName": "openbci",
"placeholder": "Search Docs",
"algoliaOptions": {}
}
}
}
algolia: {
appId: "BH4D9OD16A",
apiKey: "19411ba246745c95db0bff87cfed97b0",
indexName: "openbci",
placeholder: "Search Docs",
algoliaOptions: {},
},
},
};
22 changes: 22 additions & 0 deletions website/src/theme/Footer/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React, { useEffect } from "react";
import Footer from "@theme-original/Footer";

export default function FooterWrapper(props) {
useEffect(() => {
const script = document.createElement("script");
script.id = "ze-snippet";
script.src =
"https://static.zdassets.com/ekr/snippet.js?key=3292009a-b672-4683-8691-2bf2475a3398";
document.body.appendChild(script);

return () => {
document.body.removeChild(script);
};
}, []);

return (
<>
<Footer {...props} />
</>
);
}

0 comments on commit ceda874

Please sign in to comment.