Skip to content

Commit

Permalink
chore: update examples with docusaurus 3.6 (#10642)
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber authored Nov 4, 2024
1 parent 7e494fa commit ed35c16
Show file tree
Hide file tree
Showing 5 changed files with 1,658 additions and 1,543 deletions.
3 changes: 0 additions & 3 deletions babel.config.js

This file was deleted.

2 changes: 2 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

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} */
const config = {
title: 'My Site',
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
"dev": "docusaurus start"
},
"dependencies": {
"@docusaurus/core": "3.5.2",
"@docusaurus/preset-classic": "3.5.2",
"@docusaurus/core": "3.6.0",
"@docusaurus/preset-classic": "3.6.0",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
"prism-react-renderer": "^2.3.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.5.2",
"@docusaurus/types": "3.5.2"
"@docusaurus/module-type-aliases": "3.6.0",
"@docusaurus/types": "3.6.0"
},
"browserslist": {
"production": [
Expand Down
10 changes: 6 additions & 4 deletions sidebars.js
Original file line number Diff line number Diff line change
@@ -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:
- create an ordered group of docs
Expand All @@ -7,11 +11,9 @@
The sidebars can be generated from the filesystem, or explicitly defined here.
Create as many sidebars as you want.
*/
// @ts-check

/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
@type {import('@docusaurus/plugin-content-docs').SidebarsConfig}
*/
const sidebars = {
// By default, Docusaurus generates a sidebar from the docs folder structure
tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
Expand Down
Loading

0 comments on commit ed35c16

Please sign in to comment.