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') }) 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'))