From 07f6c54f22f4b722b2ee8e34f1cd8c2dcce4b0f1 Mon Sep 17 00:00:00 2001 From: Everett Pompeii Date: Fri, 6 Oct 2023 09:58:55 -0400 Subject: [PATCH] open_graph --- .vscode/settings.json | 3 + services/console/astro.config.mjs | 13 ++- services/console/public/robots.txt | 3 + .../console/perf/plot/PlotHeader.tsx | 10 +-- .../console/src/components/site/Footer.tsx | 73 +++++++++++----- services/console/src/content/config.ts | 5 ++ .../src/content/explanation/adapters.mdx | 1 + .../src/content/explanation/bencher-run.mdx | 1 + .../src/content/explanation/benchmarking.mdx | 1 + .../content/explanation/branch-selection.mdx | 1 + .../explanation/continuous-benchmarking.mdx | 1 + .../console/src/content/explanation/talks.mdx | 1 + .../src/content/explanation/thresholds.mdx | 1 + .../src/content/how_to/github-actions.mdx | 1 + .../src/content/how_to/gitlab-ci-cd.mdx | 1 + .../src/content/how_to/install-cli.mdx | 1 + .../src/content/how_to/track-benchmarks.mdx | 1 + .../console/src/content/legal/license.mdx | 1 + services/console/src/content/legal/plus.mdx | 1 + .../console/src/content/legal/privacy.mdx | 1 + .../src/content/legal/subscription.mdx | 1 + .../src/content/legal/terms-of-use.mdx | 1 + .../src/content/reference/changelog.mdx | 1 + .../src/content/reference/prior-art.mdx | 1 + .../console/src/content/reference/roadmap.mdx | 1 + .../src/content/reference/server-config.mdx | 85 ++++++++++--------- .../console/src/content/tutorial/docker.mdx | 1 + .../src/content/tutorial/quick-start.mdx | 1 + services/console/src/layouts/BaseLayout.astro | 39 ++++----- .../console/src/layouts/docs/DocsLayout.astro | 9 +- .../src/layouts/legal/LegalLayout.astro | 9 +- .../console/src/layouts/perf/PerfLayout.astro | 6 +- services/console/src/pages/404.astro | 6 +- .../src/pages/docs/explanation/[slug].astro | 6 +- .../src/pages/docs/how-to/[slug].astro | 6 +- services/console/src/pages/docs/index.astro | 4 +- .../src/pages/docs/reference/[slug].astro | 6 +- .../src/pages/docs/reference/api.astro | 3 +- .../pages/docs/reference/architecture.astro | 3 +- .../src/pages/docs/tutorial/[slug].astro | 6 +- .../src/pages/docs/tutorial/quick-start.astro | 1 + services/console/src/pages/help.astro | 4 +- services/console/src/pages/index.astro | 14 +-- services/console/src/pages/legal/[slug].astro | 6 +- services/console/src/pages/legal/index.astro | 6 +- .../console/src/pages/perf/[project].astro | 5 +- services/console/src/pages/perf/index.astro | 6 +- services/console/src/pages/pricing.astro | 17 ++-- 48 files changed, 252 insertions(+), 123 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index aa5f57c75..ff046d655 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -16,6 +16,9 @@ "editor.formatOnSave": true, "editor.defaultFormatter": "rust-lang.rust-analyzer" }, + "[astro]": { + "editor.formatOnSave": false, + }, "[javascript]": { "editor.formatOnSave": true, "editor.defaultFormatter": "rome.rome" diff --git a/services/console/astro.config.mjs b/services/console/astro.config.mjs index 3e0a474d9..f21ff09b8 100644 --- a/services/console/astro.config.mjs +++ b/services/console/astro.config.mjs @@ -13,7 +13,9 @@ export default defineConfig({ output: "hybrid", integrations: [ // https://docs.astro.build/en/guides/integrations-guide/sitemap - sitemap(), + sitemap({ + filter: sitemapFilter, + }), // https://docs.astro.build/en/guides/integrations-guide/mdx mdx(), // https://docs.astro.build/en/guides/integrations-guide/partytown @@ -34,3 +36,12 @@ export default defineConfig({ remarkPlugins: [remarkGfm], }, }); + +// https://docs.astro.build/en/guides/integrations-guide/sitemap/#filter +const sitemapFilter = (page) => + !( + page.includes("bencher.dev/console") || + page.includes("bencher.dev/chat") || + page.includes("bencher.dev/demo") || + page.includes("bencher.dev/repo") + ); diff --git a/services/console/public/robots.txt b/services/console/public/robots.txt index 0c3d4adb3..3b20e84ca 100644 --- a/services/console/public/robots.txt +++ b/services/console/public/robots.txt @@ -1,5 +1,8 @@ User-agent: * Disallow: /console$ Disallow: /console/ +Disallow: /chat$ Disallow: /demo$ Disallow: /repo$ + +Sitemap: https://bencher.dev/sitemap-index.xml diff --git a/services/console/src/components/console/perf/plot/PlotHeader.tsx b/services/console/src/components/console/perf/plot/PlotHeader.tsx index ce7bf70df..63aa5d213 100644 --- a/services/console/src/components/console/perf/plot/PlotHeader.tsx +++ b/services/console/src/components/console/perf/plot/PlotHeader.tsx @@ -164,11 +164,11 @@ const PlotHeader = (props: Props) => { class="icon-text" data-tooltip="Display lower/upper Metric values" > - ⠀Value + Value