Skip to content

Commit 3369e9a

Browse files
committed
add links for icon and color types in the docs
1 parent 1425125 commit 3369e9a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

examples/official-site/documentation.sql

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ select
7070
name as title,
7171
(CASE WHEN optional THEN '' ELSE 'REQUIRED. ' END) || description as description,
7272
type as footer,
73+
CASE type
74+
WHEN 'COLOR' THEN 'https://tabler.io/docs/base/colors'
75+
WHEN 'ICON' THEN 'https://tabler-icons.io/'
76+
END AS footer_link,
7377
CASE WHEN optional THEN 'lime' ELSE 'azure' END as color
7478
from parameter where component = $component AND top_level
7579
ORDER BY optional, name;
@@ -82,6 +86,10 @@ select
8286
name as title,
8387
(CASE WHEN optional THEN '' ELSE 'REQUIRED. ' END) || description as description,
8488
type as footer,
89+
CASE type
90+
WHEN 'COLOR' THEN 'https://tabler.io/docs/base/colors'
91+
WHEN 'ICON' THEN 'https://tabler-icons.io/'
92+
END AS footer_link,
8593
CASE WHEN optional THEN 'lime' ELSE 'azure' END as color
8694
from parameter where component = $component AND NOT top_level
8795
ORDER BY optional, name;

0 commit comments

Comments
 (0)