mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
58055d8998
* Migration to Docusaurus v2.0.0 * update lock file * add algolia search * update GH Pages deploy * make sidebar non-collapsible for now * update theme colors * ignore docusaurus-specific import aliases, remove home-container class Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
114 lines
2.9 KiB
JavaScript
114 lines
2.9 KiB
JavaScript
const repoUrl = 'https://github.com/callstack/react-native-testing-library';
|
|
const title = 'React Native Testing Library';
|
|
|
|
const siteConfig = {
|
|
title, // Title for your website.
|
|
tagline: 'Helps you to write better tests with less effort.',
|
|
url: 'https://callstack.github.io', // Your website URL
|
|
baseUrl: '/react-native-testing-library/', // Base URL for your project
|
|
// Used for publishing and more
|
|
projectName: 'react-native-testing-library',
|
|
organizationName: 'callstack',
|
|
favicon: 'img/owl.png',
|
|
|
|
themeConfig: {
|
|
sidebarCollapsible: false,
|
|
navbar: {
|
|
title,
|
|
logo: {
|
|
alt: title,
|
|
src: 'img/owl.png',
|
|
},
|
|
links: [
|
|
{ to: 'docs/getting-started', label: 'Docs', position: 'right' },
|
|
{ href: repoUrl, label: 'GitHub', position: 'right' },
|
|
],
|
|
},
|
|
footer: {
|
|
style: 'dark',
|
|
links: [
|
|
{
|
|
title: 'Docs',
|
|
items: [
|
|
{
|
|
key: 1,
|
|
label: 'Getting started',
|
|
to: 'docs/getting-started',
|
|
},
|
|
{
|
|
key: 2,
|
|
label: 'API',
|
|
to: 'docs/api',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
title: 'Community',
|
|
items: [
|
|
{
|
|
key: 3,
|
|
label: 'Stack Overflow',
|
|
href:
|
|
'http://stackoverflow.com/questions/tagged/react-native-testing-library',
|
|
},
|
|
{
|
|
key: 4,
|
|
label: 'Discord Channel',
|
|
href: 'https://discord.gg/QbGezWe',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
title: 'More',
|
|
items: [
|
|
{
|
|
key: 5,
|
|
label: 'GitHub',
|
|
href: '/callstack/react-native-testing-library',
|
|
},
|
|
{
|
|
key: 6,
|
|
label: 'Star',
|
|
href: '/callstack/react-native-testing-library',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
copyright: `Copyright © ${new Date().getFullYear()} Callstack Open Source`,
|
|
},
|
|
image: 'img/owl.png',
|
|
prism: {
|
|
theme: require('prism-react-renderer/themes/github'),
|
|
darkTheme: require('prism-react-renderer/themes/dracula'),
|
|
defaultLanguage: 'jsx',
|
|
},
|
|
algolia: {
|
|
apiKey: 'cd9b8b73f97b64ed04570e41c507683f',
|
|
indexName: 'react-native-testing-library',
|
|
},
|
|
},
|
|
|
|
presets: [
|
|
[
|
|
'@docusaurus/preset-classic',
|
|
{
|
|
docs: {
|
|
sidebarPath: require.resolve('./sidebars.js'),
|
|
// Please change this to your repo.
|
|
editUrl: `${repoUrl}/blob/master`,
|
|
},
|
|
blog: {
|
|
showReadingTime: true,
|
|
// Please change this to your repo.
|
|
editUrl: `${repoUrl}/blob/master/blog`,
|
|
},
|
|
theme: {
|
|
customCss: require.resolve('./src/css/custom.css'),
|
|
},
|
|
},
|
|
],
|
|
],
|
|
};
|
|
|
|
module.exports = siteConfig;
|