From 4753688d6040589d2d6cd4ac066b04ba2f7df046 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Thu, 13 Aug 2020 17:27:34 +0200 Subject: [PATCH] add algolia search --- docs/src/index.html | 12 ++++++++++++ docs/src/layouts/App/index.vue | 19 +++++++++++++++++-- 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 docs/src/index.html diff --git a/docs/src/index.html b/docs/src/index.html new file mode 100644 index 00000000..d5bbcd0b --- /dev/null +++ b/docs/src/index.html @@ -0,0 +1,12 @@ + + + + ${head} + + + + ${app} + ${scripts} + + + \ No newline at end of file diff --git a/docs/src/layouts/App/index.vue b/docs/src/layouts/App/index.vue index ba628b6f..6e6bc3f4 100644 --- a/docs/src/layouts/App/index.vue +++ b/docs/src/layouts/App/index.vue @@ -6,7 +6,7 @@ {{ $static.metadata.siteName }}
- Search | + Sponsor @@ -109,7 +109,22 @@ export default { return `https://github.com/ueberdosis/tiptap-next/blob/main/${path}` }, - } + }, + + methods: { + initSearch() { + docsearch({ + apiKey: '1abe7fb0f0dac150d0e963d2eda930fe', + indexName: 'ueberdosis_tiptap', + inputSelector: '.search', + debug: false, + }) + } + }, + + mounted() { + this.initSearch() + }, }