Skip to content
Merged
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
8 changes: 5 additions & 3 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');

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

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'api-ts',
tagline: 'Type- and runtime- safe TypeScript APIs',
url: 'https://bitgo.github.io/api-ts/',
url: 'https://bitgo.github.io',
baseUrl: '/api-ts/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
Expand All @@ -36,7 +37,8 @@ const config = {
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
beforeDefaultRemarkPlugins: [[remarkCodeHike, { theme }]],
// Update to use a default theme instead of the missing nord theme
beforeDefaultRemarkPlugins: [[remarkCodeHike, { theme: 'github-dark' }]],
sidebarPath: require.resolve('./sidebars.js'),
// Remove this to remove the "edit this page" links.
editUrl: 'https://github.com/BitGo/api-ts/tree/master/website/',
Expand Down
Loading