-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* upgrade to docusaurus to 3.1.1, ts to 5.2.2, and react to 18.0.0. plus required adjustments. * upgrade docusaurus to 3.2.1 * fix features background in dark mode * fix broken link * Nuke lockfile * Trigger CI * Remove vercel specific configs --------- Co-authored-by: Christy Presler <cpresler@users.noreply.github.com> Co-authored-by: Charlie Brown <carbonrobot@gmail.com>
- Loading branch information
1 parent
1f14d46
commit eb595a4
Showing
16 changed files
with
8,512 additions
and
9,548 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
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: 'React Native Owl', | ||
tagline: 'Visual Regression Testing for React Native', | ||
url: 'https://commerce.nearform.com/', | ||
baseUrl: '/open-source/react-native-owl/', | ||
onBrokenLinks: 'throw', | ||
onBrokenMarkdownLinks: 'warn', | ||
favicon: 'images/favicon.ico', | ||
organizationName: 'Nearform Commerce', | ||
projectName: 'react-native-owl', | ||
i18n: { | ||
defaultLocale: "en", | ||
locales: ["en"], | ||
}, | ||
presets: [ | ||
[ | ||
"classic", | ||
{ | ||
docs: { | ||
path: '../docs', | ||
sidebarPath: './sidebars.js', | ||
editUrl: | ||
'https://github.com/FormidableLabs/react-native-owl/edit/main/website/', | ||
}, | ||
theme: { | ||
customCss: require.resolve('./src/css/custom.css'), | ||
}, | ||
...(process.env.VERCEL_ENV === 'production' && { | ||
gtag: { | ||
trackingID: process.env.GTAG_TRACKING_ID, | ||
anonymizeIP: true, | ||
}, | ||
googleTagManager: { | ||
containerId: process.env.GTM_CONTAINER_ID, | ||
}, | ||
}), | ||
}, | ||
], | ||
], | ||
|
||
themeConfig: { | ||
metadata: [ | ||
{ | ||
name: "viewport", | ||
content: "width=device-width, initial-scale=1, maximum-scale=1", | ||
image: '/images/social.png', | ||
}, | ||
], | ||
navbar: { | ||
style: 'dark', | ||
title: 'React Native Owl', | ||
logo: { | ||
alt: 'React Native Owl Logo', | ||
src: 'images/logo-eyes.svg', | ||
}, | ||
items: [ | ||
{ | ||
label: 'Documentation', | ||
position: 'left', | ||
items: [ | ||
{ | ||
label: 'Getting Started', | ||
to: '/docs/introduction/getting-started/', | ||
}, | ||
{ | ||
label: 'Config File', | ||
to: '/docs/introduction/config-file/', | ||
}, | ||
{ | ||
label: 'CLI', | ||
to: '/docs/cli/building-the-app/', | ||
}, | ||
{ | ||
label: 'Methods', | ||
to: '/docs/api/methods/', | ||
}, | ||
{ | ||
label: 'Matchers', | ||
to: '/docs/api/matchers/', | ||
}, | ||
], | ||
}, | ||
{ | ||
href: 'https://github.com/FormidableLabs/react-native-owl', | ||
className: 'header-github-link', | ||
'aria-label': 'GitHub Repository', | ||
position: 'right', | ||
}, | ||
{ | ||
href: 'https://commerce.nearform.com/', | ||
className: 'header-nearform-link', | ||
'aria-label': 'Nearform Commerce Website', | ||
position: 'right', | ||
}, | ||
], | ||
}, | ||
footer: { | ||
style: 'dark', | ||
logo: { | ||
alt: "Nearform logo", | ||
src: "images/nearform-logo-white.svg", | ||
href: "https://commerce.nearform.com", | ||
width: 100, | ||
height: 100, | ||
}, | ||
copyright: `Copyright © ${new Date().getFullYear()} Nearform`, | ||
}, | ||
prism: { | ||
defaultLanguage: 'javascript', | ||
theme: prismThemes.github, | ||
darkTheme: prismThemes.dracula, | ||
}, | ||
} satisfies Preset.ThemeConfig, | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,7 @@ | |
max-width: 40rem; | ||
width: 100%; | ||
} | ||
|
||
[data-theme="dark"] .feature { | ||
background-color: var(--ifm-color-gray-800); | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.