// @ts-check // Note: type annotations allow type checking and IDEs autocompletion const { themes } = require("prism-react-renderer"); /** @type {import('@docusaurus/types').Config} */ const config = { title: "Fl-Query", tagline: "Async data manager for Flutter", url: "https://flquery.com", baseUrl: "/", onBrokenLinks: "throw", onBrokenMarkdownLinks: "warn", favicon: "img/favicon.ico", // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. organizationName: "Kingkor Roy Tirtho", // Usually your GitHub org/user name. projectName: "Fl-Query", // Usually your repo name. plugins: [ async function TailwindCSSPlugin(context, options) { return { name: "docusaurus-tailwindcss", configurePostCss(postcssOptions) { // Appends TailwindCSS and AutoPrefixer. postcssOptions.plugins.push(require("tailwindcss")); postcssOptions.plugins.push(require("autoprefixer")); return postcssOptions; }, }; }, ], // 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: { sidebarPath: require.resolve("./sidebars.js"), // Please change this to your repo. // Remove this to remove the "edit this page" links. editUrl: "https://github.com/KRTirtho/fl-query/tree/main/packages/docs/docs/", }, blog: { showReadingTime: true, // Please change this to your repo. // Remove this to remove the "edit this page" links. editUrl: "https://github.com/KRTirtho/fl-query/tree/main/packages/docs/blog/", }, theme: { customCss: require.resolve("./src/css/custom.css"), }, }), ], ], themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ colorMode: { respectPrefersColorScheme: true, }, navbar: { title: "Fl-Query", logo: { alt: "Fl-Query Logo", src: "img/logo.svg", }, items: [ { type: "doc", docId: "getting-started/overview", position: "left", label: "Documentation", }, { to: "/blog", label: "Blog", position: "left" }, { href: "https://github.com/KRTirtho/fl-query", label: "GitHub", position: "right", }, ], }, footer: { style: "dark", links: [ { title: "Docs", items: [ { label: "Documentation", to: "/docs/getting-started/overview", }, ], }, { title: "Community", items: [ { label: "Stack Overflow", href: "https://stackoverflow.com/questions/tagged/fl-query", }, { label: "Twitter", href: "https://twitter.com/KrTirtho", }, ], }, { title: "More", items: [ { label: "Blog", to: "/blog", }, { label: "GitHub", href: "https://github.com/KRTirtho/fl-query", }, ], }, ], copyright: `Copyright © ${new Date().getFullYear()} Kingkor Roy Tirtho`, }, prism: { theme: themes.oneLight, darkTheme: themes.oneDark, additionalLanguages: ["dart"], }, }), }; module.exports = config;