Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 61 additions & 7 deletions website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ const config: Config = {
},

title: 'React Native',
tagline: 'A framework for building native apps using React',
organizationName: 'facebook',
tagline:
'A framework for building native apps for Android, iOS, and more using React',
organizationName: 'Meta Platforms, Inc.',
projectName: 'react-native',
url: 'https://reactnative.dev',
baseUrl: '/',
Expand All @@ -100,7 +101,7 @@ const config: Config = {
{src: 'https://snack.expo.dev/embed.js', defer: true},
{src: 'https://platform.twitter.com/widgets.js', async: true},
],
favicon: 'img/favicon.ico',
favicon: 'favicon.ico',
titleDelimiter: '·',
customFields: {
users,
Expand All @@ -111,6 +112,62 @@ const config: Config = {
locales: ['en'],
},
onBrokenLinks: 'warn',
headTags: [
{
tagName: 'script',
attributes: {
type: 'application/ld+json',
},
innerHTML: JSON.stringify({
'@context': 'https://schema.org/',
'@type': 'WebPage',
'@id': 'https://reactnative.dev/',
url: 'https://reactnative.dev/',
name: 'React Native · Learn once, write anywhere',
description:
'A framework for building native apps for Android, iOS, and more using React',
logo: 'https://reactnative.dev/img/pwa/manifest-icon-192.png',
inLanguage: 'en-US',
}),
},
{
tagName: 'script',
attributes: {
type: 'application/ld+json',
},
innerHTML: JSON.stringify({
'@type': 'WebSite',
'@id': 'https://reactnative.dev/',
url: 'https://reactnative.dev/',
name: 'React Native · Learn once, write anywhere',
description:
'A framework for building native apps for Android, iOS, and more using React',
publisher: 'Meta Platforms, Inc.',
potentialAction: [
{
'@type': 'SearchAction',
target: {
'@type': 'EntryPoint',
urlTemplate: 'https://reactnative.dev/search?q={query}',
},
'query-input': {
'@type': 'PropertyValueSpecification',
valueRequired: true,
valueName: 'query',
},
},
],
inLanguage: 'en-US',
}),
},
{
tagName: 'link',
attributes: {
rel: 'apple-touch-icon',
href: '/img/pwa/apple-icon-180.png',
},
},
],
presets: [
[
'@docusaurus/preset-classic',
Expand Down Expand Up @@ -149,10 +206,6 @@ const config: Config = {
require.resolve('./src/css/versions.scss'),
],
},
// TODO: GA is deprecated, remove once we're sure data is streaming in GA4 via gtag.
googleAnalytics: {
trackingID: 'UA-41298772-2',
},
gtag: {
trackingID: 'G-58L13S6BDP',
},
Expand Down Expand Up @@ -504,6 +557,7 @@ const config: Config = {
content: 'https://reactnative.dev/img/logo-share.png',
},
{name: 'twitter:site', content: '@reactnative'},
{name: 'apple-mobile-web-app-capable', content: 'yes'},
],
} satisfies Preset.ThemeConfig,
};
Expand Down
2 changes: 1 addition & 1 deletion website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import Home from '../components/Home';
const Index = () => {
return (
<Layout
description="A framework for building native apps using React"
description="A framework for building native apps for Android, iOS, and more using React"
wrapperClassName="homepage">
<Head>
<title>React Native · Learn once, write anywhere</title>
Expand Down
4 changes: 4 additions & 0 deletions website/static/_redirects
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Redirects from what the browser requests to what we serve

# RSS feed
/blog/feed /blog/rss.xml
/blog/feed.xml /blog/rss.xml

# Renamed pages
/docs/android-setup /docs/getting-started
/docs/building-for-apple-tv /docs/building-for-tv
Expand Down
Binary file removed website/static/docs/assets/favicon.png
Binary file not shown.
File renamed without changes.
Binary file removed website/static/img/header_logo.png
Binary file not shown.
Binary file removed website/static/img/opengraph.png
Binary file not shown.
Binary file removed website/static/img/pwa/apple-icon-120.png
Binary file not shown.
Binary file removed website/static/img/pwa/apple-icon-152.png
Binary file not shown.
Binary file removed website/static/img/pwa/apple-icon-167.png
Binary file not shown.
Binary file modified website/static/img/pwa/apple-icon-180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/pwa/manifest-icon-192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/pwa/manifest-icon-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 18 additions & 6 deletions website/static/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "React Native Documentation",
"name": "React Native · Learn once, write anywhere",
"short_name": "React Native",
"description": "Learn once, write anywhere.",
"description": "A framework for building native apps for Android, iOS, and more using React",
"theme_color": "#20232a",
"background_color": "#20232a",
"display": "minimal-ui",
Expand Down Expand Up @@ -43,16 +43,28 @@
],
"icons": [
{
"src": "img/pwa/manifest-icon-192.png",
"src": "static/img/pwa/manifest-icon-192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any maskable"
"purpose": "any"
},
{
"src": "img/pwa/manifest-icon-512.png",
"src": "static/img/pwa/manifest-icon-192.maskable.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "static/img/pwa/manifest-icon-512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
},
{
"src": "static/img/pwa/manifest-icon-512.maskable.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any maskable"
"purpose": "maskable"
}
]
}
2 changes: 2 additions & 0 deletions website/static/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow: