From 4cc319981fc850fc8171371adac042336cdeb691 Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Fri, 1 Apr 2022 00:21:31 +0200 Subject: [PATCH] feat(docs): add docsearch plugin --- docs/components/home/Home.vue | 19 ++++++++++++++----- docs/src/.vuepress/config.ts | 14 ++++++++++++-- 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/docs/components/home/Home.vue b/docs/components/home/Home.vue index 96ada40a..4656a4f0 100644 --- a/docs/components/home/Home.vue +++ b/docs/components/home/Home.vue @@ -8,7 +8,7 @@ const breakpoints = useBreakpoints(breakpointsTailwind) const { dimensions, instance, onPaneReady, getNodes, getNode } = useVueFlow({ nodes: [ - { id: 'intro', type: 'box', position: { x: 0, y: 0 }, draggable: true }, + { id: 'intro', type: 'box', position: { x: 0, y: 0 } }, { id: 'examples', type: 'box', position: { x: -50, y: 400 } }, { id: 'documentation', type: 'box', position: { x: 300, y: 400 } }, ], @@ -38,7 +38,7 @@ const { dimensions, instance, onPaneReady, getNodes, getNode } = useVueFlow({ zoomOnScroll: false, }) -onPaneReady(async ({ fitView }) => { +onPaneReady(({ fitView }) => { fitView({ nodes: ['intro', 'examples', 'documentation'], duration: 1500, @@ -59,7 +59,7 @@ onPaneReady(async ({ fitView }) => {