Blob Blame History Raw
--- a/webpack.config.js	2022-03-25 10:03:40.000000000 -0600
+++ b/webpack.config.js	2022-04-12 14:05:34.969792749 -0600
@@ -24,13 +24,6 @@ const staticPath = resolve(
   __dirname,
   "src/pydata_sphinx_theme/theme/pydata_sphinx_theme/static"
 );
-const vendor = resolve(staticPath, "vendor");
-const vendorVersions = {
-  fontAwesome: require("@fortawesome/fontawesome-free/package.json").version,
-};
-const vendorPaths = {
-  fontAwesome: resolve(vendor, "fontawesome", vendorVersions.fontAwesome),
-};
 
 //
 // Cache-busting Jinja2 macros (`webpack-macros.html`) used in `layout.html`
@@ -64,17 +57,11 @@ function macroTemplate({ compilation })
     {# Load FontAwesome icons #}
     {% macro head_pre_icons() %}
       <link rel="stylesheet"
-        href="{{ pathto('_static/vendor/fontawesome/${
-          vendorVersions.fontAwesome
-        }/css/all.min.css', 1) }}">
-      <link rel="preload" as="font" type="font/woff2" crossorigin
-        href="{{ pathto('_static/vendor/fontawesome/${
-          vendorVersions.fontAwesome
-        }/webfonts/fa-solid-900.woff2', 1) }}">
-      <link rel="preload" as="font" type="font/woff2" crossorigin
-        href="{{ pathto('_static/vendor/fontawesome/${
-          vendorVersions.fontAwesome
-        }/webfonts/fa-brands-400.woff2', 1) }}">
+        href="file:///usr/share/fontawesome5/css/all.min.css">
+      <link rel="preload" as="font" type="font/opentype" crossorigin
+        href="file:///usr/share/fonts/fontawesome5-free-fonts/Font Awesome 5 Free-Solid-900.otf">
+      <link rel="preload" as="font" type="font/opentype" crossorigin
+        href="file:///usr/share/fonts/fontawesome5-brands-fonts/Font Awesome 5 Brands-Regular-400.otf">
     {% endmacro %}
 
     {% macro head_pre_assets() %}
@@ -146,24 +133,6 @@ module.exports = {
       minify: false,
       css: true,
       templateContent: macroTemplate,
-    }),
-    new CopyPlugin([
-      // fontawesome
-      {
-        context: "./node_modules/@fortawesome/fontawesome-free",
-        from: "LICENSE.txt",
-        to: resolve(vendorPaths.fontAwesome, "LICENSE.txt"),
-      },
-      {
-        context: "./node_modules/@fortawesome/fontawesome-free/css",
-        from: "all.min.css",
-        to: resolve(vendorPaths.fontAwesome, "css"),
-      },
-      {
-        context: "./node_modules/@fortawesome/fontawesome-free",
-        from: "webfonts",
-        to: resolve(vendorPaths.fontAwesome, "webfonts"),
-      },
-    ]),
+    })
   ],
 };