File tree Expand file tree Collapse file tree 3 files changed +679
-298
lines changed
Expand file tree Collapse file tree 3 files changed +679
-298
lines changed Original file line number Diff line number Diff line change 66 */
77
88import { fbContent } from 'docusaurus-plugin-internaldocs-fb/internal' ;
9- const lightCodeTheme = require ( 'prism-react-renderer/themes/github' ) ;
10- const darkCodeTheme = require ( 'prism-react-renderer/themes/dracula' ) ;
9+ import { themes } from 'prism-react-renderer' ;
1110
1211// With JSDoc @type annotations, IDEs can provide config autocompletion
1312/** @type {import('@docusaurus/types').DocusaurusConfig } */
@@ -77,8 +76,8 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
7776 } ,
7877 prism : {
7978 additionalLanguages : [ 'swift' ] ,
80- theme : lightCodeTheme ,
81- darkTheme : darkCodeTheme ,
79+ theme : themes . github ,
80+ darkTheme : themes . darcula ,
8281 } ,
8382 } ) ,
8483} ) ;
Original file line number Diff line number Diff line change 1515 "write-heading-ids" : " docusaurus write-heading-ids"
1616 },
1717 "dependencies" : {
18- "@babel/helper-create-class-features-plugin" : " ^7.26.10 " ,
19- "@babel/preset-env" : " ^7.26.10 " ,
18+ "@babel/helper-create-class-features-plugin" : " ^7.28.0 " ,
19+ "@babel/preset-env" : " ^7.28.0 " ,
2020 "@docusaurus/plugin-google-analytics" : " ^3.9.2" ,
2121 "@docusaurus/preset-classic" : " ^3.9.2" ,
22- "@mdx-js/react" : " ^3.1.0 " ,
22+ "@mdx-js/react" : " ^3.1.1 " ,
2323 "classnames" : " ^2.5.1" ,
24- "clsx" : " ^1.1.1 " ,
25- "docusaurus-plugin-internaldocs-fb" : " 1.19.1 " ,
26- "loader-utils" : " 3.2 .1" ,
27- "prism-react-renderer" : " ^1 .3.3 " ,
28- "react" : " ^18.0 .0" ,
29- "react-dom" : " ^18.0 .0"
24+ "clsx" : " ^2.0.0 " ,
25+ "docusaurus-plugin-internaldocs-fb" : " 1.19.2 " ,
26+ "loader-utils" : " 3.3 .1" ,
27+ "prism-react-renderer" : " ^2 .3.0 " ,
28+ "react" : " ^18.2 .0" ,
29+ "react-dom" : " ^18.2 .0"
3030 },
3131 "browserslist" : {
3232 "production" : [
4646 "yarn" : " ^1.5"
4747 },
4848 "devDependencies" : {
49- "yarn-audit-fix" : " ^9.3.10 "
49+ "yarn-audit-fix" : " ^10.0.5 "
5050 }
5151}
You can’t perform that action at this time.
0 commit comments