Skip to content

Commit ba3964b

Browse files
Merge pull request #1011 from BitGo/docu_version
feat: upgrade docusaurus version to 3.7
2 parents 28eebfa + 9bbd276 commit ba3964b

File tree

3 files changed

+16439
-20875
lines changed

3 files changed

+16439
-20875
lines changed

website/docusaurus.config.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
const lightCodeTheme = require('prism-react-renderer/themes/github');
55
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
66

7-
const theme = require('shiki/themes/nord.json');
7+
// Remove the shiki theme import that's causing the error
8+
// const theme = require('shiki/themes/nord.json');
89
const { remarkCodeHike } = require('@code-hike/mdx');
910

1011
/** @type {import('@docusaurus/types').Config} */
1112
const config = {
1213
title: 'api-ts',
1314
tagline: 'Type- and runtime- safe TypeScript APIs',
14-
url: 'https://bitgo.github.io/api-ts/',
15+
url: 'https://bitgo.github.io',
1516
baseUrl: '/api-ts/',
1617
onBrokenLinks: 'throw',
1718
onBrokenMarkdownLinks: 'warn',
@@ -36,7 +37,8 @@ const config = {
3637
/** @type {import('@docusaurus/preset-classic').Options} */
3738
({
3839
docs: {
39-
beforeDefaultRemarkPlugins: [[remarkCodeHike, { theme }]],
40+
// Update to use a default theme instead of the missing nord theme
41+
beforeDefaultRemarkPlugins: [[remarkCodeHike, { theme: 'github-dark' }]],
4042
sidebarPath: require.resolve('./sidebars.js'),
4143
// Remove this to remove the "edit this page" links.
4244
editUrl: 'https://github.com/BitGo/api-ts/tree/master/website/',

0 commit comments

Comments
 (0)