Skip to content

Commit 6f3e32e

Browse files
authored
Upgrade Docusaurus to latest version (#9728)
1 parent 1f2d387 commit 6f3e32e

File tree

5 files changed

+4009
-2988
lines changed

5 files changed

+4009
-2988
lines changed

docusaurus/docs/deployment.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ service worker navigation routing can be configured or disabled by
9090
[`eject`ing](available-scripts.md#npm-run-eject) and then modifying the
9191
[`navigateFallback`](https://github.com/GoogleChrome/sw-precache#navigatefallback-string)
9292
and [`navigateFallbackWhitelist`](https://github.com/GoogleChrome/sw-precache#navigatefallbackwhitelist-arrayregexp)
93-
options of the `SWPrecachePlugin` [configuration](../config/webpack.config.prod.js).
93+
options of the `SWPrecachePlugin` configuration.
9494

95-
When users install your app to the homescreen of their device the default configuration will make a shortcut to `/index.html`. This may not work for client-side routers which expect the app to be served from `/`. Edit the web app manifest at [`public/manifest.json`](public/manifest.json) and change `start_url` to match the required URL scheme, for example:
95+
When users install your app to the homescreen of their device the default configuration will make a shortcut to `/index.html`. This may not work for client-side routers which expect the app to be served from `/`. Edit the web app manifest at `public/manifest.json` and change `start_url` to match the required URL scheme, for example:
9696

9797
```js
9898
"start_url": ".",

docusaurus/website/docusaurus.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const siteConfig = {
4343
alt: 'Create React App Logo',
4444
src: 'img/logo.svg',
4545
},
46-
links: [
46+
items: [
4747
{ to: 'docs/getting-started', label: 'Docs', position: 'right' },
4848
{
4949
href: 'https://reactjs.org/community/support.html',

docusaurus/website/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"deploy": "docusaurus deploy"
77
},
88
"dependencies": {
9-
"@docusaurus/core": "^2.0.0-alpha.39",
10-
"@docusaurus/preset-classic": "^2.0.0-alpha.39",
11-
"classnames": "^2.2.6",
9+
"@docusaurus/core": "^2.0.0-alpha.64",
10+
"@docusaurus/preset-classic": "^2.0.0-alpha.64",
11+
"clsx": "^1.1.1",
1212
"react": "^16.12.0",
1313
"react-dom": "^16.12.0"
1414
},

docusaurus/website/src/pages/index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import useBaseUrl from '@docusaurus/useBaseUrl';
1313
import Layout from '@theme/Layout';
1414
import CodeBlock from '@theme/CodeBlock';
1515

16-
import classnames from 'classnames';
16+
import clsx from 'clsx';
1717

1818
import styles from './styles.module.css';
1919

@@ -44,10 +44,10 @@ function Home() {
4444
permalink={'/'}
4545
description={'Set up a modern web app by running one command.'}
4646
>
47-
<div className={classnames('hero hero--dark', styles.heroBanner)}>
47+
<div className={clsx('hero hero--dark', styles.heroBanner)}>
4848
<div className="container">
4949
<img
50-
className={classnames(styles.heroBannerLogo, 'margin-vert--md')}
50+
className={clsx(styles.heroBannerLogo, 'margin-vert--md')}
5151
alt="Create React App logo"
5252
src={useBaseUrl('img/logo.svg')}
5353
/>
@@ -70,7 +70,7 @@ function Home() {
7070
{features.map(({ title, content }, idx) => (
7171
<div
7272
key={idx}
73-
className={classnames('col col--4', styles.feature)}
73+
className={clsx('col col--4', styles.feature)}
7474
>
7575
<h2>{title}</h2>
7676
<p>{content}</p>

0 commit comments

Comments
 (0)