Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

changed contentlayer dir from posts to content, made zoom image responsive

Steven Tey6780190d0ade
diff --git a/app/dub.sh/changelog/[slug]/page.tsx b/app/dub.sh/changelog/[slug]/page.tsx
index dac2767c2f..80ee4309e2 100644
--- a/app/dub.sh/changelog/[slug]/page.tsx
+++ b/app/dub.sh/changelog/[slug]/page.tsx
@@ -117,7 +117,7 @@ export default async function ChangelogPost({
<MDX code={post.body.code} className="mx-5 sm:prose-lg md:mx-0" />
<div className="mt-10 flex justify-end border-t border-gray-200 pt-5">
<Link
- href={`https://github.com/steven-tey/dub/blob/main/posts/changelog/${params.slug}.mdx`}
+ href={`https://github.com/steven-tey/dub/blob/main/content/changelog/${params.slug}.mdx`}
target="_blank"
rel="noopener noreferrer"
className="text-sm text-gray-500 transition-colors hover:text-gray-800"
diff --git a/app/dub.sh/help/article/[slug]/not-found.tsx b/app/dub.sh/help/article/[slug]/not-found.tsx
deleted file mode 100644
index 636e959567..0000000000
--- a/app/dub.sh/help/article/[slug]/not-found.tsx
+++ /dev/null
@@ -1,8 +0,0 @@
-export default function NotFound() {
- return (
- <div className="flex h-screen flex-col items-center justify-center">
- <h1 className="text-6xl font-bold">404</h1>
- <p className="text-2xl font-semibold">Page not found</p>
- </div>
- );
-}
diff --git a/app/dub.sh/help/article/[slug]/page.tsx b/app/dub.sh/help/article/[slug]/page.tsx
index 1c2a2591c1..76b9946de9 100644
--- a/app/dub.sh/help/article/[slug]/page.tsx
+++ b/app/dub.sh/help/article/[slug]/page.tsx
@@ -74,33 +74,31 @@ export default async function HelpArticle({
return (
<>
- <MaxWidthWrapper className="max-w-screen-lg">
- <div className="flex flex-col py-10">
- <SearchButton />
- </div>
+ <MaxWidthWrapper className="flex max-w-screen-lg flex-col py-10">
+ <SearchButton />
</MaxWidthWrapper>
<div className="border border-gray-200 bg-white/50 shadow-[inset_10px_-50px_94px_0_rgb(199,199,199,0.2)] backdrop-blur-lg">
<MaxWidthWrapper className="grid max-w-screen-lg grid-cols-4 gap-10 py-10">
<div className="col-span-4 flex flex-col space-y-8 sm:col-span-3 sm:pr-10">
- <div className="flex flex-wrap items-center space-x-2">
+ <div className="flex items-center space-x-2">
<Link
href="/help"
- className="text-sm font-medium text-gray-500 hover:text-gray-800"
+ className="whitespace-nowrap text-sm font-medium text-gray-500 hover:text-gray-800"
>
All Categories
</Link>
<ChevronRight className="h-4 w-4 text-gray-400" />
<Link
href={`/help/category/${category.slug}`}
- className="text-sm font-medium text-gray-500 hover:text-gray-800"
+ className="whitespace-nowrap text-sm font-medium text-gray-500 hover:text-gray-800"
>
{category.title}
</Link>
<ChevronRight className="h-4 w-4 text-gray-400" />
<Link
href={`/help/article/${data.slug}`}
- className="text-sm font-medium text-gray-500 hover:text-gray-800"
+ className="truncate text-sm font-medium text-gray-500 hover:text-gray-800"
>
{data.title}
</Link>
@@ -129,7 +127,19 @@ export default async function HelpArticle({
)}
<Feedback />
</div>
- <TableOfContents items={data.tableOfContents} />
+ <div className="sticky top-20 col-span-1 hidden self-start sm:block">
+ <TableOfContents items={data.tableOfContents} />
+ <div className="mt-10 flex justify-center border-t border-gray-200 pt-5">
+ <Link
+ href={`https://github.com/steven-tey/dub/blob/main/content/help/${params.slug}.mdx`}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="text-xs text-gray-500 transition-colors hover:text-gray-800"
+ >
+ Found a typo? Edit this page ↗
+ </Link>
+ </div>
+ </div>
</MaxWidthWrapper>
</div>
</>
diff --git a/app/dub.sh/help/category/[slug]/not-found.tsx b/app/dub.sh/help/category/[slug]/not-found.tsx
deleted file mode 100644
index 636e959567..0000000000
--- a/app/dub.sh/help/category/[slug]/not-found.tsx
+++ /dev/null
@@ -1,8 +0,0 @@
-export default function NotFound() {
- return (
- <div className="flex h-screen flex-col items-center justify-center">
- <h1 className="text-6xl font-bold">404</h1>
- <p className="text-2xl font-semibold">Page not found</p>
- </div>
- );
-}
diff --git a/app/dub.sh/help/category/[slug]/page.tsx b/app/dub.sh/help/category/[slug]/page.tsx
index 53bc71d301..af9b156e9c 100644
--- a/app/dub.sh/help/category/[slug]/page.tsx
+++ b/app/dub.sh/help/category/[slug]/page.tsx
@@ -32,13 +32,11 @@ export default function HelpCategory({
return (
<>
- <MaxWidthWrapper className="max-w-screen-lg">
- <div className="flex flex-col py-10">
- <SearchButton />
- </div>
+ <MaxWidthWrapper className="flex max-w-screen-lg flex-col py-10">
+ <SearchButton />
</MaxWidthWrapper>
- <div className="border border-gray-200 bg-white/50 shadow-[inset_10px_-50px_94px_0_rgb(199,199,199,0.2)] backdrop-blur-lg">
+ <div className="min-h-[50vh] border border-gray-200 bg-white/50 shadow-[inset_10px_-50px_94px_0_rgb(199,199,199,0.2)] backdrop-blur-lg">
<MaxWidthWrapper className="flex max-w-screen-lg flex-col py-10">
<div className="flex items-center space-x-2">
<Link
diff --git a/app/dub.sh/help/not-found.tsx b/app/dub.sh/help/not-found.tsx
new file mode 100644
index 0000000000..4a88f3534e
--- /dev/null
+++ b/app/dub.sh/help/not-found.tsx
@@ -0,0 +1,27 @@
+import BlurImage from "#/ui/blur-image";
+import Link from "next/link";
+
+export default function NotFound() {
+ return (
+ <div className="flex min-h-[50vh] flex-col items-center justify-center">
+ <h1 className="font-display text-6xl font-bold">404</h1>
+ <BlurImage
+ src="/_static/illustrations/call-waiting.svg"
+ alt="404"
+ width={400}
+ height={400}
+ className="pointer-events-none -my-8"
+ />
+ <p className="text-2xl font-medium">
+ Page not found. Back to{" "}
+ <Link
+ href="/help"
+ className="text-gray-600 underline underline-offset-4 transition-colors hover:text-black"
+ >
+ Help Center
+ </Link>
+ .
+ </p>
+ </div>
+ );
+}
diff --git a/app/ui/cmdk.tsx b/app/ui/cmdk.tsx
index 79139587c2..ae809f660c 100644
--- a/app/ui/cmdk.tsx
+++ b/app/ui/cmdk.tsx
@@ -64,20 +64,32 @@ const CommandResults = ({
(slug) => allHelpPosts.find((post) => post.slug === slug)!,
);
+ const allItems = [
+ ...allHelpPosts,
+ // get all table of contents headings too
+ ...allHelpPosts.flatMap((post) =>
+ post.tableOfContents.map((toc: { title: string; slug: string }) => ({
+ slug: `${post.slug}#${toc.slug}`,
+ title: toc.title,
+ summary: `In: "${post.title}"`,
+ })),
+ ),
+ ];
+
const search = useCommandState((state) => state.search);
- return (search.length === 0 ? popularArticles : allHelpPosts).map(
- (article) => (
+ return (search.length === 0 ? popularArticles : allItems).map(
+ ({ slug, title, summary }) => (
<Command.Item
- key={article.slug}
- value={article.title}
+ key={slug}
+ value={title}
onSelect={() => {
console.log(window.location.hostname);
if (window.location.hostname.startsWith("app.")) {
// this is from the app, open in new tab
- window.open(`${HOME_DOMAIN}/help/article/${article.slug}`);
+ window.open(`${HOME_DOMAIN}/help/article/${slug}`);
} else {
- router.push(`/help/article/${article.slug}`);
+ router.push(`/help/article/${slug}`);
}
setShowCMDK(false);
}}
@@ -88,14 +100,14 @@ const CommandResults = ({
highlightClassName="underline bg-transparent text-purple-500"
searchWords={[search]}
autoEscape={true}
- textToHighlight={article.title}
+ textToHighlight={title}
className="text-sm font-medium text-gray-600 group-aria-selected:text-purple-600 sm:group-hover:text-purple-600"
/>
<Highlighter
highlightClassName="underline bg-transparent text-purple-500"
searchWords={[search]}
autoEscape={true}
- textToHighlight={article.summary}
+ textToHighlight={summary}
className="line-clamp-1 text-xs text-gray-400"
/>
</div>
diff --git a/app/ui/content/mdx.tsx b/app/ui/content/mdx.tsx
index f46e95f20b..8f6fa984c9 100644
--- a/app/ui/content/mdx.tsx
+++ b/app/ui/content/mdx.tsx
@@ -6,6 +6,7 @@ import Tweet from "#/ui/tweet";
import GithubRepo, { GithubRepoProps } from "@/components/shared/github-repo";
import BlurImage from "#/ui/blur-image";
import { Tweet as TweetProps } from "react-tweet/api";
+import useWindowSize from "#/lib/hooks/use-window-size";
import { cn } from "#/lib/utils";
import Zoom from "react-medium-image-zoom";
import "react-medium-image-zoom/dist/styles.css";
@@ -43,6 +44,19 @@ const components = {
/>
),
thead: (props: any) => <thead className="text-lg" {...props} />,
+ Note: (props: any) => (
+ <div
+ className={cn(
+ "mt-4 rounded-md border-l-4 border-gray-500 bg-gray-100 px-4 py-1 text-[0.95rem] leading-[1.4rem]",
+ {
+ "border-yellow-500 bg-yellow-100": props.variant === "warning",
+ "border-blue-500 bg-blue-100": props.variant === "info",
+ "border-green-500 bg-green-100": props.variant === "success",
+ },
+ )}
+ {...props}
+ />
+ ),
};
interface MDXProps {
@@ -55,6 +69,7 @@ interface MDXProps {
export function MDX({ code, images, tweets, repos, className }: MDXProps) {
const Component = useMDXComponent(code);
+ const { width } = useWindowSize();
const MDXImage = (props: any) => {
if (!images) return null;
@@ -64,7 +79,7 @@ export function MDX({ code, images, tweets, repos, className }: MDXProps) {
return (
<div className="not-prose flex flex-col items-center justify-center space-y-3">
- <Zoom>
+ <Zoom zoomMargin={width > 640 ? 45 : undefined}>
<BlurImage
{...props}
className="rounded-lg border border-gray-200"
diff --git a/app/ui/content/table-of-contents.tsx b/app/ui/content/table-of-contents.tsx
index 523bf5a342..6bf03f45e6 100644
--- a/app/ui/content/table-of-contents.tsx
+++ b/app/ui/content/table-of-contents.tsx
@@ -15,7 +15,7 @@ export default function TableOfContents({
const currentAnchor = useCurrentAnchor();
return (
- <div className="sticky top-20 col-span-1 hidden gap-4 self-start border-l-2 border-gray-200 sm:grid">
+ <div className="grid gap-4 border-l-2 border-gray-200">
{items.map((item, idx) => (
<Link
key={item.slug}
diff --git a/app/ui/home/demo/index.tsx b/app/ui/home/demo/index.tsx
index 20495064ae..9facb08807 100644
--- a/app/ui/home/demo/index.tsx
+++ b/app/ui/home/demo/index.tsx
@@ -8,7 +8,7 @@ import PlaceholderCard from "#/ui/home/placeholder-card";
import { LoadingSpinner } from "#/ui/icons";
import { Link2 } from "lucide-react";
import Tooltip, { TooltipContent } from "#/ui/tooltip";
-import { FRAMER_MOTION_LIST_ITEM_VARIANTS } from "#/lib/constants";
+import { APP_DOMAIN, FRAMER_MOTION_LIST_ITEM_VARIANTS } from "#/lib/constants";
import useLocalStorage from "#/lib/hooks/use-local-storage";
import { SimpleLinkProps } from "#/lib/types";
import { toast } from "sonner";
@@ -50,7 +50,7 @@ export default function Demo() {
title="Maximum number of links reached. Swipe to delete existing links or
create a free account."
cta="Start For Free"
- href="https://app.dub.sh/register"
+ href={`${APP_DOMAIN}/register`}
/>
}
>
@@ -123,7 +123,7 @@ export default function Demo() {
>
Note: Public links will be automatically-deleted after 30 minutes.{" "}
<a
- href="https://app.dub.sh/register"
+ href={`${APP_DOMAIN}/register`}
target="_blank"
rel="noreferrer"
className="font-medium text-gray-700 underline transition-all hover:text-black"
diff --git a/app/ui/home/hero.tsx b/app/ui/home/hero.tsx
index e0fbdfda2d..fb9b3f2d97 100644
--- a/app/ui/home/hero.tsx
+++ b/app/ui/home/hero.tsx
@@ -2,6 +2,7 @@ import { allChangelogPosts } from "contentlayer/generated";
import { Github } from "@/components/shared/icons";
import Link from "next/link";
import { ExpandingArrow } from "../icons";
+import { APP_DOMAIN } from "#/lib/constants";
const Hero = () => {
const latestChangelog = allChangelogPosts.sort(
@@ -34,7 +35,7 @@ const Hero = () => {
<div className="mx-auto mt-10 flex max-w-fit space-x-4">
<a
- href="https://app.dub.sh/register"
+ href={`${APP_DOMAIN}/register`}
className="rounded-full border border-black bg-black px-5 py-2 text-sm text-white shadow-lg transition-all hover:bg-white hover:text-black"
>
Start For Free
diff --git a/app/ui/home/pricing.tsx b/app/ui/home/pricing.tsx
index 44e300f82a..0ce577990f 100644
--- a/app/ui/home/pricing.tsx
+++ b/app/ui/home/pricing.tsx
@@ -10,6 +10,7 @@ import Tooltip from "#/ui/tooltip";
import { PLANS } from "#/lib/stripe/utils";
import { nFormatter } from "#/lib/utils";
import { HelpCircle, MinusCircle } from "lucide-react";
+import { APP_DOMAIN } from "#/lib/constants";
const pricingItems = [
{
@@ -244,11 +245,7 @@ const Pricing = () => {
<div className="border-t border-gray-200" />
<div className="p-5">
<Link
- href={
- process.env.NODE_ENV === "production"
- ? "https://app.dub.sh/register"
- : "http://app.localhost:3000/register"
- }
+ href={`${APP_DOMAIN}/register`}
className={`${
plan === "Pro"
? "border border-transparent bg-gradient-to-r from-blue-600 to-cyan-600 text-white hover:border-blue-700 hover:bg-white hover:bg-clip-text hover:text-transparent"
diff --git a/app/ui/tooltip.tsx b/app/ui/tooltip.tsx
index f4481d7a6a..3bcbb12a30 100644
--- a/app/ui/tooltip.tsx
+++ b/app/ui/tooltip.tsx
@@ -165,7 +165,7 @@ export function TooltipContent({
);
}
-export function InfoTooltip({ content }: { content: string }) {
+export function InfoTooltip({ content }: { content: ReactNode | string }) {
return (
<Tooltip content={content}>
<HelpCircle className="h-4 w-4 text-gray-500" />
diff --git a/components/app/modals/remove-teammate-modal.tsx b/components/app/modals/remove-teammate-modal.tsx
index 41ddb4e433..cd72880d14 100644
--- a/components/app/modals/remove-teammate-modal.tsx
+++ b/components/app/modals/remove-teammate-modal.tsx
@@ -41,7 +41,7 @@ function RemoveTeammateModal({
{logo ? (
<BlurImage
src={logo}
- alt={"Invite Teammate"}
+ alt="Project logo"
className="h-10 w-10 rounded-full"
width={20}
height={20}
@@ -49,7 +49,9 @@ function RemoveTeammateModal({
) : (
<Logo />
)}
- <h3 className="text-lg font-medium">Remove Teammate</h3>
+ <h3 className="text-lg font-medium">
+ Remove {invite ? "Invitation" : "Teammate"}
+ </h3>
<p className="text-center text-sm text-gray-500">
This will remove{" "}
<span className="font-semibold text-black">{name || email}</span>
diff --git a/posts/changelog/all-time-link-stats.mdx b/content/changelog/all-time-link-stats.mdx
similarity index 100%
rename from posts/changelog/all-time-link-stats.mdx
rename to content/changelog/all-time-link-stats.mdx
diff --git a/posts/changelog/duplicating-links.mdx b/content/changelog/duplicating-links.mdx
similarity index 100%
rename from posts/changelog/duplicating-links.mdx
rename to content/changelog/duplicating-links.mdx
diff --git a/posts/changelog/improved-link-cards.mdx b/content/changelog/improved-link-cards.mdx
similarity index 100%
rename from posts/changelog/improved-link-cards.mdx
rename to content/changelog/improved-link-cards.mdx
diff --git a/posts/changelog/improved-link-management.mdx b/content/changelog/improved-link-management.mdx
similarity index 100%
rename from posts/changelog/improved-link-management.mdx
rename to content/changelog/improved-link-management.mdx
diff --git a/posts/changelog/improved-pricing.mdx b/content/changelog/improved-pricing.mdx
similarity index 100%
rename from posts/changelog/improved-pricing.mdx
rename to content/changelog/improved-pricing.mdx
diff --git a/posts/changelog/introducing-tags.mdx b/content/changelog/introducing-tags.mdx
similarity index 90%
rename from posts/changelog/introducing-tags.mdx
rename to content/changelog/introducing-tags.mdx
index 906daffd1c..a27abf8856 100644
--- a/posts/changelog/introducing-tags.mdx
+++ b/content/changelog/introducing-tags.mdx
@@ -18,4 +18,4 @@ With tags, you can now:
This has been a [highly](https://github.com/steven-tey/dub/issues/101) [requested](https://github.com/steven-tey/dub/issues/124) feature since day one (shoutout to our friends at [Refine](https://refine.dev) as well), and we're excited to finally ship it!
-Read the full Twitter announcement [here](https://twitter.com/dubdotsh/status/1661078951962263570).
+Learn more about how to use tags in this [help article](/help/article/how-to-use-tags).
diff --git a/posts/changelog/keyboard-shortcuts.mdx b/content/changelog/keyboard-shortcuts.mdx
similarity index 100%
rename from posts/changelog/keyboard-shortcuts.mdx
rename to content/changelog/keyboard-shortcuts.mdx
diff --git a/posts/changelog/link-search.mdx b/content/changelog/link-search.mdx
similarity index 100%
rename from posts/changelog/link-search.mdx
rename to content/changelog/link-search.mdx
diff --git a/posts/changelog/monthly-summaries.mdx b/content/changelog/monthly-summaries.mdx
similarity index 100%
rename from posts/changelog/monthly-summaries.mdx
rename to content/changelog/monthly-summaries.mdx
diff --git a/posts/changelog/new-tag-creation-flow.mdx b/content/changelog/new-tag-creation-flow.mdx
similarity index 90%
rename from posts/changelog/new-tag-creation-flow.mdx
rename to content/changelog/new-tag-creation-flow.mdx
index 0f45b7c06e..9f0fef1ed8 100644
--- a/posts/changelog/new-tag-creation-flow.mdx
+++ b/content/changelog/new-tag-creation-flow.mdx
@@ -13,3 +13,5 @@ Instead of a separate link tagging modal, we've combined it with the link creati
Here's a [quick 2-min Loom video](https://www.loom.com/share/f7c17d8bcaf443f2a971a620a3a3126f) explaining the difference between the old and new flows.
Shoutout to [Fazle](https://twitter.com/fazlerocks) from [Hashnode](https://hashnode.com/) for the [feature request](https://github.com/steven-tey/dub/issues/240)!
+
+Learn more about how to use tags in this [help article](/help/article/how-to-use-tags).
diff --git a/posts/changelog/pass-url-parameters.mdx b/content/changelog/pass-url-parameters.mdx
similarity index 100%
rename from posts/changelog/pass-url-parameters.mdx
rename to content/changelog/pass-url-parameters.mdx
diff --git a/posts/changelog/project-level-billing.mdx b/content/changelog/project-level-billing.mdx
similarity index 100%
rename from posts/changelog/project-level-billing.mdx
rename to content/changelog/project-level-billing.mdx
diff --git a/posts/changelog/public-stats-pages.mdx b/content/changelog/public-stats-pages.mdx
similarity index 100%
rename from posts/changelog/public-stats-pages.mdx
rename to content/changelog/public-stats-pages.mdx
diff --git a/posts/changelog/sign-in-with-google.mdx b/content/changelog/sign-in-with-google.mdx
similarity index 100%
rename from posts/changelog/sign-in-with-google.mdx
rename to content/changelog/sign-in-with-google.mdx
diff --git a/posts/changelog/team-invites.mdx b/content/changelog/team-invites.mdx
similarity index 87%
rename from posts/changelog/team-invites.mdx
rename to content/changelog/team-invites.mdx
index 794e36c10c..c26fc34b54 100644
--- a/posts/changelog/team-invites.mdx
+++ b/content/changelog/team-invites.mdx
@@ -11,3 +11,5 @@ You can now invite teammates to your Dub project. This is useful if you want to
Dub has the most generous free plan in the industry. You can invite up to 2 teammates to your project (3 total users) for free.
Need to invite more teammates? Upgrade to our [Pro plan](/pricing) for unlimited teammates.
+
+Learn more about [inviting teammates](/help/article/how-to-invite-teammates).
diff --git a/posts/changelog/tinybird-migration.mdx b/content/changelog/tinybird-migration.mdx
similarity index 100%
rename from posts/changelog/tinybird-migration.mdx
rename to content/changelog/tinybird-migration.mdx
diff --git a/posts/changelog/unlimited-domains.mdx b/content/changelog/unlimited-domains.mdx
similarity index 100%
rename from posts/changelog/unlimited-domains.mdx
rename to content/changelog/unlimited-domains.mdx
diff --git a/posts/help/dub-api.mdx b/content/help/dub-api.mdx
similarity index 94%
rename from posts/help/dub-api.mdx
rename to content/help/dub-api.mdx
index ce1a416f90..3b81fa4182 100644
--- a/posts/help/dub-api.mdx
+++ b/content/help/dub-api.mdx
@@ -1,6 +1,6 @@
---
title: Does Dub have an API?
-updatedAt: 2023-07-18
+updatedAt: 2023-07-23
summary: Dub has an API that allows you to create, update, and delete links programmatically.
author: steventey
categories:
diff --git a/content/help/how-to-add-custom-domain.mdx b/content/help/how-to-add-custom-domain.mdx
new file mode 100644
index 0000000000..93e4a44080
--- /dev/null
+++ b/content/help/how-to-add-custom-domain.mdx
@@ -0,0 +1,116 @@
+---
+title: How to add a custom domain to Dub
+updatedAt: 2023-07-23
+summary: Learn how to add a custom domain to Dub for free - no credit card required.
+author: steventey
+categories:
+ - custom-domains
+ - getting-started
+related:
+ - what-is-a-project
+ - how-to-redirect-root-domain
+---
+
+Dub is the only link management tool that allows you to add a custom domain for free. On Dub, you can add as many domains as you want on all plans – including the free plan.
+
+This guide will show you how to add a custom domain to Dub.
+
+## Prerequisites
+
+Before you begin, you'll need the following:
+
+- A Dub account. If you don't have one, you can [create one for free](https://app.dub.sh/register).
+- A domain name. If you don't have one, you can purchase one from any one of the following domain registrars:
+ - [Namecheap](https://www.namecheap.com/)
+ - [GoDaddy](https://www.godaddy.com/)
+ - [Google Domains](https://domains.google/)
+ - [Porkbun](https://porkbun.com/)
+
+## Step 1: Add a custom domain
+
+First, [log in](https://app.dub.sh/login) to your Dub account.
+
+### Don't have a project yet?
+
+1. Navigate to the [Dub Dashboard](https://app.dub.sh/) and click on the **Create project** button.
+2. Enter the domain you want to use under the "Shortlink domain" input and click **Create project**.
+
+<Image
+ alt="Screenshot of the project creation modal in Dub"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/create-project-modal.png"
+ width={1315}
+ height={871}
+/>
+
+### Already have a project?
+
+If you already have a project and are looking to add another domain to it:
+
+1. Navigate to your project's Domains page – you can do that by clicking on the **Domains** link in the menu bar at the top of your project dashboard.
+2. Click on the **Add Domain** button.
+3. Enter the domain you want to use and click **Add domain**.
+
+<Image
+ alt="Screenshot of the 'Add Domain' modal in Dub"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/add-domain-modal.png"
+ width={1143}
+ height={797}
+/>
+
+## Step 2: Configure your domain
+
+After adding your domain, you'll be presented with a DNS record that you'll need to add to your domain's DNS settings.
+
+<Image
+ alt="Setting up DNS records for your domains on Dub"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/domain-dns-records.png"
+ width={1054}
+ height={625}
+/>
+
+### Adding an apex domain
+
+If you're adding an apex domain (e.g. `example.com`), you'll need to add an `A` record with the following values:
+
+- **Name**: `@` (or leave it blank)
+- **Value**: `76.76.21.21`
+- **TTL**: `86400` (or the highest value possible)
+
+### Adding a subdomain
+
+If you're adding a subdomain (e.g. `go.example.com`), you'll need to add a `CNAME` record with the following values:
+
+- **Name**: `go` (or whatever subdomain you want to use)
+- **Value**: `cname.dub.sh`
+- **TTL**: `86400` (or the highest value possible)
+
+## Step 3 (optional): Verify domain ownership
+
+<Note variant="info">
+ This step is only applicable if you are adding a domain that is currently
+ being used on [Vercel](https://vercel.com/).
+</Note>
+
+Since we use Vercel as the DNS provider for Dub, you'll need to verify that you own the domain before you can add it to your Dub project.
+
+<Image
+ alt="Verifying domain ownership on Dub"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/domain-txt-verification.png"
+ width={1056}
+ height={616}
+/>
+
+To do that, you'll need to add a TXT record with the following values:
+
+- **Name**: `_vercel`
+- **Value**: `vc-domain-verify=...` (the value will be provided to you on the Dub dashboard)
+
+<Note variant="warning">
+ Warning: If you are using this domain for another site, setting this TXT
+ record will transfer domain ownership away from that site and break it. Please
+ exercise caution when setting this record.
+</Note>
+
+## How long do I have to wait for my domain to work?
+
+Domain configuration can take anywhere between 1 to 24 hours to complete. If your domain still doesn't work after 24 hours, please [contact us](/contact) and we'll be happy to help you out.
diff --git a/posts/help/how-to-create-link.mdx b/content/help/how-to-create-link.mdx
similarity index 92%
rename from posts/help/how-to-create-link.mdx
rename to content/help/how-to-create-link.mdx
index 2a07a9a7de..1f233fc939 100644
--- a/posts/help/how-to-create-link.mdx
+++ b/content/help/how-to-create-link.mdx
@@ -1,6 +1,6 @@
---
title: How to create a short link on Dub?
-updatedAt: 2023-07-18
+updatedAt: 2023-07-23
summary: Learn how to create your first short link on Dub and start tracking your links.
author: steventey
categories:
diff --git a/content/help/how-to-invite-teammates.mdx b/content/help/how-to-invite-teammates.mdx
new file mode 100644
index 0000000000..7a69328f28
--- /dev/null
+++ b/content/help/how-to-invite-teammates.mdx
@@ -0,0 +1,82 @@
+---
+title: How to invite teammates on Dub
+updatedAt: 2023-07-23
+summary: Learn how to invite teammates to your Dub project and start collaborating with your team.
+author: steventey
+categories:
+ - overview
+related:
+ - what-is-a-project
+---
+
+On Dub, you can easily invite your teammates to join your Dub project. This is useful if you want to collaborate with your team.
+
+## Sending an invite
+
+If you haven't already, [create a project](what-is-a-project#how-to-create-a-project) on Dub.
+
+To invite a teammate:
+
+1. Navigate to your project's Members Settings page. You can do that by clicking on the **Settings** link in the menu bar at the top of your project dashboard, and click on the **People** tab on the left sidebar.
+2. Click on the **Invite** button to open the Invite Teammate modal.
+3. Enter your teammate's email address and click on the **Send invite** button.
+
+<Image
+ alt="Screenshot of the Invite Teammate modal in Dub"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/invite-teammate-modal.png"
+ width={1127}
+ height={730}
+/>
+
+Your teammate will receive an invitation to join your Dub project via email:
+
+<Image
+ alt="Email invitation to join a Dub project"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/project-invite-email.png"
+ width={1072}
+ height={752}
+/>
+
+<Note variant="info">
+ Invitations will be valid for 14 days – after which you will need to send a
+ new one.
+</Note>
+
+## Revoking / resending an invite
+
+If you want to revoke / resend an invitation, you can do so by following these steps:
+
+1. Navigate to your project's Members Settings page.
+2. CLick on the **Invitations** tab.
+3. Click on the `⋮` button next to the invitation you want to revoke.
+4. Click on the **Remove** button to open the Remove Invitation modal.
+5. Click on the **Confirm remove** button to confirm.
+
+<Image
+ alt="Screenshot of the Remove Invitation modal in Dub"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/remove-invite-modal.png"
+ width={1465}
+ height={855}
+/>
+
+## Removing a teammate
+
+If a teammate no longer needs access to your project, you can remove them from your project.
+
+1. Navigate to your project's Members Settings page.
+2. Click on the `⋮` button next to the teammate you want to remove.
+3. Click on the **Remove** button to open the Remove Teammate modal.
+4. Click on the **Confirm remove** button to confirm.
+
+<Image
+ alt="Screenshot of the Remove Teammate modal in Dub"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/remove-teammate-modal.png"
+ width={1322}
+ height={901}
+/>
+
+## How many teammates can I invite?
+
+Dub has the most generous free plan in the industry. You can invite up to 2 teammates to your project (3 total users) on the free plan.
+
+Need to invite more teammates? Upgrade to our [Pro plan](/pricing) for unlimited teammates.
diff --git a/content/help/how-to-redirect-root-domain.mdx b/content/help/how-to-redirect-root-domain.mdx
new file mode 100644
index 0000000000..4e46eb58f2
--- /dev/null
+++ b/content/help/how-to-redirect-root-domain.mdx
@@ -0,0 +1,39 @@
+---
+title: How to set up a redirect for your custom domain on Dub
+updatedAt: 2023-07-23
+summary: Learn how to redirect your custom domain to a URL of your choice on Dub.
+author: steventey
+categories:
+ - custom-domains
+related:
+ - how-to-add-custom-domain
+ - what-is-a-project
+ - pro-plan
+---
+
+<Note variant="success">
+ This feature is only available for [Pro plans and above](pro-plan).
+</Note>
+
+When you add a custom domain to your project, Dub will automatically create a placeholder page for your domain. This page will be displayed when you visit your domain.
+
+## Redirecting your domain
+
+To redirect your domain to a URL of your choice, follow these steps:
+
+1. If you haven't already, [upgrade to the Pro plan](pro-plan).
+2. Navigate to your project's Domains page – you can do that by clicking on the **Domains** link in the menu bar at the top of your project dashboard.
+3. Click on the **Edit** button next to the domain you want to redirect to open up the Domain Settings modal.
+4. Enter the URL you want to redirect your domain to in the **Landing Page** field.
+5. Click "Save changes".
+
+<Image
+ alt="Screenshot of the 'Domain Settings' modal in Dub"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/domain-settings-modal.png"
+ width={1146}
+ height={755}
+/>
+
+## Rewriting your domain (URL masking / cloaking)
+
+If you want to rewrite your domain (also known as URL masking or cloaking), you can do so by following the same steps
diff --git a/content/help/how-to-use-tags.mdx b/content/help/how-to-use-tags.mdx
new file mode 100644
index 0000000000..ff8fc0605a
--- /dev/null
+++ b/content/help/how-to-use-tags.mdx
@@ -0,0 +1,70 @@
+---
+title: How to use Tags on Dub
+updatedAt: 2023-07-23
+summary: Learn more about what a "Tag" is and how you can use it to better manage your links on Dub.
+author: steventey
+categories:
+ - link-management
+related:
+ - how-to-create-link
+ - what-is-a-project
+---
+
+Tags are a great way to organize your links on Dub. You can use tags to group links together and make it easier to find them later.
+
+<Image
+ alt="Using tags to organize links on Dub"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/changelog/new-tag-creation-flow.png"
+ width={1824}
+ height={995}
+/>
+
+## What is a Tag?
+
+A tag is a label that you can assign to a link. Tags are color-coded and can be created and assigned to a link in just a few clicks.
+
+With tags, you can:
+
+1. Organize your links by campaigns, clients, or any other categories you can think of.
+2. Filter your links by tags and get a shareable link to the filtered results.
+3. Easily edit/delete your tags with a Notion-style dropdown interface.
+
+## How to create a Tag
+
+To create a tag, you first have to [create a link](how-to-create-link).
+
+In the link creation modal, click on the tag input field and type in the name of the tag you want to create.
+
+<Image
+ alt="Input the name of the tag you want to create (e.g. 'New Tag')"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/tag-dropdown.png"
+ width={1147}
+ height={902}
+/>
+
+If the tag already exists, you can select it from the dropdown. Otherwise, press `Enter ↩` to create a new tag.
+
+Once the tag is created, click on the "Create Link" button to assign the tag to the link.
+
+## How to edit or delete a Tag
+
+Tags can be edited via the Tags filter section on the left sidebar.
+
+Simply hover over a tag filter and a `⋮` icon will appear. Click on the icon to open the edit dropdown menu for the given tag.
+
+<Image
+ alt="Edit a tag by clicking on the ⋮ icon"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/edit-tag-menu.png"
+ width={845}
+ height={614}
+/>
+
+Inside the edit dropdown menu, you can:
+
+- Rename the tag
+- Change the color of the tag
+- Delete the tag
+
+## Can I assign multiple tags to a link?
+
+Currently, we only support assigning one tag to a link. If you're interested in the ability to assign multiple tags to a link, please let us know by [creating an issuue here](https://dub.sh/issues).
diff --git a/content/help/pro-plan.mdx b/content/help/pro-plan.mdx
new file mode 100644
index 0000000000..c1bb5d960a
--- /dev/null
+++ b/content/help/pro-plan.mdx
@@ -0,0 +1,12 @@
+---
+title: How Dub's Pro plan works
+updatedAt: 2023-07-23
+summary: Learn more about Dub Pro plan and its features.
+author: steventey
+categories:
+ - overview
+---
+
+## Introduction
+
+## How to upgrade to Pro?
diff --git a/content/help/public-stats-pages.mdx b/content/help/public-stats-pages.mdx
new file mode 100644
index 0000000000..a957be8771
--- /dev/null
+++ b/content/help/public-stats-pages.mdx
@@ -0,0 +1,35 @@
+---
+title: Public stats pages
+updatedAt: 2023-07-23
+summary: Learn how to create public stats pages for your Dub short links.
+author: fmerian
+categories:
+ - link-management
+---
+
+On Dub, you can create a public stats dashboard for your short links.
+
+This allows you to share the stats for a given short link with clients or other external stakeholders without having to invite them to your Dub project.
+
+## How to create a public stats page
+
+1. On your Dub dashboard, click on the `📊 clicks` button for a given short link to open the stats page.
+2. Click on the **Share** button to open up the share dropdown menu.
+3. Toggle the "Public Stats Page" switch to **ON**.
+
+<Image
+ alt="Creating a public stats page for your Dub link"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/public-stats-page.png"
+ width={954}
+ height={897}
+/>
+
+Behind the scenes, Dub creates a public page for your link's stats and automatically copies the link to your clipboard.
+
+[Here's an example](https://dub.sh/stats/github).
+
+## How to disable a public stats page
+
+Follow the same steps as above, but toggle the "Public Stats Page" switch to **OFF**.
+
+Dub will automatically disable the public stats page for the given link. You will still be able to view the stats for the link on your Dub dashboard, but the public page will no longer be accessible.
diff --git a/posts/help/what-is-a-project.mdx b/content/help/what-is-a-project.mdx
similarity index 93%
rename from posts/help/what-is-a-project.mdx
rename to content/help/what-is-a-project.mdx
index 39b3abfeea..e369f0acc9 100644
--- a/posts/help/what-is-a-project.mdx
+++ b/content/help/what-is-a-project.mdx
@@ -1,6 +1,6 @@
---
title: What is a "Project" on Dub?
-updatedAt: 2023-07-18
+updatedAt: 2023-07-23
summary: Learn more about what a "Project" is on Dub and how you can use it to organize your links.
author: steventey
categories:
@@ -19,7 +19,7 @@ You can think of a Dub project as a "Team" – you can [invite your teammates](
## How to create a project
-To create a project, go to the [Dub Dashboard](https://app.dub.sh/) and click on the "Create project" button.
+To create a project, go to the [Dub Dashboard](https://app.dub.sh/) and click on the **Create project** button.
<Image
alt="Screenshot of the project creation modal in Dub"
@@ -34,7 +34,7 @@ Here are the fields in the project creation modal:
2. **Project Slug**: This is your project's unique slug on Dub.
3. **Shortlink Domain**: This is the domain that your short links will be hosted on. E.g. `yourbrand.com/link`.
-Once you have filled in the fields, click on the "Create project" button to create your project.
+Once you have filled in the fields, click on the **Create project** button to create your project.
## Onboarding checklist
diff --git a/posts/help/what-is-dub.mdx b/content/help/what-is-dub.mdx
similarity index 100%
rename from posts/help/what-is-dub.mdx
rename to content/help/what-is-dub.mdx
diff --git a/posts/legal/privacy.mdx b/content/legal/privacy.mdx
similarity index 100%
rename from posts/legal/privacy.mdx
rename to content/legal/privacy.mdx
diff --git a/posts/legal/terms.mdx b/content/legal/terms.mdx
similarity index 100%
rename from posts/legal/terms.mdx
rename to content/legal/terms.mdx
diff --git a/contentlayer.config.ts b/contentlayer.config.ts
index 5eddc4bd61..aa756e7151 100644
--- a/contentlayer.config.ts
+++ b/contentlayer.config.ts
@@ -1,13 +1,9 @@
-import {
- defineDocumentType,
- defineNestedType,
- makeSource,
-} from "contentlayer/source-files";
+import { defineDocumentType, makeSource } from "contentlayer/source-files";
import remarkGfm from "remark-gfm";
import rehypePrettyCode from "rehype-pretty-code";
import rehypeSlug from "rehype-slug";
import rehypeAutolinkHeadings from "rehype-autolink-headings";
-import slugify from "@sindresorhus/slugify";
+import GithubSlugger from "github-slugger";
import { capitalize } from "./lib/utils";
export const ChangelogPost = defineDocumentType(() => ({
@@ -115,11 +111,15 @@ const computedFields = (type: "changelog" | "help" | "legal") => ({
resolve: (doc) => {
// get all markdown heading 2 nodes (##)
const headings = doc.body.raw.match(/^##\s.+/gm);
+ const slugger = new GithubSlugger();
return (
- headings?.map((heading) => ({
- title: heading.replace(/^##\s/, ""),
- slug: slugify(heading),
- })) || []
+ headings?.map((heading) => {
+ const title = heading.replace(/^##\s/, "");
+ return {
+ title,
+ slug: slugger.slug(title),
+ };
+ }) || []
);
},
},
@@ -169,7 +169,7 @@ const computedFields = (type: "changelog" | "help" | "legal") => ({
});
export default makeSource({
- contentDirPath: "posts",
+ contentDirPath: "content",
documentTypes: [ChangelogPost, LegalPost, HelpPost],
mdx: {
remarkPlugins: [remarkGfm],
diff --git a/lib/constants/content.tsx b/lib/constants/content.tsx
index 114ccd4033..207900fb0e 100644
--- a/lib/constants/content.tsx
+++ b/lib/constants/content.tsx
@@ -7,7 +7,7 @@ export const POPULAR_ARTICLES = [
"how-to-add-custom-domain",
"how-to-use-tags",
"how-to-invite-teammates",
- "how-to-upgrade",
+ "pro-plan",
];
export const CATEGORIES: {
diff --git a/lib/constants/index.ts b/lib/constants/index.ts
index 6b21a5decf..ec9625974b 100644
--- a/lib/constants/index.ts
+++ b/lib/constants/index.ts
@@ -72,7 +72,7 @@ export const DEFAULT_REDIRECTS = {
welcome: "https://app.dub.sh/welcome",
slack: "https://dub.slack.com",
discord: "https://twitter.com/dubdotsh", // placeholder for now
- tags: "https://dub.sh/changelog/introducing-tags",
+ tags: "https://dub.sh/help/how-to-use-tags",
};
export const REDIRECT_HEADERS = {
diff --git a/package.json b/package.json
index 797e339155..8da813897e 100644
--- a/package.json
+++ b/package.json
@@ -50,6 +50,7 @@
"crisp-sdk-web": "^1.0.19",
"focus-trap-react": "^10.0.1",
"framer-motion": "^10.12.12",
+ "github-slugger": "^2.0.0",
"html-escaper": "^3.0.3",
"i": "^0.3.7",
"js-cookie": "^3.0.5",
diff --git a/pages/app/[slug]/domains.tsx b/pages/app/[slug]/domains.tsx
index f111885889..77cbd82b9a 100644
--- a/pages/app/[slug]/domains.tsx
+++ b/pages/app/[slug]/domains.tsx
@@ -6,6 +6,8 @@ import DomainCard from "@/components/app/domains/domain-card";
import useDomains from "#/lib/swr/use-domains";
import DomainCardPlaceholder from "@/components/app/domains/domain-card-placeholder";
import NoDomainsPlaceholder from "@/components/app/domains/no-domains-placeholder";
+import { InfoTooltip, TooltipContent } from "#/ui/tooltip";
+import { HOME_DOMAIN } from "#/lib/constants";
export default function ProjectDomains() {
const { id: projectId } = useProject();
@@ -20,7 +22,18 @@ export default function ProjectDomains() {
<div className="flex h-36 items-center border-b border-gray-200 bg-white">
<MaxWidthWrapper>
<div className="flex items-center justify-between">
- <h1 className="text-2xl text-gray-600">Domains</h1>
+ <div className="flex items-center space-x-2">
+ <h1 className="text-2xl text-gray-600">Domains</h1>
+ <InfoTooltip
+ content={
+ <TooltipContent
+ title="Learn more about how to add, configure, and verify custom domains on Dub."
+ href={`${HOME_DOMAIN}/help/article/how-to-add-custom-domain`}
+ cta="Learn more"
+ />
+ }
+ />
+ </div>
<AddEditDomainButton />
</div>
</MaxWidthWrapper>
diff --git a/posts/help/how-long-to-verify-domain.mdx b/posts/help/how-long-to-verify-domain.mdx
deleted file mode 100644
index 56c243cedb..0000000000
--- a/posts/help/how-long-to-verify-domain.mdx
+++ /dev/null
@@ -1,10 +0,0 @@
----
-title: How long do I have to wait when verifying my domain on Dub?
-updatedAt: 2023-07-18
-summary: A guide on how to use tags to better manage your links on Dub.s
-author: steventey
-categories:
- - custom-domains
----
-
-Here's how to use tags to better manage your links on Dub.
diff --git a/posts/help/how-to-add-custom-domain.mdx b/posts/help/how-to-add-custom-domain.mdx
deleted file mode 100644
index 920f9b6f49..0000000000
--- a/posts/help/how-to-add-custom-domain.mdx
+++ /dev/null
@@ -1,29 +0,0 @@
----
-title: How to add a custom domain to Dub
-updatedAt: 2023-07-18
-summary: Learn how to add a custom domain to Dub for free - no credit card required.
-author: steventey
-categories:
- - custom-domains
- - getting-started
-related:
- - how-long-to-verify-domain
----
-
-Dub is the only link management tool that allows you to add a custom domain for free. This guide will show you how to add a custom domain to Dub.
-
-## Prerequisites
-
-Before you begin, you'll need the following:
-
-- A Dub account. If you don't have one, you can [create one for free](https://app.dub.sh/register).
-- A domain name. If you don't have one, you can purchase one from any one of the following domain registrars:
- - [Namecheap](https://www.namecheap.com/)
- - [GoDaddy](https://www.godaddy.com/)
- - [Google Domains](https://domains.google/)
- - [Name.com](https://www.name.com/)
-
-## Step 1: Add a custom domain
-
-1. Log in to your Dub account.
-2.
diff --git a/posts/help/how-to-import-bitly-links.mdx b/posts/help/how-to-import-bitly-links.mdx
deleted file mode 100644
index 1429f818bd..0000000000
--- a/posts/help/how-to-import-bitly-links.mdx
+++ /dev/null
@@ -1,10 +0,0 @@
----
-title: How to import my Bitly links to Dub
-updatedAt: 2023-07-18
-summary: Here's how to import your Bitly links to Dub.
-author: steventey
-categories:
- - link-management
----
-
-Here's how to use tags to better manage your links on Dub.
diff --git a/posts/help/how-to-invite-teammates.mdx b/posts/help/how-to-invite-teammates.mdx
deleted file mode 100644
index 64fa1e3502..0000000000
--- a/posts/help/how-to-invite-teammates.mdx
+++ /dev/null
@@ -1,10 +0,0 @@
----
-title: How to invite teammates on Dub
-updatedAt: 2023-07-18
-summary: This article will show you how to invite teammates to Dub.
-author: steventey
-categories:
- - overview
----
-
-## Introduction
diff --git a/posts/help/how-to-upgrade.mdx b/posts/help/how-to-upgrade.mdx
deleted file mode 100644
index 902c434957..0000000000
--- a/posts/help/how-to-upgrade.mdx
+++ /dev/null
@@ -1,10 +0,0 @@
----
-title: How to upgrade to Dub Pro
-updatedAt: 2023-07-18
-summary: How to upgrade to Dub Pro?
-author: steventey
-categories:
- - overview
----
-
-## Introduction
diff --git a/posts/help/how-to-use-tags.mdx b/posts/help/how-to-use-tags.mdx
deleted file mode 100644
index bab94f46c2..0000000000
--- a/posts/help/how-to-use-tags.mdx
+++ /dev/null
@@ -1,21 +0,0 @@
----
-title: How to use Tags on Dub
-updatedAt: 2023-07-18
-summary: Learn more about what a "Tag" is and how you can use it to better manage your links on Dub.
-author: steventey
-categories:
- - link-management
----
-
-Tags are a great way to organize your links on Dub. You can use tags to group links together and make it easier to find them later.
-
-<Image
- alt="Using tags to organize links on Dub"
- src="https://d2vwwcvoksz7ty.cloudfront.net/changelog/new-tag-creation-flow.png"
- width={1824}
- height={995}
-/>
-
-## What is a Tag?
-
-A tag is a label that you can assign to a link. Tags are color coded
diff --git a/posts/help/public-stats-pages.mdx b/posts/help/public-stats-pages.mdx
deleted file mode 100644
index 8da0fbbf53..0000000000
--- a/posts/help/public-stats-pages.mdx
+++ /dev/null
@@ -1,13 +0,0 @@
----
-title: Public stats pages
-updatedAt: 2023-07-18
-summary: Learn how to create public stats pages for your Dub short links.
-author: fmerian
-categories:
- - link-management
----
-
-## Introduction
-
-- Go to your dashboard and click on the number of clicks next to the QR Code button to open the **Stats** page.
-- Click on the **Share** button and toggle **Public Stats Page** on.
diff --git a/styles/globals.css b/styles/globals.css
index 7e1774d107..c3b1377a34 100644
--- a/styles/globals.css
+++ b/styles/globals.css
@@ -15,3 +15,17 @@
@apply visible;
}
}
+
+/* Hide the react-medium-image-zoom unzoom button */
+[data-rmiz-btn-unzoom] {
+ visibility: hidden;
+}
+
+/* Style the react-medium-image-zoom image */
+[data-rmiz-modal-img] {
+ @apply border border-gray-200;
+
+ @media screen and (min-width: 768px) {
+ @apply rounded-lg;
+ }
+}
diff --git a/yarn.lock b/yarn.lock
index e0f8e016fa..ba84a480dd 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -4366,7 +4366,7 @@ get-stream@^6.0.0:
github-slugger@^2.0.0:
version "2.0.0"
- resolved "https://registry.npmjs.org/github-slugger/-/github-slugger-2.0.0.tgz"
+ resolved "https://registry.yarnpkg.com/github-slugger/-/github-slugger-2.0.0.tgz#52cf2f9279a21eb6c59dd385b410f0c0adda8f1a"
integrity sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw==
glob-parent@^5.1.2, glob-parent@~5.1.2: