chore(docs): Replace a-tags with router-links

This commit is contained in:
Braks
2022-04-04 21:42:48 +02:00
parent 5b98f3ccd8
commit 09e636c278
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ onPaneReady((i) => emit('pane', i))
Vue Flow includes a MiniMap, Controls and Background, as well as a ton of utilities and a supercharged composable to
control the internal state outside the Vue Flow component.
</p>
<a class="button max-w-max" href="/docs"> Documentation </a>
<router-link class="button max-w-max" to="/guide/"> Documentation </router-link>
</div>
</div>
</template>
+1 -1
View File
@@ -102,7 +102,7 @@ onPaneReady((i) => emit('pane', i))
Vue Flow comes with seamless zooming & panning, different edge and node types, single and multi-selection, controls,
several event handlers and more.
</p>
<a class="button max-w-max" href="/docs"> Documentation </a>
<router-link class="button max-w-max" to="/guide/"> Documentation </router-link>
</div>
</div>
<div
+2 -2
View File
@@ -128,13 +128,13 @@ onPaneReady(({ fitView }) => {
</template>
<template v-else-if="props.id === 'documentation'">
<div class="flex">
<a class="link group bg-orange-500" href="/docs"> Read The Documentation </a>
<router-link class="link group bg-orange-500" to="/guide/"> Read The Documentation </router-link>
</div>
<Handle type="target" :position="Position.Top" />
</template>
<template v-else-if="props.id === 'examples'">
<div class="flex">
<a class="link group bg-purple-500" href="/examples"> Check The Examples </a>
<router-link class="link group bg-purple-500" to="/examples/"> Check The Examples </router-link>
</div>
<Handle type="target" :position="Position.Top" />
<Handle class="block md:hidden" type="source" :position="Position.Bottom" />
+1 -1
View File
@@ -60,7 +60,7 @@ onPaneReady((i) => emit('pane', i))
<div class="flex flex-col gap-2 items-center md:items-start">
<h1>Nested- & Subflows</h1>
<p>Vue Flow comes with built-in support for nested nodes and nested flows.</p>
<a class="button max-w-max" href="/docs"> Documentation </a>
<router-link class="button max-w-max" to="/guide/"> Documentation </router-link>
</div>
</div>
<div
+1 -1
View File
@@ -106,7 +106,7 @@ const nodeColor: MiniMapNodeFunc = (node) => {
You can create your own node and edge types or just pass a custom style. Implement custom UIs inside your nodes and add
functionality to your edges.
</p>
<a class="button max-w-max" href="/docs">Documentation</a>
<router-link class="button max-w-max" to="/guide/">Documentation</router-link>
</div>
</div>
</template>