Skip to content

Commit

Permalink
fix synapse-interface breaking
Browse files Browse the repository at this point in the history
  • Loading branch information
trajan0x committed May 10, 2024
1 parent a6cedda commit b6a29a3
Show file tree
Hide file tree
Showing 5 changed files with 5,470 additions and 10,646 deletions.
17 changes: 16 additions & 1 deletion docs/bridge/docusaurus.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
import * as path from "path";

const config: Config = {
title: 'Synapse Bridge Docs',
Expand Down Expand Up @@ -142,7 +143,21 @@ const config: Config = {
},
}
},
]
],
// please see: https://github.com/facebook/docusaurus/issues/8091#issuecomment-1269112001 for an explanation.
() => ({
name: 'resolve-react',
configureWebpack() {
return {
resolve: {
alias: {
// assuming root node_modules is up from "./packages/<your-docusaurus>
react: path.resolve('../../node_modules/react'),
},
},
};
},
}),
],
};

Expand Down
16 changes: 11 additions & 5 deletions docs/bridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,21 @@
"typecheck": "tsc"
},
"dependencies": {
"@docusaurus/core": "3.2.1",
"@docusaurus/preset-classic": "3.2.1",
"@docusaurus/preset-classic": "3.1.1",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
"docusaurus-plugin-openapi-docs": "^3.0.0",
"docusaurus-theme-openapi-docs": "^3.0.0",
"docusaurus-plugin-openapi-docs": "3.0.0-beta.10",
"docusaurus-theme-openapi-docs": "3.0.0-beta.10",
"prism-react-renderer": "^2.3.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
"react-dom": "^18.0.0",
"@docusaurus/core": "3.1.1",
"@docusaurus/theme-common": "3.1.1",
"@docusaurus/plugin-content-docs": "3.1.1",
"@docusaurus/utils-common": "3.1.1",
"@docusaurus/logger": "3.1.1",
"@docusaurus/utils-validation": "3.1.1",
"@docusaurus/utils": "3.1.1"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.2.1",
Expand Down
Loading

0 comments on commit b6a29a3

Please sign in to comment.