Skip to content

Commit

Permalink
chore(examples): update examples to 2.0.0-beta.14 (#6148)
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber authored Dec 21, 2021
1 parent 01b4070 commit f22eb95
Show file tree
Hide file tree
Showing 16 changed files with 5,513 additions and 9,478 deletions.
10 changes: 9 additions & 1 deletion examples/classic-typescript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,16 @@ This command generates static content into the `build` directory and can be serv

### Deployment

Using SSH:

```
$ USE_SSH=true yarn deploy
```

Not using SSH:

```
$ GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy
$ 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.
2 changes: 1 addition & 1 deletion examples/classic-typescript/docs/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ npx docusaurus start

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.
6 changes: 3 additions & 3 deletions examples/classic-typescript/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ const config = {

presets: [
[
'@docusaurus/preset-classic',
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// 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: {
showReadingTime: true,
// Please change this to your repo.
editUrl:
'https://github.com/facebook/docusaurus/edit/main/website/blog/',
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
Expand Down
13 changes: 5 additions & 8 deletions examples/classic-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,18 @@
"dev": "docusaurus start"
},
"dependencies": {
"@docusaurus/core": "2.0.0-beta.8",
"@docusaurus/preset-classic": "2.0.0-beta.8",
"@docusaurus/core": "2.0.0-beta.14",
"@docusaurus/preset-classic": "2.0.0-beta.14",
"@mdx-js/react": "^1.6.21",
"@svgr/webpack": "^5.5.0",
"clsx": "^1.1.1",
"file-loader": "^6.2.0",
"prism-react-renderer": "^1.2.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"url-loader": "^4.1.1"
"react-dom": "^17.0.1"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "2.0.0-beta.8",
"@docusaurus/module-type-aliases": "2.0.0-beta.14",
"@tsconfig/docusaurus": "^1.0.4",
"typescript": "^4.3.5"
"typescript": "^4.5.2"
},
"browserslist": {
"production": [
Expand Down
4,951 changes: 1,767 additions & 3,184 deletions examples/classic-typescript/yarn.lock

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion examples/classic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,16 @@ This command generates static content into the `build` directory and can be serv

### Deployment

Using SSH:

```
$ USE_SSH=true yarn deploy
```

Not using SSH:

```
$ GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy
$ 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.
2 changes: 1 addition & 1 deletion examples/classic/docs/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ npx docusaurus start

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.
6 changes: 3 additions & 3 deletions examples/classic/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ const config = {

presets: [
[
'@docusaurus/preset-classic',
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// 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: {
showReadingTime: true,
// Please change this to your repo.
editUrl:
'https://github.com/facebook/docusaurus/edit/main/website/blog/',
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
Expand Down
9 changes: 3 additions & 6 deletions examples/classic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,13 @@
"dev": "docusaurus start"
},
"dependencies": {
"@docusaurus/core": "2.0.0-beta.8",
"@docusaurus/preset-classic": "2.0.0-beta.8",
"@docusaurus/core": "2.0.0-beta.14",
"@docusaurus/preset-classic": "2.0.0-beta.14",
"@mdx-js/react": "^1.6.21",
"@svgr/webpack": "^5.5.0",
"clsx": "^1.1.1",
"file-loader": "^6.2.0",
"prism-react-renderer": "^1.2.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"url-loader": "^4.1.1"
"react-dom": "^17.0.1"
},
"browserslist": {
"production": [
Expand Down
Loading

0 comments on commit f22eb95

Please sign in to comment.