Skip to content

Commit

Permalink
chore: update v4 branch with latest clerk sponsorship (#9828)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
astrotars authored Jan 27, 2024
1 parent 9296222 commit 2072750
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 566 deletions.
6 changes: 6 additions & 0 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,12 @@ module.exports = {
respectPrefersColorScheme: true,
},
},
scripts: [
{
src: 'js/clerk.js',
async: true,
}
],
presets: [
[
"@docusaurus/preset-classic",
Expand Down
13 changes: 3 additions & 10 deletions docs/sidebars.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
/** @type {import('@docusaurus/plugin-content-docs').PropSidebarItemHtml} */
const clerk = {
type: "html",
value: `
<a href="https://clerk.com?utm_source=sponsorship&utm_medium=docs&utm_campaign=authjs&utm_content=callout">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="/img/clerk-sidebar-light.png">
<source media="(prefers-color-scheme: light)" srcset="/img/clerk-sidebar-dark.png">
<img alt="Clerk – Authentication & User Management" src="/img/clerk-sidebar-dark.png">
</picture>
</a>`,
defaultStyle: true,
type: "link",
href: "https://clerk.com?utm_source=sponsorship&utm_medium=docs&utm_campaign=authjs&utm_content=nav",
label: "Hosted Auth (Clerk)",
}

module.exports = {
Expand Down
Loading

1 comment on commit 2072750

@vercel
Copy link

@vercel vercel bot commented on 2072750 Jan 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.