mirror of
https://github.com/gkd-kit/docs.git
synced 2024-11-16 17:32:21 +08:00
perf: hide search api props md
This commit is contained in:
parent
610ac5299e
commit
1a734e17ea
|
@ -59,6 +59,19 @@ export default defineConfig({
|
|||
},
|
||||
search: {
|
||||
provider: 'local',
|
||||
options: {
|
||||
_render(src, env, md) {
|
||||
const html = md.render(src, env);
|
||||
if (env.frontmatter?.search === false) return '';
|
||||
if (
|
||||
env.relativePath.startsWith('api/interfaces/') &&
|
||||
env.relativePath.endsWith('Props.md')
|
||||
) {
|
||||
return '';
|
||||
}
|
||||
return html;
|
||||
},
|
||||
},
|
||||
},
|
||||
socialLinks: [{ icon: 'github', link: 'https://github.com/gkd-kit' }],
|
||||
footer: {
|
||||
|
|
Loading…
Reference in New Issue
Block a user