data.home-assistant/docusaurus.config.js

82 lines
2.1 KiB
JavaScript

module.exports = {
title: "Home Assistant Data Science Portal",
tagline: "The one stop shop to explore the data of your home",
url: "https://data.home-assistant.io",
baseUrl: "/",
favicon: "img/brand/favicon.png",
organizationName: "home-assistant", // Usually your GitHub org/user name.
projectName: "data.home-assistant", // Usually your repo name.
themeConfig: {
navbar: {
title: "Data Science",
logo: {
alt: "Home Assistant",
src: "img/brand/logo.svg",
srcDark: "img/brand/logo.svg",
},
items: [
{ to: "/docs/data", label: "Docs", position: "left" },
{ to: "/docs/quick-start", label: "Quick Start", position: "left" },
// { to: "/blog", label: "Blog", position: "left" },
],
},
footer: {
logo: {
alt: "Home Assistant",
src: "img/brand/logo-white.svg",
height: "30px",
href: "https://www.home-assistant.io",
},
style: "dark",
links: [
{
title: "Social",
items: [
// {
// label: "Blog",
// to: "blog",
// },
{
label: "GitHub",
href: "https://github.com/home-assistant/data.home-assistant",
},
{
label: "Twitter",
href: "https://twitter.com/hass_devs",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Home Assistant. Built with Docusaurus.`,
},
image: "img/default-social.png",
},
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
sidebarPath: require.resolve("./sidebars.js"),
editUrl:
"https://github.com/home-assistant/data.home-assistant/edit/master/",
},
blog: false,
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
plugins: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
hashed: true,
indexDocs: true,
indexBlog: true,
highlightSearchTermsOnTargetPage: true,
},
],
],
};