Skip to content

Commit

Permalink
docs: add comments for client config file path (close #1237)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Jul 11, 2023
1 parent 3ff1b06 commit bd2657e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/reference/default-theme/extending.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ export const childTheme = (options: DefaultThemeOptions): Theme => {
extends: defaultTheme(options),

// override layouts in child theme's client config file
// notice that you would build ts to js before publishing to npm,
// so this should be the path to the js file
clientConfigFile: path.resolve(__dirname, './client.js'),

// override component alias
Expand Down
1 change: 1 addition & 0 deletions docs/zh/reference/default-theme/extending.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export const childTheme = (options: DefaultThemeOptions): Theme => {
extends: defaultTheme(options),

// 在子主题的客户端配置文件中覆盖布局
// 注意,你在发布到 NPM 之前会将 TS 构建为 JS ,因此这里需要设置为 JS 文件的路径
clientConfigFile: path.resolve(__dirname, './client.js'),

// 覆盖组件别名
Expand Down

0 comments on commit bd2657e

Please sign in to comment.