Skip to content

Commit 2b17606

Browse files
authored
Update docusaurus.config.js - fix typo
1 parent b0e9902 commit 2b17606

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎docusaurus.config.js‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ const config = {
2525
future: {
2626
v4: true, // Improve compatibility with the upcoming Docusaurus v4
2727
},
28+
29+
// Enable Mermaid diagrams in markdown (```mermaid code blocks)
2830
markdown: {
2931
mermaid: true,
3032
},
3133
themes: ['@docusaurus/theme-mermaid'],
32-
themeConfig.mermaid.theme: { light: 'neutral', dark: 'dark' },
3334

3435
// Set the production url of your site here
3536
// Set the /<baseUrl>/ pathname under which your site is served
@@ -59,7 +60,7 @@ const config = {
5960
({
6061
docs: {
6162
path: CURRICULUM_PATH,
62-
routeBasePath: '/lessons',
63+
routeBasePath: '/lessons',
6364
sidebarPath: require.resolve('./sidebars.js'),
6465
admonitions: {
6566
keywords: ['explore'],
@@ -125,6 +126,10 @@ const config = {
125126
colorMode: {
126127
respectPrefersColorScheme: true,
127128
},
129+
// Mermaid diagram theme follows the site's light/dark mode
130+
mermaid: {
131+
theme: { light: 'neutral', dark: 'dark' },
132+
},
128133
navbar: {
129134
title: 'The Python Ledger',
130135
logo: {

0 commit comments

Comments
 (0)