docs.lumeweb.com/docusaurus.config.js

115 lines
3.0 KiB
JavaScript
Raw Permalink Normal View History

2023-09-06 11:34:22 +00:00
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require("prism-react-renderer/themes/github");
const darkCodeTheme = require("prism-react-renderer/themes/dracula");
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "Lume Web Docs",
tagline: "Freedom. Privacy. Ownership",
favicon: "img/favicon.ico",
// Set the production url of your site here
url: "https://docs.lumeweb.com",
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
i18n: {
defaultLocale: "en",
locales: ["en"],
},
presets: [
[
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
routeBasePath: "/",
sidebarPath: require.resolve("./sidebars.js"),
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
"https://git.lumeweb.com/LumeWeb/docs.lumeweb.com/src/branch/master/",
},
blog: false,
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// Replace with your project's social card
navbar: {
title: "Lume Web",
logo: {
alt: "Lume Web",
src: "img/logo.svg",
srcDark: "img/logo_dark.svg",
},
},
footer: {
style: "dark",
links: [
{
title: "Docs",
items: [
{
2023-09-06 12:18:39 +00:00
label: "Start",
to: "/",
2023-09-06 11:34:22 +00:00
},
],
},
{
title: "Community",
items: [
{
label: "Lume Web",
href: "https://lumeweb.com",
},
{
label: "Discord",
href: "https://discord.gg/qpC8ADp3rS",
},
{
label: "Twitter",
href: "https://twitter.com/lumeweb3",
},
{
label: "GitHub",
2023-11-01 07:27:27 +00:00
href: "https://github.com/LumeWeb",
},
{
label: "Git",
href: "https://git.lumeweb.com",
2023-09-06 11:34:22 +00:00
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Hammer Technologies LLC. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
2023-09-30 05:36:19 +00:00
matomo: {
2023-09-30 05:44:09 +00:00
matomoUrl: "https://piwiki.lumeweb.com/",
2023-09-30 05:36:19 +00:00
siteId: "3",
phpLoader: "matomo.php",
jsLoader: "matomo.js",
},
2023-09-06 11:34:22 +00:00
}),
2023-09-30 05:36:19 +00:00
plugins: ["docusaurus-plugin-matomo"],
2023-09-06 11:34:22 +00:00
};
module.exports = config;