Skip to content

Commit 467d87d

Browse files
committed
fix local build, basic theme overrides, header reorder, docusaurus bump (#12)
* fix local build, basic theme overrides, header reorder, docusaurus bump * add navbar override group, update navbar typography * tweak version switcher and hr design * update page links style, fix text color issues * use docsVersionDropdown in navbar * fix validation warning * footer design tweaks, jsx as default prism language * add native code banner, fix version label design, update notes style * static dark navbar, color fix, docusaurus bump * tweak dark theme, fix page shrinking issue * navbar UI and positioning tweaks, update blog page * sidebar spacing, minor color tweaks
1 parent cd9763b commit 467d87d

File tree

9 files changed

+933
-245
lines changed

9 files changed

+933
-245
lines changed

docs/running-on-device.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ You can also iterate quickly on a device using the development server. You only
169169
170170
When trying to connect to the development server you might get a [red screen with an error](debugging.md#in-app-errors-and-warnings) saying:
171171

172-
> Connection to [http://localhost:8081/debugger-proxy?role=client]() timed out. Are you running node proxy? If you are running on the device, check if you have the right IP address in `RCTWebSocketExecutor.m`.
172+
> Connection to `http://localhost:8081/debugger-proxy?role=client` timed out. Are you running node proxy? If you are running on the device, check if you have the right IP address in `RCTWebSocketExecutor.m`.
173173
174174
To solve this issue check the following points.
175175

website/docusaurus.config.js

Lines changed: 20 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -355,76 +355,52 @@ module.exports = {
355355
plugins: [],
356356
themeConfig: {
357357
announcementBar: {
358-
id: 'blm_banner', // Any value that will identify this message.
358+
id: 'blm',
359+
backgroundColor: '#242526',
360+
textColor: '#fff',
359361
content:
360-
'Black Lives Matter. <a href="https://support.eji.org/give/153413/#!/donation/checkout">Support the Equal Justice Initiative.</a>',
361-
backgroundColor: '#fafbfc', // Defaults to `#fff`.
362+
'<div class="announcement">Black Lives Matter. <a target="_blank" rel="noopener noreferrer" href="https://support.eji.org/give/153413/#!/donation/checkout">Support the Equal Justice Initiative</a>.</div>',
363+
isCloseable: false,
364+
},
365+
prism: {
366+
defaultLanguage: 'jsx',
362367
},
363368
navbar: {
364369
title: 'React Native',
365370
logo: {
366371
src: 'img/header_logo.svg',
367372
},
373+
style: 'dark',
368374
items: [
369-
{
370-
type: 'docsVersion',
371-
position: 'left',
372-
to: '/versions',
373-
},
374375
{
375376
to: 'docs/',
376377
label: 'Docs',
377-
position: 'left',
378+
position: 'right',
378379
},
379380
{
380381
to: 'docs/components-and-apis',
381382
label: 'Components',
382-
position: 'left',
383+
position: 'right',
383384
},
384385
{
385386
to: 'docs/accessibilityinfo',
386387
label: 'API',
387-
position: 'left',
388+
position: 'right',
388389
},
389390
{
390391
to: '/help',
391392
label: 'Community',
392-
position: 'left',
393+
position: 'right',
393394
},
394395
{
395396
to: '/blog',
396397
label: 'Blog',
397-
position: 'left',
398+
position: 'right',
398399
},
399-
400400
{
401-
label: 'Version',
402-
to: 'docs',
403-
position: 'right',
404-
items: [
405-
{
406-
label: '0.63',
407-
to: 'docs/',
408-
activeBaseRegex: 'docs/(?!0.60|0.61|0.62|0.63|next)',
409-
},
410-
{
411-
label: '0.62',
412-
to: 'docs/0.62/',
413-
},
414-
{
415-
label: '0.61',
416-
to: 'docs/0.61/',
417-
},
418-
{
419-
label: '0.60',
420-
to: 'docs/0.60/',
421-
},
422-
{
423-
label: 'Master/Unreleased',
424-
to: 'docs/next/',
425-
activeBaseRegex: 'docs/next/(?!support|team|resources)',
426-
},
427-
],
401+
type: 'docsVersionDropdown',
402+
// TODO: to: '/versions',
403+
position: 'left',
428404
},
429405
{
430406
href: 'https://github.com/facebook/react-native',
@@ -438,7 +414,7 @@ module.exports = {
438414
style: 'dark',
439415
links: [
440416
{
441-
title: 'DOCS',
417+
title: 'Docs',
442418
items: [
443419
{
444420
label: 'Getting Started',
@@ -459,7 +435,7 @@ module.exports = {
459435
],
460436
},
461437
{
462-
title: 'COMMUNITY',
438+
title: 'Community',
463439
items: [
464440
{
465441
label: 'The React Native Community',
@@ -485,7 +461,7 @@ module.exports = {
485461
],
486462
},
487463
{
488-
title: 'MORE RESOURCES',
464+
title: 'More Resources',
489465
items: [
490466
{
491467
label: 'Blog',

website/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"type": "git",
1010
"url": "git+https://github.com/facebook/react-native-website.git"
1111
},
12-
1312
"bugs": {
1413
"url": "https://github.com/facebook/react-native-website"
1514
},
@@ -47,8 +46,8 @@
4746
"dependencies": {
4847
"highlight.js": "^9.15.10",
4948
"remarkable": "^2.0.0",
50-
"@docusaurus/core": "2.0.0-alpha.61",
51-
"@docusaurus/preset-classic": "2.0.0-alpha.61",
49+
"@docusaurus/core": "2.0.0-alpha.64",
50+
"@docusaurus/preset-classic": "2.0.0-alpha.64",
5251
"clsx": "^1.1.1",
5352
"react": "^16.10.2",
5453
"react-dom": "^16.10.2"

0 commit comments

Comments
 (0)