Skip to content

Commit

Permalink
Upgrade Docusaurus to latest version (facebook#9728)
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 authored Oct 16, 2020
1 parent 1f2d387 commit 6f3e32e
Show file tree
Hide file tree
Showing 5 changed files with 4,009 additions and 2,988 deletions.
4 changes: 2 additions & 2 deletions docusaurus/docs/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ service worker navigation routing can be configured or disabled by
[`eject`ing](available-scripts.md#npm-run-eject) and then modifying the
[`navigateFallback`](https://github.com/GoogleChrome/sw-precache#navigatefallback-string)
and [`navigateFallbackWhitelist`](https://github.com/GoogleChrome/sw-precache#navigatefallbackwhitelist-arrayregexp)
options of the `SWPrecachePlugin` [configuration](../config/webpack.config.prod.js).
options of the `SWPrecachePlugin` configuration.

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:
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:

```js
"start_url": ".",
Expand Down
2 changes: 1 addition & 1 deletion docusaurus/website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const siteConfig = {
alt: 'Create React App Logo',
src: 'img/logo.svg',
},
links: [
items: [
{ to: 'docs/getting-started', label: 'Docs', position: 'right' },
{
href: 'https://reactjs.org/community/support.html',
Expand Down
6 changes: 3 additions & 3 deletions docusaurus/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"deploy": "docusaurus deploy"
},
"dependencies": {
"@docusaurus/core": "^2.0.0-alpha.39",
"@docusaurus/preset-classic": "^2.0.0-alpha.39",
"classnames": "^2.2.6",
"@docusaurus/core": "^2.0.0-alpha.64",
"@docusaurus/preset-classic": "^2.0.0-alpha.64",
"clsx": "^1.1.1",
"react": "^16.12.0",
"react-dom": "^16.12.0"
},
Expand Down
8 changes: 4 additions & 4 deletions docusaurus/website/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import useBaseUrl from '@docusaurus/useBaseUrl';
import Layout from '@theme/Layout';
import CodeBlock from '@theme/CodeBlock';

import classnames from 'classnames';
import clsx from 'clsx';

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

Expand Down Expand Up @@ -44,10 +44,10 @@ function Home() {
permalink={'/'}
description={'Set up a modern web app by running one command.'}
>
<div className={classnames('hero hero--dark', styles.heroBanner)}>
<div className={clsx('hero hero--dark', styles.heroBanner)}>
<div className="container">
<img
className={classnames(styles.heroBannerLogo, 'margin-vert--md')}
className={clsx(styles.heroBannerLogo, 'margin-vert--md')}
alt="Create React App logo"
src={useBaseUrl('img/logo.svg')}
/>
Expand All @@ -70,7 +70,7 @@ function Home() {
{features.map(({ title, content }, idx) => (
<div
key={idx}
className={classnames('col col--4', styles.feature)}
className={clsx('col col--4', styles.feature)}
>
<h2>{title}</h2>
<p>{content}</p>
Expand Down
Loading

0 comments on commit 6f3e32e

Please sign in to comment.