Skip to content

chore: upgrade docusaurus from 3.2.1 to 3.7.0 #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions babel.config.js

This file was deleted.

35 changes: 15 additions & 20 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

import {Options} from '@docusaurus/preset-classic';
import {irCode} from './src/themes/ir-code';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
import { irCode } from './src/themes/ir-code';
import type { Config } from '@docusaurus/types';
import type { Options, ThemeConfig } from '@docusaurus/preset-classic';
import sidebars from './sidebars';


const lightCodeTheme = irCode.light;
const darkCodeTheme = irCode.dark;

const navbarItems = Object.keys(sidebars).map((sidebarId):{
type:string,
sidebarId:string,
position:'left' | 'right',
label: string,
const navbarItems = Object.keys(sidebars).map((sidebarId): {
type: string;
sidebarId: string;
position: 'left' | 'right';
label: string;
} => {
return {
type: 'docSidebar',
Expand All @@ -25,10 +23,7 @@ const navbarItems = Object.keys(sidebars).map((sidebarId):{
};
});




const config:Config = {
const config: Config = {
title: 'Open Source at Infinite Red',
tagline: 'Tools to supercharge your React Native development!',
favicon: 'img/favicon.ico',
Expand All @@ -48,9 +43,9 @@ const config:Config = {
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',

// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace 'en' with 'zh-Hans'.
i18n: {
defaultLocale: 'en',
locales: ['en'],
Expand All @@ -63,7 +58,7 @@ const config:Config = {
presets: [
[
'classic',
({
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
routeBasePath: '/',
Expand All @@ -75,8 +70,8 @@ const config:Config = {
trackingID: 'G-H431N07LX7',
anonymizeIP: true,
},
}) satisfies Options,
] ,
} satisfies Options,
],
],

themeConfig:
Expand Down
39 changes: 14 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,20 @@
"postinstall": "node ./scripts/generate-slug.ts"
},
"dependencies": {
"@docusaurus/core": "3.2.1",
"@docusaurus/preset-classic": "3.2.1",
"@docusaurus/remark-plugin-npm2yarn": "3.2.1",
"@docusaurus/core": "3.7.0",
"@docusaurus/preset-classic": "3.7.0",
"@mdx-js/react": "^3.0.0",
"brfs": "^2.0.2",
"browserify-fs": "^1.0.0",
"buffer": "^6.0.3",
"clsx": "^1.2.1",
"https-browserify": "^1.0.0",
"os-browserify": "^0.3.0",
"path-browserify": "^1.0.1",
"prism-react-renderer": "^2.3.1",
"process": "^0.11.10",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"stream-browserify": "^3.0.0",
"stream-http": "^3.2.0",
"util": "^0.12.5"
"clsx": "^2.0.0",
"prism-react-renderer": "^2.3.0",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.1.1",
"@docusaurus/tsconfig": "^3.0.0",
"@docusaurus/types": "3.1.1",
"@types/react": "^18.2.29",
"typescript": "^5.2.2"
"@docusaurus/module-type-aliases": "3.7.0",
"@docusaurus/tsconfig": "3.7.0",
"@docusaurus/types": "3.7.0",
"@types/react": "^19.0.0",
"typescript": "~5.6.2"
},
"browserslist": {
"production": [
Expand All @@ -50,9 +39,9 @@
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
"last 3 chrome version",
"last 3 firefox version",
"last 5 safari version"
]
},
"engines": {
Expand Down
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"compilerOptions": {
"baseUrl": ".",
"jsx": "react",
"resolveJsonModule": true,
}
"resolveJsonModule": true
},
"exclude": [".docusaurus", "build"]
}
Loading