sintonia/website/docusaurus.config.js

124 lines
2.9 KiB
JavaScript

// @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: "Libretime",
tagline: "Broadcast without limits",
url: "https://libretime.org",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "throw",
favicon: "img/favicon.ico",
organizationName: "libretime",
projectName: "libretime",
trailingSlash: true,
plugins: [
[
require.resolve("@cmfcmf/docusaurus-search-local"),
{
indexBlog: false,
indexPages: false,
},
],
],
i18n: {
defaultLocale: "en",
locales: ["en"],
},
presets: [
[
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
path: "../docs",
sidebarPath: require.resolve("./sidebars.js"),
editUrl: "https://github.com/libretime/libretime",
},
blog: false,
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: "Libretime",
logo: {
alt: "Libretime tower",
src: "img/logo.svg",
},
items: [
{
type: "doc",
docId: "intro",
position: "left",
label: "Docs",
},
{ to: "/contribute", label: "Contribute", position: "left" },
{ type: "localeDropdown", position: "right" },
{
href: "https://github.com/libretime/libretime",
label: "GitHub",
position: "right",
},
],
},
footer: {
style: "dark",
links: [
{
title: "Docs",
items: [
{
label: "Install",
to: "/docs/intro",
},
],
},
{
title: "Community",
items: [
{
label: "Discourse",
href: "https://discourse.libretime.org",
},
{
label: "Mattermost",
href: "https://chat.libretime.org",
},
],
},
{
title: "More",
items: [
{
label: "GitHub",
href: "https://github.com/libretime/libretime",
},
],
},
],
copyright: `Code licensed under AGPLv3; docs licensed under GPLv2.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ["apacheconf", "ini"],
},
}),
};
module.exports = config;