From 3768b245f2abcecd7ddd74bfb9391a56e67a61f7 Mon Sep 17 00:00:00 2001 From: Ayu Date: Wed, 3 Aug 2022 14:50:36 +0300 Subject: [PATCH] docs: switch unpkg to jsdelivr (#1165) --- README.md | 4 ++-- demo/docs/download.html | 14 +++++++------- demo/docs/flags.html | 2 +- demo/docs/payments.html | 2 +- src/pages/_docs/download.md | 10 +++++----- src/pages/_includes/docs/plugin.html | 2 +- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index c8062658..ac310360 100644 --- a/README.md +++ b/README.md @@ -130,13 +130,13 @@ All files included in `@tabler/core` npm package are available over a CDN. #### Javascript ```html - + ``` #### Styles ```html - + ``` ## Feature requests diff --git a/demo/docs/download.html b/demo/docs/download.html index 5e28b379..4cea2655 100644 --- a/demo/docs/download.html +++ b/demo/docs/download.html @@ -838,21 +838,21 @@

Download Tabler to get the compiled CSS and JavaScript, source code, or include it with your favorite package managers like npm, yarn and more.

-

CDN via unpkg

-

All files included in @tabler/core npm package are available over a unpkg CDN. Use it to deliver cached version of Tabler’s compiled CSS and JS to your project.

+

CDN via jsDelivr

+

All files included in @tabler/core npm package are available over a jsDelivr CDN. Use it to deliver cached version of Tabler’s compiled CSS and JS to your project.

-
<script src="https://unpkg.com/@tabler/core@1.0.0-beta10/dist/js/tabler.min.js"></script>
-<link rel="stylesheet" href="https://unpkg.com/@tabler/core@1.0.0-beta10/dist/css/tabler.min.css">
+                          
<script src="https://cdn.jsdelivr.net/npm/@tabler/core@1.0.0-beta10/dist/js/tabler.min.js"></script>
+<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/core@1.0.0-beta10/dist/css/tabler.min.css">
 

You can also include additional Tabler plugins:

-
<link rel="stylesheet" href="https://unpkg.com/@tabler/core@1.0.0-beta10/dist/css/tabler-flags.min.css">
-<link rel="stylesheet" href="https://unpkg.com/@tabler/core@1.0.0-beta10/dist/css/tabler-payments.min.css">
-<link rel="stylesheet" href="https://unpkg.com/@tabler/core@1.0.0-beta10/dist/css/tabler-vendors.min.css">
+                          
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/core@1.0.0-beta10/dist/css/tabler-flags.min.css">
+<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/core@1.0.0-beta10/dist/css/tabler-payments.min.css">
+<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/core@1.0.0-beta10/dist/css/tabler-vendors.min.css">
 
diff --git a/demo/docs/flags.html b/demo/docs/flags.html index a9d1fb46..d3bb49b1 100644 --- a/demo/docs/flags.html +++ b/demo/docs/flags.html @@ -842,7 +842,7 @@

This part of Tabler is distributed as plugin. To enable it you should include tabler-flags.css or tabler-flags.min.css file to your page.

You can also include plugin via CDN:

-
<link rel="stylesheet" href="https://unpkg.com/@tabler/core@1.0.0-beta10/dist/css/tabler-flags.min.css">
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/core@1.0.0-beta10/dist/css/tabler-flags.min.css">
diff --git a/demo/docs/payments.html b/demo/docs/payments.html index db932c03..393eeeb6 100644 --- a/demo/docs/payments.html +++ b/demo/docs/payments.html @@ -842,7 +842,7 @@

This part of Tabler is distributed as plugin. To enable it you should include tabler-payments.css or tabler-payments.min.css file to your page.

You can also include plugin via CDN:

-
<link rel="stylesheet" href="https://unpkg.com/@tabler/core@1.0.0-beta10/dist/css/tabler-payments.min.css">
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/core@1.0.0-beta10/dist/css/tabler-payments.min.css">
diff --git a/src/pages/_docs/download.md b/src/pages/_docs/download.md index bff2024d..0fc7c6d1 100644 --- a/src/pages/_docs/download.md +++ b/src/pages/_docs/download.md @@ -5,13 +5,13 @@ description: Download Tabler to get the compiled CSS and JavaScript, source code --- -## CDN via unpkg +## CDN via jsDelivr -All files included in `{{ site.npm-package }}` npm package are available over a unpkg CDN. Use it to deliver cached version of Tabler’s compiled CSS and JS to your project. +All files included in `{{ site.npm-package }}` npm package are available over a jsDelivr CDN. Use it to deliver cached version of Tabler’s compiled CSS and JS to your project. ```html - - + + ``` You can also include additional Tabler plugins: @@ -19,7 +19,7 @@ You can also include additional Tabler plugins: ```html {% removeemptylines %} {% for plugin in site.tabler-css-plugins %} - + {% endfor %} {% endremoveemptylines %} ``` diff --git a/src/pages/_includes/docs/plugin.html b/src/pages/_includes/docs/plugin.html index 729b814d..bdee0c26 100644 --- a/src/pages/_includes/docs/plugin.html +++ b/src/pages/_includes/docs/plugin.html @@ -5,5 +5,5 @@

You can also include plugin via CDN:

- {% highlight html %}{% endhighlight %} + {% highlight html %}{% endhighlight %} \ No newline at end of file -- GitLab