diff --git a/docs/components/DeploymentCards.jsx b/docs/components/DeploymentCards.jsx new file mode 100644 index 00000000..2c896476 --- /dev/null +++ b/docs/components/DeploymentCards.jsx @@ -0,0 +1,114 @@ +import Image from 'next/image'; + +const iconMap = { + 'Deploy on Civo Compute Cloud': '/civo.png', + 'Deploy on DigitalOcean Droplet': '/digitalocean.png', + 'Deploy on Kamatera Cloud': '/kamatera.png', +}; + + +export function DeploymentCards({ items }) { + return ( + <> +
+ {items.map(({ title, link, description }) => { + const isExternal = link.startsWith('https://'); + const iconSrc = iconMap[title] || '/default-icon.png'; // Default icon if not found + + return ( +
+ +
+ {iconSrc &&
{title}
} {/* Reduced icon size */} +
+

{title}

+ {description &&

{description}

} +

{new URL(link).hostname.replace('www.', '')}

+
+
+ ); + })} +
+ + + + ); +} \ No newline at end of file diff --git a/docs/pages/Deploying/Hosting-the-app.md b/docs/pages/Deploying/Hosting-the-app.mdx similarity index 83% rename from docs/pages/Deploying/Hosting-the-app.md rename to docs/pages/Deploying/Hosting-the-app.mdx index 5f527aa1..f06f0379 100644 --- a/docs/pages/Deploying/Hosting-the-app.md +++ b/docs/pages/Deploying/Hosting-the-app.mdx @@ -1,3 +1,7 @@ +import { DeploymentCards } from '../../components/DeploymentCards'; + + + # Self-hosting DocsGPT on Amazon Lightsail Here's a step-by-step guide on how to set up an Amazon Lightsail instance to host DocsGPT. @@ -105,6 +109,22 @@ Your instance is now available at your Public IP Address on port 5173. Enjoy usi ## Other Deployment Options -- [Deploy DocsGPT on Civo Compute Cloud](https://dev.to/rutamhere/deploying-docsgpt-on-civo-compute-c) -- [Deploy DocsGPT on DigitalOcean Droplet](https://dev.to/rutamhere/deploying-docsgpt-on-digitalocean-droplet-50ea) -- [Deploy DocsGPT on Kamatera Performance Cloud](https://dev.to/rutamhere/deploying-docsgpt-on-kamatera-performance-cloud-1bj) + diff --git a/docs/public/digitalocean.png b/docs/public/digitalocean.png new file mode 100644 index 00000000..2d90824a Binary files /dev/null and b/docs/public/digitalocean.png differ