-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add bot to footer
- Loading branch information
Showing
2 changed files
with
104 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: {}, | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} /> | ||
</> | ||
); | ||
} |