docs: enable linkGroups to have links, too
This commit is contained in:
4
docs/src/docPages/community.md
Normal file
4
docs/src/docPages/community.md
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Community
|
||||||
|
* GitHub https://github.com/ueberdosis/tiptap-next
|
||||||
|
* Discord https://discord.gg/WtJ49jGshW
|
||||||
|
* Twitter https://twitter.com/tiptap_editor
|
||||||
@@ -57,6 +57,15 @@
|
|||||||
<portal :to="sidebarPortal" v-if="showSidebar">
|
<portal :to="sidebarPortal" v-if="showSidebar">
|
||||||
<nav class="app__sidebar-menu">
|
<nav class="app__sidebar-menu">
|
||||||
<div class="app__link-group" v-for="(linkGroup, i) in linkGroups" :key="i">
|
<div class="app__link-group" v-for="(linkGroup, i) in linkGroups" :key="i">
|
||||||
|
<template v-if="linkGroup.link && !linkGroup.items">
|
||||||
|
<g-link
|
||||||
|
class="app__link-group__link"
|
||||||
|
:to="linkGroup.redirect || linkGroup.link"
|
||||||
|
>
|
||||||
|
{{ linkGroup.title }}
|
||||||
|
</g-link>
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
<div class="app__link-group-title">
|
<div class="app__link-group-title">
|
||||||
{{ linkGroup.title }}
|
{{ linkGroup.title }}
|
||||||
</div>
|
</div>
|
||||||
@@ -93,6 +102,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
</portal>
|
</portal>
|
||||||
|
|||||||
@@ -1,3 +1,13 @@
|
|||||||
|
# - title: Documentation
|
||||||
|
# link: introduction
|
||||||
|
# - title: Examples
|
||||||
|
# link: /examples
|
||||||
|
# redirect: /examples/default
|
||||||
|
# - title: Community
|
||||||
|
# link: community
|
||||||
|
# - title: Sponsor
|
||||||
|
# link: https://github.com/ueberdosis/sponsor
|
||||||
|
|
||||||
- title: Overview
|
- title: Overview
|
||||||
items:
|
items:
|
||||||
- title: Installation
|
- title: Installation
|
||||||
|
|||||||
Reference in New Issue
Block a user