From 7501ad6c09f0ff06a9279efd876efbbb6d205415 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bianchi Date: Fri, 10 Jan 2025 13:42:49 +0100 Subject: [PATCH 1/2] Add SDK/Runtime CTA - Added SDKs & Runtime call to action - Added sitemap link Signed-off-by: Jean-Baptiste Bianchi --- src/components/HtmlHead.astro | 3 +++ src/consts.ts | 3 ++- src/pages/index.astro | 13 ++++++++++++- src/pages/robots.txt.ts | 13 +++++++++++++ 4 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 src/pages/robots.txt.ts diff --git a/src/components/HtmlHead.astro b/src/components/HtmlHead.astro index 63afe95..e46f7ad 100644 --- a/src/components/HtmlHead.astro +++ b/src/components/HtmlHead.astro @@ -70,3 +70,6 @@ const pageTitle = `${DEFAULT_TITLE}${title ? ' - ' + title : ''}`; + + + \ No newline at end of file diff --git a/src/consts.ts b/src/consts.ts index de2ec28..2dd5f37 100644 --- a/src/consts.ts +++ b/src/consts.ts @@ -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'; diff --git a/src/pages/index.astro b/src/pages/index.astro index a2a3c93..951f0ec 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -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'; @@ -20,6 +20,17 @@ import { Code } from 'astro:components';

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.

The current version is 1.0.0-alpha5, get the JSON Schema here: YAML or JSON

Learn More + + Runtime diff --git a/src/pages/robots.txt.ts b/src/pages/robots.txt.ts new file mode 100644 index 0000000..bcc5259 --- /dev/null +++ b/src/pages/robots.txt.ts @@ -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)); +}; \ No newline at end of file From beaccbc74a1e2f45121345b81f3e43be7531e776 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bianchi Date: Fri, 10 Jan 2025 14:17:34 +0100 Subject: [PATCH 2/2] Removed typo Signed-off-by: Jean-Baptiste Bianchi --- src/pages/index.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index 951f0ec..60fb15d 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -27,7 +27,7 @@ import { Code } from 'astro:components';
  • Go
  • Java
  • Python
  • -
  • .TypeScript
  • +
  • TypeScript
  • Runtime