From 3e055c8a7801733dc330542b97ded10cc40fc7d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Tue, 1 Dec 2020 09:54:39 +0100 Subject: [PATCH 1/2] typo --- docs/src/demos/Extensions/Typography/index.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/demos/Extensions/Typography/index.spec.js b/docs/src/demos/Extensions/Typography/index.spec.js index 880d5794..e5484ed3 100644 --- a/docs/src/demos/Extensions/Typography/index.spec.js +++ b/docs/src/demos/Extensions/Typography/index.spec.js @@ -71,7 +71,7 @@ context('/api/extensions/typography', () => { it('should make a one half', () => { cy.get('.ProseMirror') - .type('1/2 oneHalfw') + .type('1/2 oneHalf') .should('contain', '½ oneHalf') }) From 612253ea4a13d34f86ca4264aafea6c0af049d4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Tue, 1 Dec 2020 10:25:00 +0100 Subject: [PATCH 2/2] fix search --- docs/src/index.html | 4 ++-- docs/src/main.js | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/src/index.html b/docs/src/index.html index 8db2b0fc..0aff2f7b 100644 --- a/docs/src/index.html +++ b/docs/src/index.html @@ -2,11 +2,11 @@ ${head} - + ${app} ${scripts} - + diff --git a/docs/src/main.js b/docs/src/main.js index 038e8abe..9c58ff66 100644 --- a/docs/src/main.js +++ b/docs/src/main.js @@ -10,6 +10,15 @@ Prism.manual = true export default function (Vue, { head }) { head.htmlAttrs = { 'data-theme': 'dark' } + // fix docsearch + if (!window.process) { + window.process = { + env: { + NODE_ENV: 'production', + }, + } + } + Vue.use(PortalVue) Vue.component('Layout', App) Vue.component('Demo', () => import(/* webpackChunkName: "demo" */ '~/components/Demo'))