From f3ddca9d06963553451947fbd253c4950a2dc570 Mon Sep 17 00:00:00 2001 From: Taron Chatoyan Date: Mon, 13 May 2024 15:21:14 +0200 Subject: [PATCH] replaced the markdown with vue component --- components/docs/NavSideBar.vue | 13 +- components/home/Header.vue | 414 +++++++++++++------------- components/layout/PluginContainer.vue | 347 +++++++++++++++++++++ nuxt.config.ts | 5 +- pages/plugins/[...slug].vue | 2 +- server/api/plugins.js | 91 +++++- 6 files changed, 647 insertions(+), 225 deletions(-) create mode 100644 components/layout/PluginContainer.vue diff --git a/components/docs/NavSideBar.vue b/components/docs/NavSideBar.vue index b3fd3c6a7c..6261e6beba 100644 --- a/components/docs/NavSideBar.vue +++ b/components/docs/NavSideBar.vue @@ -45,22 +45,13 @@ diff --git a/components/layout/PluginContainer.vue b/components/layout/PluginContainer.vue new file mode 100644 index 0000000000..a3eca9fa82 --- /dev/null +++ b/components/layout/PluginContainer.vue @@ -0,0 +1,347 @@ + + + + \ No newline at end of file diff --git a/nuxt.config.ts b/nuxt.config.ts index dbb8377d68..f5dea855f2 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -131,7 +131,10 @@ export default defineNuxtConfig({ vite: { build: { rollupOptions: { - external: ['shiki/onig.wasm'], + external: [ + 'shiki/onig.wasm', + '@kestra-io/ui-libs' + ], } }, optimizeDeps: { diff --git a/pages/plugins/[...slug].vue b/pages/plugins/[...slug].vue index 50fdd80e65..db2917ea4b 100644 --- a/pages/plugins/[...slug].vue +++ b/pages/plugins/[...slug].vue @@ -3,7 +3,7 @@