From 5975f7763203620945854f32346184db67199993 Mon Sep 17 00:00:00 2001 From: WRXinYue Date: Fri, 30 Aug 2024 11:59:23 +0800 Subject: [PATCH] fix(docs): docs build --- docs/.valaxy/typed-router.d.ts | 1 + docs/pages/guide/index.md | 0 packages/vite-plugin-tsdoc/index.ts | 4 ---- 3 files changed, 1 insertion(+), 4 deletions(-) create mode 100644 docs/pages/guide/index.md diff --git a/docs/.valaxy/typed-router.d.ts b/docs/.valaxy/typed-router.d.ts index 2684a774..948ada3e 100644 --- a/docs/.valaxy/typed-router.d.ts +++ b/docs/.valaxy/typed-router.d.ts @@ -105,6 +105,7 @@ declare module 'vue-router/auto-routes' { '/examples/': RouteRecordInfo<'/examples/', '/examples', Record, Record>, '/examples/config': RouteRecordInfo<'/examples/config', '/examples/config', Record, Record>, '/examples/gallery': RouteRecordInfo<'/examples/gallery', '/examples/gallery', Record, Record>, + '/guide/': RouteRecordInfo<'/guide/', '/guide', Record, Record>, '/guide/installation': RouteRecordInfo<'/guide/installation', '/guide/installation', Record, Record>, '/guide/update': RouteRecordInfo<'/guide/update', '/guide/update', Record, Record>, '/layouts/': RouteRecordInfo<'/layouts/', '/layouts', Record, Record>, diff --git a/docs/pages/guide/index.md b/docs/pages/guide/index.md new file mode 100644 index 00000000..e69de29b diff --git a/packages/vite-plugin-tsdoc/index.ts b/packages/vite-plugin-tsdoc/index.ts index db3a524b..409453fc 100644 --- a/packages/vite-plugin-tsdoc/index.ts +++ b/packages/vite-plugin-tsdoc/index.ts @@ -49,11 +49,7 @@ function resolveType(typeNode: ts.TypeNode, sourceFile: ts.SourceFile): Resolved } } else if (ts.isArrayTypeNode(typeNode) && !ignoredTypes.includes(typeNode.getText().slice(0, -2))) { - const elementTypeName = typeNode.getText().slice(0, -2) - console.log('elementTypeName', elementTypeName) - const typeName = typeNode.elementType.getText() - console.log('typeName', typeName) if (resolvedTypes.has(typeName)) { return {