Skip to content

Commit dc7e752

Browse files
authored
Merge pull request #923 from buildo/docusaurus-3
Upgrade website to Docusaurus 3
2 parents c25e7ec + d1669f1 commit dc7e752

File tree

9 files changed

+3802
-2273
lines changed

9 files changed

+3802
-2273
lines changed

packages/website/docs/02-Getting Started/03-project-structure.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export * from "./components/MyCustomComponent/MyCustomComponent";
163163
export const BentoProvider = createBentoProvider(config, theme, sprinkles);
164164
```
165165

166-
, like we saw in [Quick Start](./Quick-Start).
166+
, like we saw in [Quick Start](01-quick-start.mdx).
167167

168168
## Setting up Turborepo
169169

packages/website/docs/03-Customization/03-atoms-augmentation.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Canvas } from "@site/src/components/Canvas";
2+
import { PackageManagerCommand } from "@site/src/components/PackageManagerCommand";
23

34
# Atoms Augmentation
45

packages/website/docs/04-Components/_ComponentDoc.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Canvas } from "@site/src/components/Canvas";
22
import { PropTable } from "@site/src/components/PropTable";
33
import { ExternalLinkCard } from "@site/src/components/ExternalLinkCard";
44
import { ComponentHeader } from "@site/src/components/ComponentHeader";
5+
import React from "react";
56

67
<div style={{ display: "flex", gap: 24, flexWrap: "wrap" }}>
78
{props.name && <ExternalLinkCard type="github" componentName={props.name} />}

packages/website/docs/05-Guides/typography.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import { Canvas } from "@site/src/components/Canvas";
44

55
Bento type scale organizes styles into five roles, semantically named to describe their purposes:
66

7-
- [Display](../components/Display): reserved for short, important text or numerals. Usually, they work best on large screens.
8-
- [Headline](../components/Headline): best suited for short, high-emphasis text. These styles can be suitable for marking primary text passages or important content regions.
9-
- [Title](../components/Title): used to divide secondary text passages or content regions.
10-
- [Body](../components/Body): used for longer passages of text and paragraphs.
11-
- [Label](../components/Label): utilitarian styles used for text inside of components or very small supporting text in the content body, like captions.
7+
- [Display](../04-Components/Display.mdx): reserved for short, important text or numerals. Usually, they work best on large screens.
8+
- [Headline](../04-Components/Headline.mdx): best suited for short, high-emphasis text. These styles can be suitable for marking primary text passages or important content regions.
9+
- [Title](../04-Components/Title.mdx): used to divide secondary text passages or content regions.
10+
- [Body](../04-Components/Body.mdx): used for longer passages of text and paragraphs.
11+
- [Label](../04-Components/Label.mdx): utilitarian styles used for text inside of components or very small supporting text in the content body, like captions.
1212

1313
## Usage
1414

packages/website/docusaurus.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// @ts-check
2-
const lightCodeTheme = require("prism-react-renderer/themes/github");
3-
const darkCodeTheme = require("prism-react-renderer/themes/dracula");
2+
const { themes } = require("prism-react-renderer");
3+
const lightCodeTheme = themes.github;
4+
const darkCodeTheme = themes.dracula;
45
const { ProvidePlugin } = require("webpack");
56

67
/** @type {import('@docusaurus/types').Config} */

packages/website/package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,43 +28,43 @@
2828
"@babel/standalone": "7.22.20",
2929
"@babel/traverse": "7.23.3",
3030
"@buildo/bento-design-system": "workspace:*",
31-
"@docusaurus/core": "2.0.1",
32-
"@docusaurus/preset-classic": "2.0.1",
33-
"@docusaurus/theme-common": "2.0.1",
34-
"@easyops-cn/docusaurus-search-local": "0.35.0",
35-
"@mdx-js/react": "1.6.22",
31+
"@docusaurus/core": "3.5.2",
32+
"@docusaurus/preset-classic": "3.5.2",
33+
"@docusaurus/theme-common": "3.5.2",
34+
"@easyops-cn/docusaurus-search-local": "0.45.0",
35+
"@mdx-js/react": "3.0.1",
3636
"assert": "2.0.0",
3737
"buffer": "6.0.3",
3838
"clsx": "1.2.1",
3939
"docusaurus-plugin-react-docgen-typescript": "1.1.0",
4040
"playroom": "0.32.1",
4141
"prettier": "2.8.8",
42-
"prism-react-renderer": "1.3.5",
42+
"prism-react-renderer": "2.4.0",
4343
"process": "0.11.10",
44-
"react": "18.2.0",
44+
"react": "18.3.1",
4545
"react-docgen-typescript": "2.2.2",
46-
"react-dom": "18.2.0",
46+
"react-dom": "18.3.1",
4747
"react-markdown": "8.0.7"
4848
},
4949
"devDependencies": {
5050
"@babel/types": "7.22.19",
51-
"@docusaurus/module-type-aliases": "2.0.1",
52-
"@docusaurus/theme-classic": "2.0.1",
53-
"@docusaurus/theme-live-codeblock": "2.0.1",
54-
"@docusaurus/types": "2.0.1",
51+
"@docusaurus/module-type-aliases": "3.5.2",
52+
"@docusaurus/theme-classic": "3.5.2",
53+
"@docusaurus/theme-live-codeblock": "3.5.2",
54+
"@docusaurus/types": "3.5.2",
5555
"@phosphor-icons/react": "2.1.7",
56-
"@tsconfig/docusaurus": "1.0.6",
56+
"@docusaurus/tsconfig": "3.5.2",
5757
"@types/babel__generator": "7.6.8",
5858
"@types/babel__standalone": "7.1.7",
5959
"@types/babel__traverse": "7.20.6",
6060
"@types/node": "18.19.55",
61-
"@types/react": "18.2.21",
61+
"@types/react": "18.3.11",
6262
"@typescript-eslint/parser": "5.62.0",
6363
"@vanilla-extract/sprinkles": "1.6.3",
6464
"eslint-config-react-app": "7.0.1",
6565
"lint-staged": "13.3.0",
6666
"raw-loader": "4.0.2",
67-
"typescript": "4.9.5",
67+
"typescript": "5.6.3",
6868
"webpack": "5.94.0"
6969
},
7070
"browserslist": {

packages/website/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
// This file is not used in compilation. It is here just for a nice editor experience.
3-
"extends": "@tsconfig/docusaurus/tsconfig.json",
3+
"extends": "@docusaurus/tsconfig",
44
"compilerOptions": {
55
"baseUrl": ".",
66
"skipLibCheck": true,

0 commit comments

Comments
 (0)