From 81b6d2c98abea28ea88bf64df48505f4b50105d0 Mon Sep 17 00:00:00 2001 From: Alexandre Fauquette <45398769+alexfauquette@users.noreply.github.com> Date: Thu, 20 Jun 2024 17:13:41 +0200 Subject: [PATCH] [docs] Remove "-" in heat-map and tree-map urls (#13569) --- docs/data/charts/{heat-map/heat-map.md => heatmap/heatmap.md} | 0 docs/data/charts/{tree-map/tree-map.md => treemap/treemap.md} | 0 docs/data/pages.ts | 4 ++-- docs/pages/x/react-charts/{heat-map.js => heatmap.js} | 2 +- docs/pages/x/react-charts/{tree-map.js => treemap.js} | 2 +- docs/public/_redirects | 2 ++ docs/src/modules/components/ChartComponentsGrid.js | 4 ++-- 7 files changed, 8 insertions(+), 6 deletions(-) rename docs/data/charts/{heat-map/heat-map.md => heatmap/heatmap.md} (100%) rename docs/data/charts/{tree-map/tree-map.md => treemap/treemap.md} (100%) rename docs/pages/x/react-charts/{heat-map.js => heatmap.js} (68%) rename docs/pages/x/react-charts/{tree-map.js => treemap.js} (68%) diff --git a/docs/data/charts/heat-map/heat-map.md b/docs/data/charts/heatmap/heatmap.md similarity index 100% rename from docs/data/charts/heat-map/heat-map.md rename to docs/data/charts/heatmap/heatmap.md diff --git a/docs/data/charts/tree-map/tree-map.md b/docs/data/charts/treemap/treemap.md similarity index 100% rename from docs/data/charts/tree-map/tree-map.md rename to docs/data/charts/treemap/treemap.md diff --git a/docs/data/pages.ts b/docs/data/pages.ts index b9b9e91b240e9..65822bf579881 100644 --- a/docs/data/pages.ts +++ b/docs/data/pages.ts @@ -460,9 +460,9 @@ const pages: MuiPage[] = [ subheader: 'Future components', children: [ { pathname: '/x/react-charts/radar', planned: true }, - { pathname: '/x/react-charts/tree-map', title: 'Treemap', planned: true }, + { pathname: '/x/react-charts/treemap', title: 'Treemap', planned: true }, { - pathname: '/x/react-charts/heat-map', + pathname: '/x/react-charts/heatmap', title: 'Heatmap', plan: 'pro', planned: true, diff --git a/docs/pages/x/react-charts/heat-map.js b/docs/pages/x/react-charts/heatmap.js similarity index 68% rename from docs/pages/x/react-charts/heat-map.js rename to docs/pages/x/react-charts/heatmap.js index 1ca391b5fe221..64f12f23f6eaa 100644 --- a/docs/pages/x/react-charts/heat-map.js +++ b/docs/pages/x/react-charts/heatmap.js @@ -1,6 +1,6 @@ import * as React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; -import * as pageProps from 'docsx/data/charts/heat-map/heat-map.md?muiMarkdown'; +import * as pageProps from 'docsx/data/charts/heatmap/heatmap.md?muiMarkdown'; export default function Page() { return ; diff --git a/docs/pages/x/react-charts/tree-map.js b/docs/pages/x/react-charts/treemap.js similarity index 68% rename from docs/pages/x/react-charts/tree-map.js rename to docs/pages/x/react-charts/treemap.js index 227f21269d4ae..a3f717eada207 100644 --- a/docs/pages/x/react-charts/tree-map.js +++ b/docs/pages/x/react-charts/treemap.js @@ -1,6 +1,6 @@ import * as React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; -import * as pageProps from 'docsx/data/charts/tree-map/tree-map.md?muiMarkdown'; +import * as pageProps from 'docsx/data/charts/treemap/treemap.md?muiMarkdown'; export default function Page() { return ; diff --git a/docs/public/_redirects b/docs/public/_redirects index e2f314a49a5bc..07d154b734023 100644 --- a/docs/public/_redirects +++ b/docs/public/_redirects @@ -59,5 +59,7 @@ /x/react-date-pickers/calendar/ /x/react-date-pickers/date-calendar/ 301 /x/react-date-pickers/legacy-date-time-picker/ /x/react-date-pickers/date-time-picker/ 301 # 2024 +/x/react-charts/heat-map/ /x/react-charts/heatmap/ 301 +/x/react-charts/tree-map/ /x/react-charts/treemap/ 301 # Proxies diff --git a/docs/src/modules/components/ChartComponentsGrid.js b/docs/src/modules/components/ChartComponentsGrid.js index c981309f64ca7..8752ad0ec1fc0 100644 --- a/docs/src/modules/components/ChartComponentsGrid.js +++ b/docs/src/modules/components/ChartComponentsGrid.js @@ -57,14 +57,14 @@ function getComponents() { title: 'Treemap', srcLight: '/static/x/component-illustrations/treemap-light.png', srcDark: '/static/x/component-illustrations/treemap-dark.png', - href: '/x/react-charts/tree-map/', + href: '/x/react-charts/treemap/', planned: true, }, { title: 'Heatmap', srcLight: '/static/x/component-illustrations/heatmap-light.png', srcDark: '/static/x/component-illustrations/heatmap-dark.png', - href: '/x/react-charts/heat-map/', + href: '/x/react-charts/heatmap/', planned: true, pro: true, },