move docs to own folder

This commit is contained in:
Philipp Kühn
2020-04-17 12:51:49 +02:00
parent 4574b74864
commit 3c0727fd59
32 changed files with 360 additions and 1148 deletions

17
docs/src/main.js Normal file
View File

@@ -0,0 +1,17 @@
import Prism from 'prismjs'
import 'prismjs/themes/prism-coy.css'
import 'prismjs/components/prism-jsx.js'
import DefaultLayout from '~/layouts/Default.vue'
import Demo from '~/components/Demo'
import Tab from '~/components/Tab'
import ReactRenderer from '~/components/ReactRenderer'
export default function (Vue, { router, head, isClient }) {
Vue.component('Layout', DefaultLayout)
Vue.component('Demo', Demo)
Vue.component('Tab', Tab)
Vue.component('ReactRenderer', ReactRenderer)
Vue.filter('highlight', (code, lang = 'javascript') => {
return Prism.highlight(code, Prism.languages[lang], lang)
})
}