Skip to content

Commit f0d3c2d

Browse files
authored
docs(builder): search result should not contain doc fragments (#3759)
1 parent 9503a5e commit f0d3c2d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

packages/document/builder-doc/modern.config.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,13 @@ export default defineConfig({
174174
experimentalMdxRs: true,
175175
},
176176
route: {
177-
exclude: ['**/config/**'],
177+
// exclude document fragments from routes
178+
exclude: [
179+
'**/zh/config/**',
180+
'**/en/config/**',
181+
'**/zh/shared/**',
182+
'**/en/shared/**',
183+
],
178184
},
179185
themeConfig: {
180186
footer: {

packages/document/main-doc/modern.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ export default defineConfig({
130130
],
131131
},
132132
route: {
133-
exclude: ['scripts/**', '**/components/**'],
133+
// exclude document fragments from routes
134+
exclude: ['scripts/**', '**/zh/components/**', '**/en/components/**'],
134135
},
135136
builderConfig: {
136137
output: {

0 commit comments

Comments
 (0)