@@ -2,6 +2,7 @@ const users = require('./showcase.json');
22const versions = require ( './versions.json' ) ;
33
44const lastVersion = versions [ 0 ] ;
5+ const copyright = `Copyright © ${ new Date ( ) . getFullYear ( ) } Meta Platforms, Inc.` ;
56
67const commonDocsOptions = {
78 showLastUpdateAuthor : false ,
@@ -12,7 +13,7 @@ const commonDocsOptions = {
1213} ;
1314
1415/** @type {import('@docusaurus/types').DocusaurusConfig } */
15- ( module . exports = {
16+ module . exports = {
1617 title : 'React Native' ,
1718 tagline : 'A framework for building native apps using React' ,
1819 organizationName : 'facebook' ,
@@ -23,13 +24,11 @@ const commonDocsOptions = {
2324 trailingSlash : false , // because trailing slashes can break some existing relative links
2425 scripts : [
2526 {
26- src :
27- 'https://cdn.jsdelivr.net/npm/[email protected] /dist/focus-visible.min.js' , 27+ src :
'https://cdn.jsdelivr.net/npm/[email protected] /dist/focus-visible.min.js' , 2828 defer : true ,
2929 } ,
3030 {
31- src :
32- 'https://widget.surveymonkey.com/collect/website/js/tRaiETqnLgj758hTBazgd8ryO5qrZo8Exadq9qmt1wtm4_2FdZGEAKHDFEt_2BBlwwM4.js' ,
31+ src : 'https://widget.surveymonkey.com/collect/website/js/tRaiETqnLgj758hTBazgd8ryO5qrZo8Exadq9qmt1wtm4_2FdZGEAKHDFEt_2BBlwwM4.js' ,
3332 defer : true ,
3433 } ,
3534 { src : 'https://snack.expo.dev/embed.js' , defer : true } ,
@@ -81,7 +80,7 @@ const commonDocsOptions = {
8180 blogSidebarTitle : 'All Blog Posts' ,
8281 feedOptions : {
8382 type : 'all' ,
84- copyright : `Copyright © ${ new Date ( ) . getFullYear ( ) } Facebook, Inc.` ,
83+ copyright,
8584 } ,
8685 } ,
8786 theme : {
@@ -105,7 +104,7 @@ const commonDocsOptions = {
105104 path : 'architecture' ,
106105 routeBasePath : '/architecture' ,
107106 sidebarPath : require . resolve ( './sidebarsArchitecture.json' ) ,
108- ...commonDocsOptions
107+ ...commonDocsOptions ,
109108 } ) ,
110109 ] ,
111110 [
@@ -116,7 +115,7 @@ const commonDocsOptions = {
116115 path : 'contributing' ,
117116 routeBasePath : '/contributing' ,
118117 sidebarPath : require . resolve ( './sidebarsContributing.json' ) ,
119- ...commonDocsOptions
118+ ...commonDocsOptions ,
120119 } ) ,
121120 ] ,
122121 [
@@ -303,8 +302,7 @@ const commonDocsOptions = {
303302 } ,
304303 {
305304 label : 'Contributor Guide' ,
306- href :
307- 'https://github.com/facebook/react-native/blob/master/CONTRIBUTING.md' ,
305+ href : 'https://github.com/facebook/react-native/blob/main/CONTRIBUTING.md' ,
308306 } ,
309307 {
310308 label : 'DEV Community' ,
@@ -338,21 +336,21 @@ const commonDocsOptions = {
338336 } ,
339337 {
340338 label : 'Privacy Policy' ,
341- href : 'https://opensource.facebook .com/legal/privacy' ,
339+ href : 'https://opensource.fb .com/legal/privacy/ ' ,
342340 } ,
343341 {
344342 label : 'Terms of Service' ,
345- href : 'https://opensource.facebook .com/legal/terms' ,
343+ href : 'https://opensource.fb .com/legal/terms/ ' ,
346344 } ,
347345 ] ,
348346 } ,
349347 ] ,
350348 logo : {
351349 alt : 'Facebook Open Source Logo' ,
352350 src : 'img/oss_logo.png' ,
353- href : 'https://opensource.facebook .com' ,
351+ href : 'https://opensource.fb .com/ ' ,
354352 } ,
355- copyright : `Copyright © ${ new Date ( ) . getFullYear ( ) } Meta Platforms, Inc.` ,
353+ copyright,
356354 } ,
357355 algolia : {
358356 apiKey : '2c98749b4a1e588efec53b2acec13025' ,
@@ -378,4 +376,4 @@ const commonDocsOptions = {
378376 { name : 'twitter:site' , content : '@reactnative' } ,
379377 ] ,
380378 } ) ,
381- } ) ;
379+ } ;
0 commit comments