1
0
mirror of https://github.com/tabler/tabler.git synced 2026-06-17 12:50:03 +04:00

feat: add 'Preview' link to global documentation navigation

This commit is contained in:
codecalm
2025-04-21 20:39:04 +02:00
parent a6c24bb44f
commit 0f335cda27
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -267,6 +267,7 @@ export default function (eleventyConfig) {
eleventyConfig.addGlobalData("docs-links", [
{ title: 'Website', url: 'https://tabler.io', icon: 'world' },
{ title: 'Preview', url: 'https://preview.tabler.io', icon: 'layout-dashboard' },
{ title: 'Support', url: 'https://tabler.io/support', icon: 'headset' },
]);
+2 -2
View File
@@ -40,8 +40,8 @@
<div class="row g-0">
<div class="col-docs d-none d-lg-block border-end">
<div class="py-4">
<div class="space-y">
<div class="nav nav-vertical nav-pills">
<div class="space-y space-y-5">
<div class="nav nav-vertical">
{% for link in docs-links %}
<a href="{{ link.url }}" class="nav-link" target="_blank">
<span class="border me-2 rounded p-1">{% include "ui/icon.html" icon=link.icon %}</span>