Skip to content

Commit

Permalink
docs: fix docs section duplicated (vitest-dev#1241)
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz authored Feb 11, 2022
1 parent ef8684c commit 517acb1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/.vitepress/plugins/markdownTransform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ ${code}
.filter(i => i)
.map(i => `[${i![0]}](${i![1]})`).join(' • ')

const demoLink = `[source](${URL}/demo.vue){target="_blank" class="demo-source-link"}`
const demoHeadSection = `## Demo\n\n${demoLink}\n`
const sourceSection = `## Source\n\n${links}\n`
const ContributorsSection = `
## Contributors
Expand All @@ -106,8 +108,7 @@ ${code}
<script setup>
import Demo from \'./demo.vue\'
</script>
## Demo
<a href="${URL}/demo.vue" target="_blank" class="demo-source-link">source</a>
${demoHeadSection}
<DemoContainer><Demo/></DemoContainer>
`
: ''
Expand Down

0 comments on commit 517acb1

Please sign in to comment.