import { themes as prismThemes } from "prism-react-renderer"; import type { Config } from "@docusaurus/types"; import type * as Preset from "@docusaurus/preset-classic"; const config: Config = { title: "OSUI", tagline: "Style your terminal, The creative way", favicon: "img/favicon.ico", url: "https://osui.netlify.app", baseUrl: "/", organizationName: "osui-rs", projectName: "osui", onBrokenLinks: "throw", onBrokenMarkdownLinks: "warn", i18n: { defaultLocale: "en", locales: ["en"], }, plugins: [require.resolve("docusaurus-lunr-search")], presets: [ [ "classic", { docs: { sidebarPath: "./sidebars.json", editUrl: "https://github.com/osui-rs/docs/tree/master/", }, blog: { showReadingTime: true, feedOptions: { type: ["rss", "atom"], xslt: true, }, editUrl: "https://github.com/osui-rs/docs/", onInlineTags: "warn", onInlineAuthors: "warn", onUntruncatedBlogPosts: "warn", }, theme: { customCss: "./src/css/custom.css", }, } satisfies Preset.Options, ], ], themeConfig: { navbar: { title: "OSUI", logo: { alt: "OSUI Logo", src: "img/osui.png", }, items: [ { type: "docSidebar", sidebarId: "docsSidebar", position: "left", label: "Docs", }, {to: '/blog', label: 'Blog', position: 'left'}, { type: "docsVersionDropdown", position: "left", dropdownActiveClassDisabled: true, }, { href: "https://github.com/osui-rs/osui/", position: "right", html: ` `, }, ], }, footer: { style: "dark", links: [ { title: "Docs", items: [ { label: "Installation", to: "/docs/", }, ], }, { title: "Community", items: [ { label: "Discord", href: "https://discordapp.com/invite/jqc9dR6kBZ", }, { label: "GitHub", href: "https://github.com/osui-rs/osui/", }, ], }, { title: "Resources", items: [ { label: "Crossterm", href: "https://github.com/crossterm-rs/crossterm", }, { label: "Rust-lang", href: "https://rust-lang.org/", }, ], }, // { // title: 'More', // items: [ // { // label: 'Blog', // to: '/blog', // }, // { // label: 'GitHub', // href: 'https://github.com/facebook/docusaurus', // }, // ], // }, ], copyright: `Copyright © ${new Date().getFullYear()} OSUI, Inc. Built with Docusaurus.`, }, prism: { theme: prismThemes.vsLight, darkTheme: prismThemes.vsDark, }, } satisfies Preset.ThemeConfig, }; export default config;