Skip to content

Commit

Permalink
fix: fixed vuepress build
Browse files Browse the repository at this point in the history
  • Loading branch information
kouts committed Jul 18, 2022
1 parent 4dc896c commit a80f404
Show file tree
Hide file tree
Showing 5 changed files with 583 additions and 24 deletions.
17 changes: 17 additions & 0 deletions docs/.vuepress/client.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import Example1 from './components/Example1.vue'
import Intro from './components/Intro.vue'
import Modal from '@/Modal.vue'
import { defineClientConfig } from '@vuepress/client'
import './styles/styles.scss'

export default defineClientConfig({
enhance({ app, router, siteData }) {
app.component('Modal', Modal)
app.component('Example1', Example1)
app.component('Intro', Intro)
},
setup() {
// noop
},
rootComponents: []
})
12 changes: 0 additions & 12 deletions docs/.vuepress/clientAppEnhance.js

This file was deleted.

22 changes: 11 additions & 11 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
const path = require('path')
const VueExamplePlugin = require('vuepress-plugin-vue-example')
const { defaultTheme } = require('vuepress-webpack')
const { docsearchPlugin } = require('@vuepress/plugin-docsearch')

module.exports = {
plugins: [
VueExamplePlugin({
componentsPath: '/docs/.examples/'
}),
[
'@vuepress/docsearch',
{
apiKey: 'b1beebce60b696f3ab59d523bdc04b94',
indexName: 'vue-modal',
appId: 'G4DW29QPYK'
}
]
docsearchPlugin({
apiKey: 'b1beebce60b696f3ab59d523bdc04b94',
indexName: 'next-vue-dataset',
appId: 'G4DW29QPYK'
})
],
dest: 'public',
title: 'vue-modal',
description: 'A modal plugin for Vue 3',
themeConfig: {
theme: defaultTheme({
contributors: false,
repo: 'https://github.com/kouts/vue-modal/tree/next',
darkMode: false,
colorMode: 'light',
colorModeSwitch: false,
sidebar: [
{
link: '/',
Expand Down Expand Up @@ -70,7 +70,7 @@ module.exports = {
]
}
]
},
}),
head: [
['link', { rel: 'shortcut icon', href: '/favicons/favicon.ico' }],
['link', { rel: 'apple-touch-icon', sizes: '57x57', href: '/favicons/apple-icon-57x57.png' }],
Expand Down
Loading

0 comments on commit a80f404

Please sign in to comment.