chore(examples): update examples to 2.0.0-beta.14 (#6148)

This commit is contained in:
Sébastien Lorber 2021-12-21 17:49:39 +01:00 committed by GitHub
parent 31d57acc66
commit f2325947c9
5 changed files with 1771 additions and 3125 deletions

View file

@ -26,8 +26,16 @@ This command generates static content into the `build` directory and can be serv
### Deployment ### Deployment
Using SSH:
``` ```
$ GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy $ USE_SSH=true yarn deploy
```
Not using SSH:
```
$ GIT_USER=<Your GitHub username> yarn deploy
``` ```
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch. If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.

View file

@ -32,4 +32,4 @@ npx docusaurus start
Your site starts at `http://localhost:3000`. Your site starts at `http://localhost:3000`.
Open `docs/intro.md` and edit some lines: the site **reloads automatically** and display your changes. Open `docs/intro.md` and edit some lines: the site **reloads automatically** and displays your changes.

View file

@ -18,19 +18,19 @@ const config = {
presets: [ presets: [
[ [
'@docusaurus/preset-classic', 'classic',
/** @type {import('@docusaurus/preset-classic').Options} */ /** @type {import('@docusaurus/preset-classic').Options} */
({ ({
docs: { docs: {
sidebarPath: require.resolve('./sidebars.js'), sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo. // Please change this to your repo.
editUrl: 'https://github.com/facebook/docusaurus/edit/main/website/', editUrl: 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
}, },
blog: { blog: {
showReadingTime: true, showReadingTime: true,
// Please change this to your repo. // Please change this to your repo.
editUrl: editUrl:
'https://github.com/facebook/docusaurus/edit/main/website/blog/', 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
}, },
theme: { theme: {
customCss: require.resolve('./src/css/custom.css'), customCss: require.resolve('./src/css/custom.css'),

View file

@ -15,16 +15,13 @@
"dev": "docusaurus start" "dev": "docusaurus start"
}, },
"dependencies": { "dependencies": {
"@docusaurus/core": "2.0.0-beta.8", "@docusaurus/core": "2.0.0-beta.14",
"@docusaurus/preset-classic": "2.0.0-beta.8", "@docusaurus/preset-classic": "2.0.0-beta.14",
"@mdx-js/react": "^1.6.21", "@mdx-js/react": "^1.6.21",
"@svgr/webpack": "^5.5.0",
"clsx": "^1.1.1", "clsx": "^1.1.1",
"file-loader": "^6.2.0",
"prism-react-renderer": "^1.2.1", "prism-react-renderer": "^1.2.1",
"react": "^17.0.1", "react": "^17.0.1",
"react-dom": "^17.0.1", "react-dom": "^17.0.1"
"url-loader": "^4.1.1"
}, },
"browserslist": { "browserslist": {
"production": [ "production": [

4869
yarn.lock

File diff suppressed because it is too large Load diff