2
0

default.html 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. {% assign pageSection = "" %}
  7. {% if page.url contains "/ui/" %}
  8. {% assign pageSection = "UI" %}
  9. {% elsif page.url contains "/icons/" %}
  10. {% assign pageSection = "Icons" %}
  11. {% elsif page.url contains "/illustrations/" %}
  12. {% assign pageSection = "Illustrations" %}
  13. {% elsif page.url contains "/emails/" %}
  14. {% assign pageSection = "Emails" %}
  15. {% endif %}
  16. {% assign metaTitle = title %}
  17. {% if seoTitle %}
  18. {% assign metaTitle = seoTitle %}
  19. {% endif %}
  20. {% assign metaDescription = description %}
  21. {% if seoDescription %}
  22. {% assign metaDescription = seoDescription %}
  23. {% endif %}
  24. {% assign siteName = "Tabler Documentation" %}
  25. {% if pageSection != "" %}
  26. {% assign siteName = "Tabler " | append: pageSection | append: " Documentation" %}
  27. {% endif %}
  28. <title>{{ metaTitle }} | {{ siteName }}</title>
  29. {% if metaDescription %}<meta name="description" content="{{ metaDescription }}">{% endif %}
  30. <link rel="canonical" href="{{ page.url | absolute_url }}">
  31. <!-- Open Graph / Social Media Meta Tags -->
  32. <meta property="og:type" content="website">
  33. <meta property="og:title" content="{{ metaTitle }}">
  34. {% if metaDescription %}<meta property="og:description" content="{{ metaDescription }}">{% endif %}
  35. <meta property="og:site_name" content="{{ siteName }}">
  36. <!-- Twitter Card data -->
  37. <meta name="twitter:card" content="summary">
  38. <meta name="twitter:title" content="{{ metaTitle }}">
  39. {% if metaDescription %}<meta name="twitter:description" content="{{ metaDescription }}">{% endif %}
  40. <script defer data-api="/stats/event" data-domain="docs.tabler.io" src="/stats/js/script.js"></script>
  41. <link rel="stylesheet" href="/dist/css/tabler{% if environment != 'development' %}.min{% endif %}.css{% if environment != 'development' %}?{{ 'now' | date: '%s' }}{% endif %}" />
  42. {% for plugin in site.cssPlugins %}
  43. <link
  44. href="/dist/css/tabler-{{ plugin }}{% if environment != 'development' %}.min{% endif %}.css{% if environment != 'development' %}?{{ 'now' | date: '%s' }}{% endif %}"
  45. rel="stylesheet" />
  46. {% endfor %}
  47. {% if docs-libs -%}
  48. {% for lib in libs.css -%}
  49. {% if docs-libs contains lib[0] -%}
  50. {% for file in lib[1] -%}
  51. <link
  52. href="{% if file contains 'http://' or file contains 'https://' %}{{ file }}{% else %}{{ page | relative }}/libs/{% if environment != 'development' %}{{ file | replace: '@', '' }}{% else %}{{ file }}{% endif %}{% if environment != 'development' %}?{{ 'now' | date: '%s' }}{% endif %}{% endif %}"
  53. rel="stylesheet" />
  54. {% endfor -%}
  55. {% endif -%}
  56. {% endfor -%}
  57. {% endif %}
  58. <style>@import url('https://rsms.me/inter/inter.css');</style>
  59. <link rel="stylesheet" href="/css/docs{% if environment != 'development' %}.min{% endif %}.css" />
  60. </head>
  61. <body class="d-flex flex-column" style="background: var(--tblr-bg-surface)">
  62. <script src="/dist/js/tabler-theme{% if environment != 'development' %}.min{% endif %}.js"></script>
  63. {% include "docs/navbar.html" %}
  64. <div class="flex-fill">
  65. <div class="container">
  66. <div class="row g-0">
  67. <div class="col-docs d-none d-lg-block border-end">
  68. <div class="py-4">
  69. <div class="space-y space-y-5">
  70. <div class="nav nav-vertical">
  71. {% for link in docs-links %}
  72. <a href="{{ link.url }}" class="nav-link" target="_blank">
  73. <span class="border me-2 rounded p-1">{% include "ui/icon.html" icon=link.icon %}</span>
  74. {{ link.title }}
  75. </a>
  76. {% endfor %}
  77. </div>
  78. <div class="flex-fill">
  79. {% include "docs/menu.html" %}
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. <div class="col bg-docs-gradient">
  85. <div class="py-lg-5 ps-lg-5">
  86. <div class="py-6 ps-lg-6 p-xxl-6">
  87. <div class="markdown" data-bs-spy="scroll" data-bs-target="#toc" data-bs-root-margin="50px 0px -0%" data-bs-smooth-scroll="true" tabindex="0">
  88. <h1>
  89. {{ title }}
  90. </h1>
  91. <p class="text-secondary fs-3 lh-3">{{ summary }}</p>
  92. {{ content | headings-id }}
  93. {% include "docs/pagination.html" %}
  94. <div class="mt-7">
  95. <div>
  96. <a href="{{ site.githubUrl }}/tree/dev/docs/{{ page.inputPath }}" class="link-primary" target="_blank">{% include
  97. "ui/icon.html" icon="edit" class="icon-inline" %} Edit this page on GitHub</a>
  98. </div>
  99. <div class="mt-5">
  100. <div class="row">
  101. <div class="col text-secondary">
  102. © {% year %} Tabler. All rights reserved.
  103. </div>
  104. <div class="col text-end">
  105. <a href="{{ site.githubUrl }}" class="link-secondary" target="_blank">{% include "ui/icon.html"
  106. icon="brand-github" %}</a>
  107. <a href="{{ site.githubSponsorsUrl }}" class="link-secondary" target="_blank">{% include "ui/icon.html"
  108. icon="heart" %}</a>
  109. <a href="{{ site.opencollectiveUrl }}" class="link-secondary" target="_blank">{% include "ui/icon.html"
  110. icon="hearts" %}</a>
  111. <a href="{{ site.xUrl }}" class="link-secondary" target="_blank">{% include "ui/icon.html" icon="brand-x"
  112. %}</a>
  113. <a href="{{ site.linkedinUrl }}" class="link-secondary" target="_blank">{% include "ui/icon.html"
  114. icon="brand-linkedin" %}</a>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. </div>
  121. </div>
  122. </div>
  123. <div class="col-2 d-none d-xxl-block">
  124. <div class="py-6 sticky-top">
  125. {% include "docs/toc.html" %}
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. </div>
  131. {% for lib in libs -%}
  132. {% if docs-libs contains lib[0] or libs.global-libs contains lib[0] or lib[0] == "clipboard" -%}
  133. {% for file in lib[1].js -%}
  134. <script
  135. src="{% if file contains 'http://' or file contains 'https://' %}{{ file | replace: 'GOOGLE_MAPS_KEY', google-maps-key }}{% else %}/dist/libs/{{ lib[1].npm }}/{% if environment != 'development' %}{{ file | replace: '@', '' }}{% else %}{{ file }}{% endif %}{% if environment != 'development' %}?{{ 'now' | date: '%s' }}{% endif %}{% endif %}"
  136. ></script>
  137. {% endfor -%}
  138. {% endif -%}
  139. {% endfor -%}
  140. <script>
  141. document.addEventListener('DOMContentLoaded', function () {
  142. const elements = document.querySelectorAll('[data-clipboard-text]');
  143. elements.forEach(function (element) {
  144. const clipboard = new ClipboardJS(element, {
  145. text: function (trigger) {
  146. return element.getAttribute('data-clipboard-text');
  147. }
  148. });
  149. clipboard.on('success', function (e) {
  150. e.clearSelection();
  151. e.trigger.classList.add('btn-success');
  152. e.trigger.classList.remove('btn-dark');
  153. e.trigger.children[0].classList.add('d-none');
  154. e.trigger.children[1].classList.remove('d-none');
  155. setTimeout(function () {
  156. e.trigger.classList.remove('btn-success');
  157. e.trigger.classList.add('btn-dark');
  158. e.trigger.children[0].classList.remove('d-none');
  159. e.trigger.children[1].classList.add('d-none');
  160. }, 2000);
  161. });
  162. clipboard.on('error', function (e) {
  163. console.error('Error copying text: ', e);
  164. });
  165. });
  166. })
  167. </script>
  168. <script src="/dist/js/tabler{% if environment != 'development' %}.min{% endif %}.js"></script>
  169. <script src="/js/docs{% if environment != 'development' %}.min{% endif %}.js" defer></script>
  170. </body>
  171. </html>