Skip to content

Commit

Permalink
Merge pull request #65 from hcg1023/feature-docs-demo
Browse files Browse the repository at this point in the history
  • Loading branch information
hcg1023 authored Oct 30, 2023
2 parents d977ba2 + 831e411 commit c631509
Showing 1 changed file with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,20 @@ import { normalizePath } from 'vite'
const GIT_MAIN_BRANCH_DOCS_DIR =
'https://github.com/hcg1023/vue3-dnd/tree/main/packages/docs'

const AppVueFileName = `App.vue`
const AppVueFileTemplate = `<template>
<DndProvider :backend="HTML5Backend">
<Container></Container>
</DndProvider>
</template>
<script lang="ts" setup>
import Container from './index.ts'
import { DndProvider } from 'vue3-dnd'
import { HTML5Backend } from 'react-dnd-html5-backend'
</script>`


export const transformDemo = (md: MarkdownIt, srcDir: string) => {
const parser: RuleBlock = (state, startLine, endLine, silent) => {
const CH = '+'.charCodeAt(0)
Expand Down Expand Up @@ -81,7 +95,12 @@ export const transformDemo = (md: MarkdownIt, srcDir: string) => {
highlight: highlight(source, type),
},
}
}, {})
}, {} as Record<string, { type: string, raw: string, highlight: string }>)
fileInfos[AppVueFileName] = {
type: 'vue',
raw: AppVueFileTemplate,
highlight: highlight(AppVueFileTemplate, 'vue')
}
const basename = token.info
token.info = ''

Expand Down

1 comment on commit c631509

@vercel
Copy link

@vercel vercel bot commented on c631509 Oct 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vue3-dnd – ./

vue3-dnd-git-main-hcg1023.vercel.app
vue3-dnd.vercel.app
vue3-dnd-hcg1023.vercel.app

Please sign in to comment.