Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 6.3k
Upgrade React-Native website to Docusaurus v3#3780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
8d71bdc5491c27b40501fad867590886ab5083b2da81a75585f76cfa7acf051b1d4362752645abb85a558b19c61ade771a3a558b1ef7fc8dacf26a889da0463172db97e57c2a21cfdefa9730572b6c7684c3aa3c17e89c65f98f1c4ba10969080fc9d4c5abf15bcb6458a9c7a032529ea0c1971a5143f8File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -18,9 +18,7 @@ Together with the rapid iteration cycle of the web, we've been able to build som | ||
| <footer> | ||
| <a | ||
| href="https://code.facebook.com/posts/1014532261909640/react-native-bringing-modern-web-techniques-to-mobile/" | ||
| className="btn"> | ||
| Read more | ||
| </a> | ||
| className="btn">Read more</a> | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Was this change made by a formatter or manually?
| ||
| </footer> | ||
| > This is an excerpt. Read the rest of the post on [Facebook Code](https://code.facebook.com/posts/1014532261909640/react-native-bringing-modern-web-techniques-to-mobile/). | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -94,7 +94,7 @@ return <S3Album track/> | ||
| AWS Amplify favors a convention over configuration style of development, with a global initialization routine or initialization at the category level. The quickest way to get started is with an [aws-exports file](https://aws.amazon.com/blogs/mobile/enhanced-javascript-development-with-aws-mobile-hub/). However, developers can also use the library independently with existing resources. | ||
| For a deep dive into the philosophy and to see a full demo, check out the video from [AWS re:Invent](https://www.youtube.com/watch?v=vAjf3lyjf8c). | ||
| For a deep dive into the philosophy and to see a full demo, check out the video from [AWS re\:Invent](https://www.youtube.com/watch?v=vAjf3lyjf8c). | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why does this need to be escaped?
| ||
| ## AWS AppSync | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -5,11 +5,12 @@ | ||
| * LICENSE file in the root directory of this source tree. | ||
| */ | ||
| import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment'; | ||
| import React, {useState} from 'react'; | ||
| import useIsBrowser from '@docusaurus/useIsBrowser'; | ||
| const DocsRating = ({label}) => { | ||
| if (!ExecutionEnvironment.canUseDOM) { | ||
| const isBrowser = useIsBrowser(); | ||
| if (!isBrowser) { | ||
Comment on lines
-12
to
+13
| ||
| return null; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -48,10 +48,10 @@ | ||
| ] | ||
| }, | ||
| "dependencies": { | ||
| "@docusaurus/core": "^2.4.1", | ||
| "@docusaurus/plugin-google-gtag": "^2.4.1", | ||
| "@docusaurus/plugin-pwa": "^2.4.1", | ||
| "@docusaurus/preset-classic": "^2.4.1", | ||
| "@docusaurus/core": "0.0.0-5658", | ||
cipolleschi marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| "@docusaurus/plugin-google-gtag": "0.0.0-5658", | ||
| "@docusaurus/plugin-pwa": "0.0.0-5658", | ||
| "@docusaurus/preset-classic": "0.0.0-5658", | ||
| "docusaurus-plugin-sass": "^0.2.2", | ||
| "esbuild-loader": "^2.19.0", | ||
| "react": "^18.2.0", | ||
| @@ -60,7 +60,7 @@ | ||
| "sass": "^1.53.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@docusaurus/types": "^2.4.1", | ||
| "@docusaurus/types": "0.0.0-5658", | ||
| "@react-native-website/lint-examples": "0.0.0", | ||
| "@react-native-website/update-redirects": "0.0.0", | ||
| "alex": "^10.0.0", | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| import React from 'react'; | ||
| import CodeBlock from '@theme/CodeBlock'; | ||
| import InlineCode from './InlineCode'; | ||
| export default function MDXCode(props) { | ||
| const shouldBeInline = React.Children.toArray(props.children).every( | ||
| el => typeof el === 'string' && !el.includes('\n') | ||
| ); | ||
| return shouldBeInline ? <InlineCode {...props} /> : <CodeBlock {...props} />; | ||
| } |
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.



Uh oh!
There was an error while loading. Please reload this page.