Skip to content

Commit 17d2eea

Browse files
committed
Fix icons loading
On March 22, Phosphor Icons decided to update the way we must use their icons 😅 so I updated the CDN links and version numbers.
1 parent 4ea22d5 commit 17d2eea

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

docusaurus/docusaurus.config.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ const config = {
7272
async: true,
7373
},
7474
{
75-
src: 'https://unpkg.com/@phosphor-icons/web',
75+
// src: 'https://unpkg.com/@phosphor-icons/web@2.0.3',
76+
src: 'https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.1', // fallback
7677
async: true,
7778
},
7879
{
@@ -104,7 +105,17 @@ const config = {
104105
],
105106
stylesheets: [
106107
{
107-
href: 'https://unpkg.com/@phosphor-icons/web@2.0.3',
108+
href: 'https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.1/src/regular/style.css', // fallback
109+
type: 'text/css',
110+
rel: 'stylesheet',
111+
},
112+
{
113+
href: 'https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.1/src/fill/style.css', // fallback
114+
type: 'text/css',
115+
rel: 'stylesheet',
116+
},
117+
{
118+
href: 'https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.1/src/bold/style.css', // fallback
108119
type: 'text/css',
109120
rel: 'stylesheet',
110121
},

0 commit comments

Comments
 (0)