mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 07:37:19 +02:00
chore: regenerate beta.22 examples (#7742)
This commit is contained in:
parent
f0f97f29f9
commit
e62d5e3f48
37 changed files with 4885 additions and 5300 deletions
2
examples/classic-typescript/docs/intro.md
generated
2
examples/classic-typescript/docs/intro.md
generated
|
@ -14,7 +14,7 @@ Or **try Docusaurus immediately** with **[docusaurus.new](https://docusaurus.new
|
||||||
|
|
||||||
### What you'll need
|
### What you'll need
|
||||||
|
|
||||||
- [Node.js](https://nodejs.org/en/download/) version 14 or above:
|
- [Node.js](https://nodejs.org/en/download/) version 16.14 or above:
|
||||||
- When installing Node.js, you are recommended to check all checkboxes related to dependencies.
|
- When installing Node.js, you are recommended to check all checkboxes related to dependencies.
|
||||||
|
|
||||||
## Generate a new site
|
## Generate a new site
|
||||||
|
|
|
@ -31,4 +31,4 @@ Congratulations, you have made your first post!
|
||||||
Feel free to play around and edit this post as much you like.
|
Feel free to play around and edit this post as much you like.
|
||||||
```
|
```
|
||||||
|
|
||||||
A new blog post is now available at `http://localhost:3000/blog/greetings`.
|
A new blog post is now available at [http://localhost:3000/blog/greetings](http://localhost:3000/blog/greetings).
|
||||||
|
|
|
@ -12,7 +12,7 @@ Documents are **groups of pages** connected through:
|
||||||
|
|
||||||
## Create your first Doc
|
## Create your first Doc
|
||||||
|
|
||||||
Create a markdown file at `docs/hello.md`:
|
Create a Markdown file at `docs/hello.md`:
|
||||||
|
|
||||||
```md title="docs/hello.md"
|
```md title="docs/hello.md"
|
||||||
# Hello
|
# Hello
|
||||||
|
@ -20,7 +20,7 @@ Create a markdown file at `docs/hello.md`:
|
||||||
This is my **first Docusaurus document**!
|
This is my **first Docusaurus document**!
|
||||||
```
|
```
|
||||||
|
|
||||||
A new document is now available at `http://localhost:3000/docs/hello`.
|
A new document is now available at [http://localhost:3000/docs/hello](http://localhost:3000/docs/hello).
|
||||||
|
|
||||||
## Configure the Sidebar
|
## Configure the Sidebar
|
||||||
|
|
||||||
|
|
|
@ -6,9 +6,9 @@ sidebar_position: 1
|
||||||
|
|
||||||
Add **Markdown or React** files to `src/pages` to create a **standalone page**:
|
Add **Markdown or React** files to `src/pages` to create a **standalone page**:
|
||||||
|
|
||||||
- `src/pages/index.js` -> `localhost:3000/`
|
- `src/pages/index.js` → `localhost:3000/`
|
||||||
- `src/pages/foo.md` -> `localhost:3000/foo`
|
- `src/pages/foo.md` → `localhost:3000/foo`
|
||||||
- `src/pages/foo/bar.js` -> `localhost:3000/foo/bar`
|
- `src/pages/foo/bar.js` → `localhost:3000/foo/bar`
|
||||||
|
|
||||||
## Create your first React Page
|
## Create your first React Page
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ export default function MyReactPage() {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
A new page is now available at `http://localhost:3000/my-react-page`.
|
A new page is now available at [http://localhost:3000/my-react-page](http://localhost:3000/my-react-page).
|
||||||
|
|
||||||
## Create your first Markdown Page
|
## Create your first Markdown Page
|
||||||
|
|
||||||
|
@ -40,4 +40,4 @@ Create a file at `src/pages/my-markdown-page.md`:
|
||||||
This is a Markdown page
|
This is a Markdown page
|
||||||
```
|
```
|
||||||
|
|
||||||
A new page is now available at `http://localhost:3000/my-markdown-page`.
|
A new page is now available at [http://localhost:3000/my-markdown-page](http://localhost:3000/my-markdown-page).
|
||||||
|
|
|
@ -26,6 +26,6 @@ Test your production build locally:
|
||||||
npm run serve
|
npm run serve
|
||||||
```
|
```
|
||||||
|
|
||||||
The `build` folder is now served at `http://localhost:3000/`.
|
The `build` folder is now served at [http://localhost:3000/](http://localhost:3000/).
|
||||||
|
|
||||||
You can now deploy the `build` folder **almost anywhere** easily, **for free** or very small cost (read the **[Deployment Guide](https://docusaurus.io/docs/deployment)**).
|
You can now deploy the `build` folder **almost anywhere** easily, **for free** or very small cost (read the **[Deployment Guide](https://docusaurus.io/docs/deployment)**).
|
||||||
|
|
|
@ -39,7 +39,7 @@ Start your site on the French locale:
|
||||||
npm run start -- --locale fr
|
npm run start -- --locale fr
|
||||||
```
|
```
|
||||||
|
|
||||||
Your localized site is accessible at `http://localhost:3000/fr/` and the `Getting Started` page is translated.
|
Your localized site is accessible at [http://localhost:3000/fr/](http://localhost:3000/fr/) and the `Getting Started` page is translated.
|
||||||
|
|
||||||
:::caution
|
:::caution
|
||||||
|
|
||||||
|
|
15
examples/classic-typescript/package.json
generated
15
examples/classic-typescript/package.json
generated
|
@ -16,18 +16,18 @@
|
||||||
"dev": "docusaurus start"
|
"dev": "docusaurus start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@docusaurus/core": "2.0.0-beta.20",
|
"@docusaurus/core": "2.0.0-beta.22",
|
||||||
"@docusaurus/preset-classic": "2.0.0-beta.20",
|
"@docusaurus/preset-classic": "2.0.0-beta.22",
|
||||||
"@mdx-js/react": "^1.6.22",
|
"@mdx-js/react": "^1.6.22",
|
||||||
"clsx": "^1.1.1",
|
"clsx": "^1.2.0",
|
||||||
"prism-react-renderer": "^1.3.1",
|
"prism-react-renderer": "^1.3.5",
|
||||||
"react": "^17.0.2",
|
"react": "^17.0.2",
|
||||||
"react-dom": "^17.0.2"
|
"react-dom": "^17.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@docusaurus/module-type-aliases": "2.0.0-beta.20",
|
"@docusaurus/module-type-aliases": "2.0.0-beta.22",
|
||||||
"@tsconfig/docusaurus": "^1.0.5",
|
"@tsconfig/docusaurus": "^1.0.5",
|
||||||
"typescript": "^4.6.4"
|
"typescript": "^4.7.4"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"production": [
|
"production": [
|
||||||
|
@ -41,5 +41,8 @@
|
||||||
"last 1 safari version"
|
"last 1 safari version"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=16.14"
|
||||||
|
},
|
||||||
"description": "Docusaurus example project (classic-typescript template)"
|
"description": "Docusaurus example project (classic-typescript template)"
|
||||||
}
|
}
|
||||||
|
|
5
examples/classic-typescript/src/pages/index.tsx
generated
5
examples/classic-typescript/src/pages/index.tsx
generated
|
@ -1,11 +1,12 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import clsx from 'clsx';
|
import clsx from 'clsx';
|
||||||
import Layout from '@theme/Layout';
|
|
||||||
import Link from '@docusaurus/Link';
|
import Link from '@docusaurus/Link';
|
||||||
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
||||||
import styles from './index.module.css';
|
import Layout from '@theme/Layout';
|
||||||
import HomepageFeatures from '@site/src/components/HomepageFeatures';
|
import HomepageFeatures from '@site/src/components/HomepageFeatures';
|
||||||
|
|
||||||
|
import styles from './index.module.css';
|
||||||
|
|
||||||
function HomepageHeader() {
|
function HomepageHeader() {
|
||||||
const {siteConfig} = useDocusaurusContext();
|
const {siteConfig} = useDocusaurusContext();
|
||||||
return (
|
return (
|
||||||
|
|
3254
examples/classic-typescript/yarn.lock
generated
3254
examples/classic-typescript/yarn.lock
generated
File diff suppressed because it is too large
Load diff
2
examples/classic/docs/intro.md
generated
2
examples/classic/docs/intro.md
generated
|
@ -14,7 +14,7 @@ Or **try Docusaurus immediately** with **[docusaurus.new](https://docusaurus.new
|
||||||
|
|
||||||
### What you'll need
|
### What you'll need
|
||||||
|
|
||||||
- [Node.js](https://nodejs.org/en/download/) version 14 or above:
|
- [Node.js](https://nodejs.org/en/download/) version 16.14 or above:
|
||||||
- When installing Node.js, you are recommended to check all checkboxes related to dependencies.
|
- When installing Node.js, you are recommended to check all checkboxes related to dependencies.
|
||||||
|
|
||||||
## Generate a new site
|
## Generate a new site
|
||||||
|
|
|
@ -31,4 +31,4 @@ Congratulations, you have made your first post!
|
||||||
Feel free to play around and edit this post as much you like.
|
Feel free to play around and edit this post as much you like.
|
||||||
```
|
```
|
||||||
|
|
||||||
A new blog post is now available at `http://localhost:3000/blog/greetings`.
|
A new blog post is now available at [http://localhost:3000/blog/greetings](http://localhost:3000/blog/greetings).
|
||||||
|
|
|
@ -12,7 +12,7 @@ Documents are **groups of pages** connected through:
|
||||||
|
|
||||||
## Create your first Doc
|
## Create your first Doc
|
||||||
|
|
||||||
Create a markdown file at `docs/hello.md`:
|
Create a Markdown file at `docs/hello.md`:
|
||||||
|
|
||||||
```md title="docs/hello.md"
|
```md title="docs/hello.md"
|
||||||
# Hello
|
# Hello
|
||||||
|
@ -20,7 +20,7 @@ Create a markdown file at `docs/hello.md`:
|
||||||
This is my **first Docusaurus document**!
|
This is my **first Docusaurus document**!
|
||||||
```
|
```
|
||||||
|
|
||||||
A new document is now available at `http://localhost:3000/docs/hello`.
|
A new document is now available at [http://localhost:3000/docs/hello](http://localhost:3000/docs/hello).
|
||||||
|
|
||||||
## Configure the Sidebar
|
## Configure the Sidebar
|
||||||
|
|
||||||
|
|
|
@ -6,9 +6,9 @@ sidebar_position: 1
|
||||||
|
|
||||||
Add **Markdown or React** files to `src/pages` to create a **standalone page**:
|
Add **Markdown or React** files to `src/pages` to create a **standalone page**:
|
||||||
|
|
||||||
- `src/pages/index.js` -> `localhost:3000/`
|
- `src/pages/index.js` → `localhost:3000/`
|
||||||
- `src/pages/foo.md` -> `localhost:3000/foo`
|
- `src/pages/foo.md` → `localhost:3000/foo`
|
||||||
- `src/pages/foo/bar.js` -> `localhost:3000/foo/bar`
|
- `src/pages/foo/bar.js` → `localhost:3000/foo/bar`
|
||||||
|
|
||||||
## Create your first React Page
|
## Create your first React Page
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ export default function MyReactPage() {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
A new page is now available at `http://localhost:3000/my-react-page`.
|
A new page is now available at [http://localhost:3000/my-react-page](http://localhost:3000/my-react-page).
|
||||||
|
|
||||||
## Create your first Markdown Page
|
## Create your first Markdown Page
|
||||||
|
|
||||||
|
@ -40,4 +40,4 @@ Create a file at `src/pages/my-markdown-page.md`:
|
||||||
This is a Markdown page
|
This is a Markdown page
|
||||||
```
|
```
|
||||||
|
|
||||||
A new page is now available at `http://localhost:3000/my-markdown-page`.
|
A new page is now available at [http://localhost:3000/my-markdown-page](http://localhost:3000/my-markdown-page).
|
||||||
|
|
|
@ -26,6 +26,6 @@ Test your production build locally:
|
||||||
npm run serve
|
npm run serve
|
||||||
```
|
```
|
||||||
|
|
||||||
The `build` folder is now served at `http://localhost:3000/`.
|
The `build` folder is now served at [http://localhost:3000/](http://localhost:3000/).
|
||||||
|
|
||||||
You can now deploy the `build` folder **almost anywhere** easily, **for free** or very small cost (read the **[Deployment Guide](https://docusaurus.io/docs/deployment)**).
|
You can now deploy the `build` folder **almost anywhere** easily, **for free** or very small cost (read the **[Deployment Guide](https://docusaurus.io/docs/deployment)**).
|
||||||
|
|
|
@ -39,7 +39,7 @@ Start your site on the French locale:
|
||||||
npm run start -- --locale fr
|
npm run start -- --locale fr
|
||||||
```
|
```
|
||||||
|
|
||||||
Your localized site is accessible at `http://localhost:3000/fr/` and the `Getting Started` page is translated.
|
Your localized site is accessible at [http://localhost:3000/fr/](http://localhost:3000/fr/) and the `Getting Started` page is translated.
|
||||||
|
|
||||||
:::caution
|
:::caution
|
||||||
|
|
||||||
|
|
13
examples/classic/package.json
generated
13
examples/classic/package.json
generated
|
@ -15,16 +15,16 @@
|
||||||
"dev": "docusaurus start"
|
"dev": "docusaurus start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@docusaurus/core": "2.0.0-beta.20",
|
"@docusaurus/core": "2.0.0-beta.22",
|
||||||
"@docusaurus/preset-classic": "2.0.0-beta.20",
|
"@docusaurus/preset-classic": "2.0.0-beta.22",
|
||||||
"@mdx-js/react": "^1.6.22",
|
"@mdx-js/react": "^1.6.22",
|
||||||
"clsx": "^1.1.1",
|
"clsx": "^1.2.0",
|
||||||
"prism-react-renderer": "^1.3.1",
|
"prism-react-renderer": "^1.3.5",
|
||||||
"react": "^17.0.2",
|
"react": "^17.0.2",
|
||||||
"react-dom": "^17.0.2"
|
"react-dom": "^17.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@docusaurus/module-type-aliases": "2.0.0-beta.20"
|
"@docusaurus/module-type-aliases": "2.0.0-beta.22"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"production": [
|
"production": [
|
||||||
|
@ -38,5 +38,8 @@
|
||||||
"last 1 safari version"
|
"last 1 safari version"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=16.14"
|
||||||
|
},
|
||||||
"description": "Docusaurus example project"
|
"description": "Docusaurus example project"
|
||||||
}
|
}
|
||||||
|
|
5
examples/classic/src/pages/index.js
generated
5
examples/classic/src/pages/index.js
generated
|
@ -1,11 +1,12 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import clsx from 'clsx';
|
import clsx from 'clsx';
|
||||||
import Layout from '@theme/Layout';
|
|
||||||
import Link from '@docusaurus/Link';
|
import Link from '@docusaurus/Link';
|
||||||
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
||||||
import styles from './index.module.css';
|
import Layout from '@theme/Layout';
|
||||||
import HomepageFeatures from '@site/src/components/HomepageFeatures';
|
import HomepageFeatures from '@site/src/components/HomepageFeatures';
|
||||||
|
|
||||||
|
import styles from './index.module.css';
|
||||||
|
|
||||||
function HomepageHeader() {
|
function HomepageHeader() {
|
||||||
const {siteConfig} = useDocusaurusContext();
|
const {siteConfig} = useDocusaurusContext();
|
||||||
return (
|
return (
|
||||||
|
|
3240
examples/classic/yarn.lock
generated
3240
examples/classic/yarn.lock
generated
File diff suppressed because it is too large
Load diff
4
examples/facebook/.eslintrc.js
generated
vendored
4
examples/facebook/.eslintrc.js
generated
vendored
|
@ -1,5 +1,5 @@
|
||||||
/**
|
/**
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||||
*
|
*
|
||||||
* This source code is licensed under the MIT license found in the
|
* This source code is licensed under the MIT license found in the
|
||||||
* LICENSE file in the root directory of this source tree.
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
@ -38,7 +38,7 @@ module.exports = {
|
||||||
|
|
||||||
[
|
[
|
||||||
'*',
|
'*',
|
||||||
' * Copyright (c) Facebook, Inc. and its affiliates.',
|
' * Copyright (c) Meta Platforms, Inc. and affiliates.',
|
||||||
' *',
|
' *',
|
||||||
' * This source code is licensed under the MIT license found in the',
|
' * This source code is licensed under the MIT license found in the',
|
||||||
' * LICENSE file in the root directory of this source tree.',
|
' * LICENSE file in the root directory of this source tree.',
|
||||||
|
|
2
examples/facebook/.stylelintrc.js
generated
vendored
2
examples/facebook/.stylelintrc.js
generated
vendored
|
@ -1,5 +1,5 @@
|
||||||
/**
|
/**
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||||
*
|
*
|
||||||
* This source code is licensed under the MIT license found in the
|
* This source code is licensed under the MIT license found in the
|
||||||
* LICENSE file in the root directory of this source tree.
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
|
2
examples/facebook/babel.config.js
generated
2
examples/facebook/babel.config.js
generated
|
@ -1,5 +1,5 @@
|
||||||
/**
|
/**
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||||
*
|
*
|
||||||
* This source code is licensed under the MIT license found in the
|
* This source code is licensed under the MIT license found in the
|
||||||
* LICENSE file in the root directory of this source tree.
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
|
2
examples/facebook/docs/intro.md
generated
2
examples/facebook/docs/intro.md
generated
|
@ -14,7 +14,7 @@ Or **try Docusaurus immediately** with **[docusaurus.new](https://docusaurus.new
|
||||||
|
|
||||||
### What you'll need
|
### What you'll need
|
||||||
|
|
||||||
- [Node.js](https://nodejs.org/en/download/) version 14 or above:
|
- [Node.js](https://nodejs.org/en/download/) version 16.14 or above:
|
||||||
- When installing Node.js, you are recommended to check all checkboxes related to dependencies.
|
- When installing Node.js, you are recommended to check all checkboxes related to dependencies.
|
||||||
|
|
||||||
## Generate a new site
|
## Generate a new site
|
||||||
|
|
|
@ -31,4 +31,4 @@ Congratulations, you have made your first post!
|
||||||
Feel free to play around and edit this post as much you like.
|
Feel free to play around and edit this post as much you like.
|
||||||
```
|
```
|
||||||
|
|
||||||
A new blog post is now available at `http://localhost:3000/blog/greetings`.
|
A new blog post is now available at [http://localhost:3000/blog/greetings](http://localhost:3000/blog/greetings).
|
||||||
|
|
|
@ -12,7 +12,7 @@ Documents are **groups of pages** connected through:
|
||||||
|
|
||||||
## Create your first Doc
|
## Create your first Doc
|
||||||
|
|
||||||
Create a markdown file at `docs/hello.md`:
|
Create a Markdown file at `docs/hello.md`:
|
||||||
|
|
||||||
```md title="docs/hello.md"
|
```md title="docs/hello.md"
|
||||||
# Hello
|
# Hello
|
||||||
|
@ -20,7 +20,7 @@ Create a markdown file at `docs/hello.md`:
|
||||||
This is my **first Docusaurus document**!
|
This is my **first Docusaurus document**!
|
||||||
```
|
```
|
||||||
|
|
||||||
A new document is now available at `http://localhost:3000/docs/hello`.
|
A new document is now available at [http://localhost:3000/docs/hello](http://localhost:3000/docs/hello).
|
||||||
|
|
||||||
## Configure the Sidebar
|
## Configure the Sidebar
|
||||||
|
|
||||||
|
|
|
@ -6,9 +6,9 @@ sidebar_position: 1
|
||||||
|
|
||||||
Add **Markdown or React** files to `src/pages` to create a **standalone page**:
|
Add **Markdown or React** files to `src/pages` to create a **standalone page**:
|
||||||
|
|
||||||
- `src/pages/index.js` -> `localhost:3000/`
|
- `src/pages/index.js` → `localhost:3000/`
|
||||||
- `src/pages/foo.md` -> `localhost:3000/foo`
|
- `src/pages/foo.md` → `localhost:3000/foo`
|
||||||
- `src/pages/foo/bar.js` -> `localhost:3000/foo/bar`
|
- `src/pages/foo/bar.js` → `localhost:3000/foo/bar`
|
||||||
|
|
||||||
## Create your first React Page
|
## Create your first React Page
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ export default function MyReactPage() {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
A new page is now available at `http://localhost:3000/my-react-page`.
|
A new page is now available at [http://localhost:3000/my-react-page](http://localhost:3000/my-react-page).
|
||||||
|
|
||||||
## Create your first Markdown Page
|
## Create your first Markdown Page
|
||||||
|
|
||||||
|
@ -40,4 +40,4 @@ Create a file at `src/pages/my-markdown-page.md`:
|
||||||
This is a Markdown page
|
This is a Markdown page
|
||||||
```
|
```
|
||||||
|
|
||||||
A new page is now available at `http://localhost:3000/my-markdown-page`.
|
A new page is now available at [http://localhost:3000/my-markdown-page](http://localhost:3000/my-markdown-page).
|
||||||
|
|
|
@ -26,6 +26,6 @@ Test your production build locally:
|
||||||
npm run serve
|
npm run serve
|
||||||
```
|
```
|
||||||
|
|
||||||
The `build` folder is now served at `http://localhost:3000/`.
|
The `build` folder is now served at [http://localhost:3000/](http://localhost:3000/).
|
||||||
|
|
||||||
You can now deploy the `build` folder **almost anywhere** easily, **for free** or very small cost (read the **[Deployment Guide](https://docusaurus.io/docs/deployment)**).
|
You can now deploy the `build` folder **almost anywhere** easily, **for free** or very small cost (read the **[Deployment Guide](https://docusaurus.io/docs/deployment)**).
|
||||||
|
|
|
@ -39,7 +39,7 @@ Start your site on the French locale:
|
||||||
npm run start -- --locale fr
|
npm run start -- --locale fr
|
||||||
```
|
```
|
||||||
|
|
||||||
Your localized site is accessible at `http://localhost:3000/fr/` and the `Getting Started` page is translated.
|
Your localized site is accessible at [http://localhost:3000/fr/](http://localhost:3000/fr/) and the `Getting Started` page is translated.
|
||||||
|
|
||||||
:::caution
|
:::caution
|
||||||
|
|
||||||
|
|
24
examples/facebook/docusaurus.config.js
generated
24
examples/facebook/docusaurus.config.js
generated
|
@ -1,5 +1,5 @@
|
||||||
/**
|
/**
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||||
*
|
*
|
||||||
* This source code is licensed under the MIT license found in the
|
* This source code is licensed under the MIT license found in the
|
||||||
* LICENSE file in the root directory of this source tree.
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
@ -54,9 +54,9 @@ const config = {
|
||||||
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
||||||
({
|
({
|
||||||
navbar: {
|
navbar: {
|
||||||
title: 'My Facebook Project',
|
title: 'My Meta Project',
|
||||||
logo: {
|
logo: {
|
||||||
alt: 'My Facebook Project Logo',
|
alt: 'My Meta Project Logo',
|
||||||
src: 'img/logo.svg',
|
src: 'img/logo.svg',
|
||||||
},
|
},
|
||||||
items: [
|
items: [
|
||||||
|
@ -127,30 +127,32 @@ const config = {
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
label: 'Privacy',
|
label: 'Privacy',
|
||||||
href: 'https://opensource.facebook.com/legal/privacy/',
|
href: 'https://opensource.fb.com/legal/privacy/',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Terms',
|
label: 'Terms',
|
||||||
href: 'https://opensource.facebook.com/legal/terms/',
|
href: 'https://opensource.fb.com/legal/terms/',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Data Policy',
|
label: 'Data Policy',
|
||||||
href: 'https://opensource.facebook.com/legal/data-policy/',
|
href: 'https://opensource.fb.com/legal/data-policy/',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Cookie Policy',
|
label: 'Cookie Policy',
|
||||||
href: 'https://opensource.facebook.com/legal/cookie-policy/',
|
href: 'https://opensource.fb.com/legal/cookie-policy/',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
logo: {
|
logo: {
|
||||||
alt: 'Facebook Open Source Logo',
|
alt: 'Meta Open Source Logo',
|
||||||
src: 'img/oss_logo.png',
|
// This default includes a positive & negative version, allowing for
|
||||||
href: 'https://opensource.facebook.com',
|
// appropriate use depending on your site's style.
|
||||||
|
src: '/img/meta_opensource_logo_negative.svg',
|
||||||
|
href: 'https://opensource.fb.com',
|
||||||
},
|
},
|
||||||
// Please do not remove the credits, help to publicize Docusaurus :)
|
// Please do not remove the credits, help to publicize Docusaurus :)
|
||||||
copyright: `Copyright © ${new Date().getFullYear()} Facebook, Inc. Built with Docusaurus.`,
|
copyright: `Copyright © ${new Date().getFullYear()} Meta Platforms, Inc. Built with Docusaurus.`,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
23
examples/facebook/package.json
generated
23
examples/facebook/package.json
generated
|
@ -19,25 +19,25 @@
|
||||||
"dev": "docusaurus start"
|
"dev": "docusaurus start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@docusaurus/core": "2.0.0-beta.20",
|
"@docusaurus/core": "2.0.0-beta.22",
|
||||||
"@docusaurus/preset-classic": "2.0.0-beta.20",
|
"@docusaurus/preset-classic": "2.0.0-beta.22",
|
||||||
"@mdx-js/react": "^1.6.22",
|
"@mdx-js/react": "^1.6.22",
|
||||||
"clsx": "^1.1.1",
|
"clsx": "^1.2.0",
|
||||||
"react": "^17.0.2",
|
"react": "^17.0.2",
|
||||||
"react-dom": "^17.0.2"
|
"react-dom": "^17.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/eslint-parser": "^7.17.0",
|
"@babel/eslint-parser": "^7.18.2",
|
||||||
"eslint": "^8.14.0",
|
"eslint": "^8.19.0",
|
||||||
"eslint-config-airbnb": "^19.0.4",
|
"eslint-config-airbnb": "^19.0.4",
|
||||||
"eslint-config-prettier": "^8.5.0",
|
"eslint-config-prettier": "^8.5.0",
|
||||||
"eslint-plugin-header": "^3.1.1",
|
"eslint-plugin-header": "^3.1.1",
|
||||||
"eslint-plugin-import": "^2.26.0",
|
"eslint-plugin-import": "^2.26.0",
|
||||||
"eslint-plugin-jsx-a11y": "^6.5.1",
|
"eslint-plugin-jsx-a11y": "^6.6.0",
|
||||||
"eslint-plugin-react": "^7.29.4",
|
"eslint-plugin-react": "^7.30.1",
|
||||||
"eslint-plugin-react-hooks": "^4.5.0",
|
"eslint-plugin-react-hooks": "^4.6.0",
|
||||||
"prettier": "^2.6.2",
|
"prettier": "^2.7.1",
|
||||||
"stylelint": "^14.8.1"
|
"stylelint": "^14.9.1"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"production": [
|
"production": [
|
||||||
|
@ -51,5 +51,8 @@
|
||||||
"last 1 safari version"
|
"last 1 safari version"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=16.14"
|
||||||
|
},
|
||||||
"description": "Docusaurus example project (facebook template)"
|
"description": "Docusaurus example project (facebook template)"
|
||||||
}
|
}
|
||||||
|
|
2
examples/facebook/sidebars.js
generated
2
examples/facebook/sidebars.js
generated
|
@ -1,5 +1,5 @@
|
||||||
/**
|
/**
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||||
*
|
*
|
||||||
* This source code is licensed under the MIT license found in the
|
* This source code is licensed under the MIT license found in the
|
||||||
* LICENSE file in the root directory of this source tree.
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
|
2
examples/facebook/src/css/custom.css
generated
2
examples/facebook/src/css/custom.css
generated
|
@ -1,5 +1,5 @@
|
||||||
/**
|
/**
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||||
*
|
*
|
||||||
* This source code is licensed under the MIT license found in the
|
* This source code is licensed under the MIT license found in the
|
||||||
* LICENSE file in the root directory of this source tree.
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
|
2
examples/facebook/src/pages/index.js
generated
2
examples/facebook/src/pages/index.js
generated
|
@ -1,5 +1,5 @@
|
||||||
/**
|
/**
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||||
*
|
*
|
||||||
* This source code is licensed under the MIT license found in the
|
* This source code is licensed under the MIT license found in the
|
||||||
* LICENSE file in the root directory of this source tree.
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
|
2
examples/facebook/src/pages/styles.module.css
generated
2
examples/facebook/src/pages/styles.module.css
generated
|
@ -1,5 +1,5 @@
|
||||||
/**
|
/**
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||||
*
|
*
|
||||||
* This source code is licensed under the MIT license found in the
|
* This source code is licensed under the MIT license found in the
|
||||||
* LICENSE file in the root directory of this source tree.
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
|
1
examples/facebook/static/img/meta_opensource_logo.svg
generated
Normal file
1
examples/facebook/static/img/meta_opensource_logo.svg
generated
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 14 KiB |
1
examples/facebook/static/img/meta_opensource_logo_negative.svg
generated
Normal file
1
examples/facebook/static/img/meta_opensource_logo_negative.svg
generated
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 14 KiB |
BIN
examples/facebook/static/img/oss_logo.png
generated
BIN
examples/facebook/static/img/oss_logo.png
generated
Binary file not shown.
Before Width: | Height: | Size: 4.6 KiB |
3522
examples/facebook/yarn.lock
generated
3522
examples/facebook/yarn.lock
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue