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