Skip to content

Commit 2072750

Browse files
authored
chore: update v4 branch with latest clerk sponsorship (#9828)
* add clerk's twitter script * remove clerk component and add text-based callout * remove image based ad and swap for nav link * remove ad from docs sidebar
1 parent 9296222 commit 2072750

File tree

6 files changed

+39
-566
lines changed

6 files changed

+39
-566
lines changed

docs/docusaurus.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,12 @@ module.exports = {
173173
respectPrefersColorScheme: true,
174174
},
175175
},
176+
scripts: [
177+
{
178+
src: 'js/clerk.js',
179+
async: true,
180+
}
181+
],
176182
presets: [
177183
[
178184
"@docusaurus/preset-classic",

docs/sidebars.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
/** @type {import('@docusaurus/plugin-content-docs').PropSidebarItemHtml} */
22
const clerk = {
3-
type: "html",
4-
value: `
5-
<a href="https://clerk.com?utm_source=sponsorship&utm_medium=docs&utm_campaign=authjs&utm_content=callout">
6-
<picture>
7-
<source media="(prefers-color-scheme: dark)" srcset="/img/clerk-sidebar-light.png">
8-
<source media="(prefers-color-scheme: light)" srcset="/img/clerk-sidebar-dark.png">
9-
<img alt="Clerk – Authentication & User Management" src="/img/clerk-sidebar-dark.png">
10-
</picture>
11-
</a>`,
12-
defaultStyle: true,
3+
type: "link",
4+
href: "https://clerk.com?utm_source=sponsorship&utm_medium=docs&utm_campaign=authjs&utm_content=nav",
5+
label: "Hosted Auth (Clerk)",
136
}
147

158
module.exports = {

0 commit comments

Comments
 (0)