fix search

This commit is contained in:
Philipp Kühn 2020-12-01 10:25:00 +01:00
parent 3e055c8a78
commit 612253ea4a
2 changed files with 11 additions and 2 deletions

View File

@ -2,11 +2,11 @@
<html ${htmlAttrs}>
<head>
${head}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@alpha" />
</head>
<body ${bodyAttrs}>
${app}
${scripts}
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@docsearch/js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@docsearch/js@alpha"></script>
</body>
</html>

View File

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