Browse Source

fix: reference links

MarkSackerberg 1 year ago
parent
commit
d3d871410a

+ 1 - 0
markdoc/tags.js

@@ -55,6 +55,7 @@ const tags = {
       description: { type: String },
       icon: { type: String },
       href: { type: String },
+      target: { type: String }
     },
   },
   'product-grid': {

+ 2 - 2
src/components/QuickLinks.jsx

@@ -10,7 +10,7 @@ export function QuickLinks({ children }) {
   )
 }
 
-export function QuickLink({ title, description, href, icon }) {
+export function QuickLink({ title, description, href, target, icon }) {
   return (
     <div className="group relative rounded-xl border border-slate-200 dark:border-slate-800">
       <div className="absolute -inset-px rounded-xl border-2 border-transparent opacity-0 [background:linear-gradient(var(--quick-links-hover-bg,theme(colors.sky.50)),var(--quick-links-hover-bg,theme(colors.sky.50)))_padding-box,linear-gradient(to_bottom,var(--quick-links-hover-border))_border-box] group-hover:opacity-100 dark:[--quick-links-hover-bg:theme(colors.slate.800)]" />
@@ -20,7 +20,7 @@ export function QuickLink({ title, description, href, icon }) {
           className="h-8 w-8 group-hover:text-accent-600 dark:group-hover:text-accent-500"
         />
         <h2 className="mt-4 font-display text-base text-slate-900 dark:text-white">
-          <Link href={href}>
+          <Link href={href} target={target}>
             <span className="absolute -inset-px rounded-xl" />
             {title}
           </Link>

+ 1 - 1
src/pages/bubblegum/index.md

@@ -10,7 +10,7 @@ Bubblegum is the Metaplex Protocol program for creating and interacting with co
 
 {% quick-link title="Getting Started" icon="InboxArrowDown" href="/bubblegum/getting-started" description="Find the language or library of your choice and get started with compressed NFTs." /%}
 
-{% quick-link title="API reference" icon="CodeBracketSquare" href="/bubblegum/references" description="Looking for something specific? Have a peak at our API References and find your answer." /%}
+{% quick-link title="API reference" icon="CodeBracketSquare" href="https://mpl-bubblegum-js-docs.vercel.app/" target="_blank" description="Looking for something specific? Have a peak at our API References and find your answer." /%}
 
 {% /quick-links %}
 

+ 1 - 1
src/pages/candy-machine-4/index.md

@@ -15,7 +15,7 @@ The name refers to the vending machines that dispense candy for coins via a mech
 
 {% quick-link title="Getting Started" icon="InboxArrowDown" href="/candy-machine/getting-started" description="Find the language or library of your choice and get started with Candy Machines." /%}
 {% quick-link title="Recipes" icon="RectangleStack" href="/candy-machine/recipes" description="Learn various scenarios by reading concrete code examples." /%}
-{% quick-link title="API reference" icon="CodeBracketSquare" href="/candy-machine/references" description="Looking for something specific? We've got you." /%}
+{% quick-link title="API reference" icon="CodeBracketSquare" href="https://mpl-core-candy-machine-js-docs.vercel.app/" target="_blank" description="Looking for something specific? We've got you." /%}
 {% /quick-links %}
 
 {% callout %}

+ 1 - 1
src/pages/candy-machine/index.md

@@ -15,7 +15,7 @@ The name refers to the vending machines that dispense candy for coins via a mech
 
 {% quick-link title="Getting Started" icon="InboxArrowDown" href="/candy-machine/getting-started" description="Find the language or library of your choice and get started with Candy Machines." /%}
 {% quick-link title="Recipes" icon="RectangleStack" href="/candy-machine/recipes" description="Learn various scenarios by reading concrete code examples." /%}
-{% quick-link title="API reference" icon="CodeBracketSquare" href="/candy-machine/references" description="Looking for something specific? We've got you." /%}
+{% quick-link title="API reference" icon="CodeBracketSquare" href="https://mpl-candy-machine-js-docs.vercel.app/" target="_blank" description="Looking for something specific? We've got you." /%}
 {% /quick-links %}
 
 {% callout %}

+ 1 - 1
src/pages/core/index.md

@@ -14,7 +14,7 @@ This next generation Solana NFT standard uses a single account design, reducing
 
 {% quick-link title="Getting Started" icon="InboxArrowDown" href="/core/getting-started" description="Find the language or library of your choice and get started with digital assets on Solana." /%}
 
-{% quick-link title="API reference" icon="CodeBracketSquare" href="/core/references" description="Looking for something specific? Have a peak at our API References and find your answer." /%}
+{% quick-link title="API reference" icon="CodeBracketSquare" href="https://mpl-core-js-docs.vercel.app/" target="_blank" description="Looking for something specific? Have a peak at our API References and find your answer." /%}
 
 {% quick-link title="Differences to MPL Token Metadata Overview" icon="AcademicCap" href="/core/tm-differences" description="Used to Token Metadata and want to see an overview of new features or changes behaviour?" /%}
 

+ 1 - 1
src/pages/inscription/index.md

@@ -10,7 +10,7 @@ The Metaplex Inscription Program allows you to write data directly to Solana, us
 
 {% quick-link title="Getting Started" icon="InboxArrowDown" href="/inscription/getting-started" description="Find the language or library of your choice and get started with digital assets on Solana." /%}
 
-{% quick-link title="API reference" icon="CodeBracketSquare" href="/inscription/references" description="Looking for something specific? Have a peak at our API References and find your answer." /%}
+{% quick-link title="API reference" icon="CodeBracketSquare" href="https://mpl-inscription-js-docs.vercel.app/" target="_blank" description="Looking for something specific? Have a peak at our API References and find your answer." /%}
 
 {% /quick-links %}
 

+ 1 - 1
src/pages/token-metadata/index.md

@@ -10,7 +10,7 @@ The Token Metadata program is a fundamental program when dealing NFTs and Fungib
 
 {% quick-link title="Getting Started" icon="InboxArrowDown" href="/token-metadata/getting-started" description="Find the language or library of your choice and get started with digital assets on Solana." /%}
 
-{% quick-link title="API reference" icon="CodeBracketSquare" href="/token-metadata/references" description="Looking for something specific? Have a peak at our API References and find your answer." /%}
+{% quick-link title="API reference" icon="CodeBracketSquare" href="https://mpl-token-metadata-js-docs.vercel.app/" target="_blank" description="Looking for something specific? Have a peak at our API References and find your answer." /%}
 
 {% /quick-links %}
 

+ 1 - 1
src/pages/umi/index.md

@@ -12,7 +12,7 @@ Umi is a modular framework for building and using JavaScript clients for Solana
 
 {% quick-link title="Getting Started" icon="InboxArrowDown" href="/umi/getting-started" description="Find the language or library of your choice and get started essentials programs." /%}
 
-{% quick-link title="API reference" icon="CodeBracketSquare" href="/umi/references" description="Looking for something specific? Have a peak at our API References and find your answer." /%}
+{% quick-link title="API reference" icon="CodeBracketSquare" href="https://umi-docs.vercel.app/" target="_blank" description="Looking for something specific? Have a peak at our API References and find your answer." /%}
 
 {% /quick-links %}