add link to github to demo component
This commit is contained in:
@@ -20,6 +20,9 @@
|
|||||||
<prism :code="activeFile.content" :language="activeFile.highlight" :highlight="highlight" />
|
<prism :code="activeFile.content" :language="activeFile.highlight" :highlight="highlight" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="demo__link">
|
||||||
|
<a :href="githubUrl" target="_blank">Edit on GitHub</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -81,6 +84,10 @@ export default {
|
|||||||
activeFile() {
|
activeFile() {
|
||||||
return this.files[this.currentIndex]
|
return this.files[this.currentIndex]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
githubUrl() {
|
||||||
|
return `https://github.com/ueberdosis/tiptap-next/tree/main/docs/src/demos/${this.name}`
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|||||||
@@ -48,4 +48,8 @@
|
|||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__link {
|
||||||
|
padding: 1rem 1.5rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user