Skip to content

Commit

Permalink
Merge pull request #223 from neuroglia-io/fix-222-sdk-runtime-cta
Browse files Browse the repository at this point in the history
Add SDK/Runtime CTA
  • Loading branch information
ricardozanini authored Jan 10, 2025
2 parents 86a7501 + beaccbc commit 02d054c
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/components/HtmlHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,6 @@ const pageTitle = `${DEFAULT_TITLE}${title ? ' - ' + title : ''}`;
<meta property="twitter:title" content={pageTitle} />
<meta property="twitter:description" content={description} />
<meta property="twitter:image" content={new URL(image, Astro.url)} />

<!-- Sitemap -->
<link rel="sitemap" href="/sitemap-index.xml" />
3 changes: 2 additions & 1 deletion src/consts.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
export const DEFAULT_TITLE = 'Serverless Workflow';
export const DEFAULT_DESC = `Serverless Workflow presents a vendor-neutral, open-source, and entirely community-driven ecosystem tailored for defining and executing DSL-based workflows in the realm of Serverless technology.`;

export const GITHUB_LINK = 'https://github.com/serverlessworkflow/specification/';
export const GITHUB_ORG = 'https://github.com/serverlessworkflow/';
export const GITHUB_LINK = GITHUB_ORG + 'specification/';
export const SLACK_LINK = 'https://slack.cncf.io/';
export const X_TWITTER_LINK = 'https://x.com/cncfworkflow';
export const LINKEDIN_LINK = 'https://www.linkedin.com/company/serverless-workflow/posts';
Expand Down
13 changes: 12 additions & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import { GITHUB_LINK } from '../consts';
import { GITHUB_LINK, GITHUB_ORG } from '../consts';
import Layout from '../layouts/Layout.astro';
import Card from '../components/Card.astro';
import Section from '../components/Section.astro';
Expand All @@ -20,6 +20,17 @@ import { Code } from 'astro:components';
<p class="pt-6">Serverless Workflow presents a vendor-neutral, open-source, and entirely community-driven ecosystem tailored for defining and executing DSL-based workflows in the realm of Serverless technology.</p>
<p class="py-6">The current version is <span class="font-bold">1.0.0-alpha5</span>, get the JSON Schema here: <a class="link link-accent" href="/schemas/1.0.0-alpha5/workflow.yaml" target="_blank" rel="noopener">YAML</a> or <a class="link link-accent" href="/schemas/1.0.0-alpha5/workflow.json" target="_blank" rel="noopener">JSON</a></p>
<a class="btn btn-accent border-accent bg-base-100 text-accent" href={GITHUB_LINK + 'blob/main/README.md'} target="_blank" rel="noopener">Learn More</a>
<div class="dropdown dropdown-hover">
<div tabindex="0" role="button" class="btn btn-primary border-primary bg-base-100 text-primary">SDK</div>
<ul tabindex="0" class="dropdown-content menu bg-base-100 rounded-box z-[1] w-52 p-2 shadow">
<li><a href={GITHUB_ORG + 'sdk-net'} target="_blank" rel="noopener">.NET</a></li>
<li><a href={GITHUB_ORG + 'sdk-go'} target="_blank" rel="noopener">Go</a></li>
<li><a href={GITHUB_ORG + 'sdk-java'} target="_blank" rel="noopener">Java</a></li>
<li><a href={GITHUB_ORG + 'sdk-python'} target="_blank" rel="noopener">Python</a></li>
<li><a href={GITHUB_ORG + 'sdk-typescript'} target="_blank" rel="noopener">TypeScript</a></li>
</ul>
</div>
<a class="btn btn-secondary border-secondary bg-base-100 text-secondary" href={GITHUB_ORG + 'synapse'} target="_blank" rel="noopener">Runtime</a>
</div>
</div>
</div>
Expand Down
13 changes: 13 additions & 0 deletions src/pages/robots.txt.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type { APIRoute } from 'astro';

const getRobotsTxt = (sitemapURL: URL) => `
User-agent: *
Allow: /
Sitemap: ${sitemapURL.href}
`;

export const GET: APIRoute = ({ site }) => {
const sitemapURL = new URL('sitemap-index.xml', site);
return new Response(getRobotsTxt(sitemapURL));
};

0 comments on commit 02d054c

Please sign in to comment.