Files
nativewind/website/docusaurus.config.js
2022-06-20 11:13:38 +10:00

85 lines
2.2 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: "NativeWind",
tagline: "",
url: "https://tailwindcss-react-native-git-next-mwlawlor.vercel.app/",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",
organizationName: "marklawlor", // Usually your GitHub org/user name.
projectName: "NativeWind", // Usually your repo name.
scripts: [
{
src: "https://cdn.splitbee.io/sb.js",
async: true,
},
],
presets: [
[
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
routeBasePath: "/", // disable landing page
sidebarPath: require.resolve("./sidebars.js"),
editUrl: `https://github.com/marklawlor/tailwindcss-react-native/edit/main/website/`,
},
blog: false,
theme: {
defaultMode: "dark",
customCss: require.resolve("./src/css/custom.css"),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: "NativeWind",
logo: {
alt: "NativeWind Logo",
src: "img/logo.svg",
},
items: [
{
href: "https://github.com/marklawlor/tailwindcss-react-native",
label: "GitHub",
position: "right",
},
],
},
footer: {
style: "dark",
links: [
{
title: "More",
items: [
{
label: "GitHub",
href: "https://github.com/marklawlor/tailwindcss-react-native",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Mark Lawlor. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};
module.exports = config;