mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-22 13:37:05 +02:00
chore: update examples with docusaurus 3.6 (#10642)
This commit is contained in:
parent
ed2cdf391f
commit
5a883b4008
10 changed files with 3198 additions and 2968 deletions
3
examples/classic-typescript/babel.config.js
generated
3
examples/classic-typescript/babel.config.js
generated
|
@ -1,3 +0,0 @@
|
||||||
module.exports = {
|
|
||||||
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
|
|
||||||
};
|
|
2
examples/classic-typescript/docusaurus.config.ts
generated
2
examples/classic-typescript/docusaurus.config.ts
generated
|
@ -2,6 +2,8 @@ import {themes as prismThemes} from 'prism-react-renderer';
|
||||||
import type {Config} from '@docusaurus/types';
|
import type {Config} from '@docusaurus/types';
|
||||||
import type * as Preset from '@docusaurus/preset-classic';
|
import type * as Preset from '@docusaurus/preset-classic';
|
||||||
|
|
||||||
|
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
|
||||||
|
|
||||||
const config: Config = {
|
const config: Config = {
|
||||||
title: 'My Site',
|
title: 'My Site',
|
||||||
tagline: 'Dinosaurs are cool',
|
tagline: 'Dinosaurs are cool',
|
||||||
|
|
12
examples/classic-typescript/package.json
generated
12
examples/classic-typescript/package.json
generated
|
@ -16,8 +16,8 @@
|
||||||
"dev": "docusaurus start"
|
"dev": "docusaurus start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@docusaurus/core": "3.5.2",
|
"@docusaurus/core": "3.6.0",
|
||||||
"@docusaurus/preset-classic": "3.5.2",
|
"@docusaurus/preset-classic": "3.6.0",
|
||||||
"@mdx-js/react": "^3.0.0",
|
"@mdx-js/react": "^3.0.0",
|
||||||
"clsx": "^2.0.0",
|
"clsx": "^2.0.0",
|
||||||
"prism-react-renderer": "^2.3.0",
|
"prism-react-renderer": "^2.3.0",
|
||||||
|
@ -25,10 +25,10 @@
|
||||||
"react-dom": "^18.0.0"
|
"react-dom": "^18.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@docusaurus/module-type-aliases": "3.5.2",
|
"@docusaurus/module-type-aliases": "3.6.0",
|
||||||
"@docusaurus/tsconfig": "3.5.2",
|
"@docusaurus/tsconfig": "3.6.0",
|
||||||
"@docusaurus/types": "3.5.2",
|
"@docusaurus/types": "3.6.0",
|
||||||
"typescript": "~5.5.2"
|
"typescript": "~5.6.2"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"production": [
|
"production": [
|
||||||
|
|
2
examples/classic-typescript/sidebars.ts
generated
2
examples/classic-typescript/sidebars.ts
generated
|
@ -1,5 +1,7 @@
|
||||||
import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
|
import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
|
||||||
|
|
||||||
|
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creating a sidebar enables you to:
|
* Creating a sidebar enables you to:
|
||||||
- create an ordered group of docs
|
- create an ordered group of docs
|
||||||
|
|
3070
examples/classic-typescript/yarn.lock
generated
3070
examples/classic-typescript/yarn.lock
generated
File diff suppressed because it is too large
Load diff
3
examples/classic/babel.config.js
generated
3
examples/classic/babel.config.js
generated
|
@ -1,3 +0,0 @@
|
||||||
module.exports = {
|
|
||||||
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
|
|
||||||
};
|
|
2
examples/classic/docusaurus.config.js
generated
2
examples/classic/docusaurus.config.js
generated
|
@ -6,6 +6,8 @@
|
||||||
|
|
||||||
import {themes as prismThemes} from 'prism-react-renderer';
|
import {themes as prismThemes} from 'prism-react-renderer';
|
||||||
|
|
||||||
|
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
|
||||||
|
|
||||||
/** @type {import('@docusaurus/types').Config} */
|
/** @type {import('@docusaurus/types').Config} */
|
||||||
const config = {
|
const config = {
|
||||||
title: 'My Site',
|
title: 'My Site',
|
||||||
|
|
8
examples/classic/package.json
generated
8
examples/classic/package.json
generated
|
@ -15,8 +15,8 @@
|
||||||
"dev": "docusaurus start"
|
"dev": "docusaurus start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@docusaurus/core": "3.5.2",
|
"@docusaurus/core": "3.6.0",
|
||||||
"@docusaurus/preset-classic": "3.5.2",
|
"@docusaurus/preset-classic": "3.6.0",
|
||||||
"@mdx-js/react": "^3.0.0",
|
"@mdx-js/react": "^3.0.0",
|
||||||
"clsx": "^2.0.0",
|
"clsx": "^2.0.0",
|
||||||
"prism-react-renderer": "^2.3.0",
|
"prism-react-renderer": "^2.3.0",
|
||||||
|
@ -24,8 +24,8 @@
|
||||||
"react-dom": "^18.0.0"
|
"react-dom": "^18.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@docusaurus/module-type-aliases": "3.5.2",
|
"@docusaurus/module-type-aliases": "3.6.0",
|
||||||
"@docusaurus/types": "3.5.2"
|
"@docusaurus/types": "3.6.0"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"production": [
|
"production": [
|
||||||
|
|
10
examples/classic/sidebars.js
generated
10
examples/classic/sidebars.js
generated
|
@ -1,3 +1,7 @@
|
||||||
|
// @ts-check
|
||||||
|
|
||||||
|
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creating a sidebar enables you to:
|
* Creating a sidebar enables you to:
|
||||||
- create an ordered group of docs
|
- create an ordered group of docs
|
||||||
|
@ -7,11 +11,9 @@
|
||||||
The sidebars can be generated from the filesystem, or explicitly defined here.
|
The sidebars can be generated from the filesystem, or explicitly defined here.
|
||||||
|
|
||||||
Create as many sidebars as you want.
|
Create as many sidebars as you want.
|
||||||
|
|
||||||
|
@type {import('@docusaurus/plugin-content-docs').SidebarsConfig}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// @ts-check
|
|
||||||
|
|
||||||
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
|
|
||||||
const sidebars = {
|
const sidebars = {
|
||||||
// By default, Docusaurus generates a sidebar from the docs folder structure
|
// By default, Docusaurus generates a sidebar from the docs folder structure
|
||||||
tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
|
tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
|
||||||
|
|
3054
examples/classic/yarn.lock
generated
3054
examples/classic/yarn.lock
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue