]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
Add Vue School top banner (#1721)
authorNico Devs <nico1485@gmail.com>
Mon, 6 Mar 2023 21:22:12 +0000 (18:22 -0300)
committerGitHub <noreply@github.com>
Mon, 6 Mar 2023 21:22:12 +0000 (22:22 +0100)
packages/docs/.vitepress/config/shared.ts

index 67035979e41d6869c54b5e13379bb4f2a754ef9b..a028d2f0a3db1f7385f1b807b7a47731bb6f9024 100644 (file)
@@ -69,16 +69,16 @@ export const sharedConfig = defineConfig({
     //   },
     // ],
 
-    // TODO: reactivate once it's fixed
-    // [
-    //   'script',
-    //   {
-    //     src: 'https://vueschool.io/banners/main.js',
-    //     // @ts-expect-error: vitepress bug
-    //     async: true,
-    //     type: 'text/javascript',
-    //   },
-    // ],
+    // Vue School Top banner
+    [
+      'script',
+      {
+        src: 'https://vueschool.io/banner.js?affiliate=vuerouter&type=top',
+        // @ts-expect-error: vitepress bug
+        async: true,
+        type: 'text/javascript',
+      },
+    ],
 
     ...(isProduction ? productionHead : []),
   ],