Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
wenerme committed Apr 11, 2024
1 parent 3741c45 commit f144349
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions notes/dev/design/README.md
Expand Up @@ -10,6 +10,8 @@ title: Design

:::

- [数据库 Schema 设计](./design-schema.md) - 数据库设计基本原则
- [ERP 设计](./design-erp.md) - ERP 建模
- Architecture
- [事件驱动](./design-event-driven.md)
- [数据驱动](./design-data-driven.md)
Expand Down
12 changes: 6 additions & 6 deletions site/docusaurus.config.js
Expand Up @@ -9,7 +9,7 @@ import math from 'remark-math';
import katex from 'rehype-katex';
import deflist from './dist/plugins/deflist';
import { writeFileSync } from 'node:fs';
import rehypeExtendedTable from 'rehype-extended-table';
import { rehypeExtendedTable } from 'rehype-extended-table';

// https://docusaurus.io/docs/api/docusaurus-config
// https://github.com/facebook/docusaurus/blob/main/website/docusaurus.config.js
Expand Down Expand Up @@ -99,7 +99,7 @@ const config = {
remarkPlugins: [math],
rehypePlugins: [
[rehypeExtendedTable, {}],
[(katex, { strict: (code) => (code === 'unicodeTextInMathMode' ? 'ignore' : 'error') })],
[katex, { strict: (code) => (code === 'unicodeTextInMathMode' ? 'ignore' : 'error') }],
],
},
theme: {
Expand Down Expand Up @@ -245,10 +245,10 @@ const config = {
// - <a class='footer__link-item' href='https://beian.miit.gov.cn/'>蜀ICP备20010081号-1</a>
},
},
// i18n: {
// defaultLocale: 'zh',
// locales: ['zh', 'en'],
// },
i18n: {
defaultLocale: 'zh',
locales: ['zh', 'en'],
},
webpack: {
jsLoader: (isServer) => ({
// 默认使用 @docusaurus/mdx-loader
Expand Down

0 comments on commit f144349

Please sign in to comment.