react-native-ui-lib
Version:
<p align="center"> <img src="https://user-images.githubusercontent.com/1780255/105469025-56759000-5ca0-11eb-993d-3568c1fd54f4.png" height="250px" style="display:block"/> </p> <p align="center">UI Toolset & Components Library for React Native</p> <p a
136 lines (132 loc) • 4.46 kB
JavaScript
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
// With JSDoc @type annotations, IDEs can provide config autocompletion
/** @type {import('@docusaurus/types').DocusaurusConfig} */
(
module.exports = {
title: 'RNUILib',
tagline: 'React Native UI Lib',
url: 'https://wix.github.io',
baseUrl: '/react-native-ui-lib/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'wix', // Usually your GitHub org/user name.
projectName: 'react-native-ui-lib', // Usually your repo name.
trailingSlash: false,
customFields: {
expoSnackLink: 'https://snack.expo.io/@ethanshar/rnuilib_snack?platform=ios&supportedPlatforms=ios,android',
stars: '4.1'
},
plugins: ['docusaurus-plugin-sass'],
presets: [
[
'@docusaurus/preset-classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
path: '../docs',
// Please change this to your repo.
editUrl: 'https://github.com/facebook/docusaurus/edit/main/website/'
},
blog: {
showReadingTime: true,
// Please change this to your repo.
editUrl: 'https://github.com/facebook/docusaurus/edit/main/website/blog/'
},
theme: {
customCss: [
require.resolve('./src/css/custom.css'),
require.resolve('./src/css/presets.css'),
require.resolve('./src/css/components.css')
]
}
})
]
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
algolia: {
// If Algolia did not provide you any appId, use 'BH4D9OD16A'
appId: 'BWQFOHCCF3',
// Public API key: it is safe to commit it
apiKey: '1a60a72123558930af25a58c42d0fae3',
indexName: 'react-native-ui-lib',
// Optional: see doc section below
contextualSearch: true
// Optional: Specify domains where the navigation should occur through window.location instead on history.push. Useful when our Algolia config crawls multiple documentation sites and we want to navigate with window.location.href to them.
// externalUrlRegex: 'external\\.com|domain\\.com',
// Optional: Algolia search parameters
// searchParameters: {}
//... other Algolia params
},
navbar: {
title: 'RNUILib',
hideOnScroll: true,
logo: {
alt: 'RNUILib Logo',
src: 'img/logo.png'
},
items: [
{
type: 'doc',
docId: 'getting-started/setup',
position: 'right',
label: 'Docs'
},
// {to: '/blog', label: 'Blog', position: 'left'},
{
href: 'https://github.com/wix/react-native-ui-lib',
label: 'GitHub',
position: 'right'
}
]
},
footer: {
style: 'dark',
links: [
{
title: 'Links',
items: [
{
label: 'Docs',
to: '/docs/getting-started/setup'
},
{
label: 'GitHub',
href: 'https://github.com/wix/react-native-ui-lib'
},
{
label: 'Expo-Snack',
href: 'https://snack.expo.io/@ethanshar/rnuilib_snack?platform=ios&supportedPlatforms=ios,android'
}
]
},
{
title: 'Community',
items: [
{
label: 'Discord',
href: 'https://discord.gg/2eW4g6Z'
},
{
label: 'Twitter',
href: 'https://twitter.com/rnuilib'
}
]
}
],
copyright: `© 2006-${new Date().getFullYear()} Wix.com, Inc.`
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme
},
colorMode: {
disableSwitch: true
}
})
}
);