Skip to content

Commit 2971308

Browse files
committed
docs: describe the website pages for search results
The component and example pages had titles such as "Line" and descriptions such as "Description of Line component from react-chartjs-2.". They get titles with the words people search for, such as "React Line Chart Example", and descriptions of what each page shows. The overview pages and the older docs pages get better descriptions too.
1 parent c8bd307 commit 2971308

35 files changed

Lines changed: 119 additions & 35 deletions

‎website/src/content/docs/components/bar.mdx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
title: "Bar"
3-
description: "Description of Bar component from react-chartjs-2."
3+
description: "The Bar component of react-chartjs-2 renders a Chart.js bar chart in React: vertical, horizontal, stacked or grouped. See how to use it, its props and examples."
4+
head:
5+
- tag: title
6+
content: "Bar: React Bar Chart Component | react-chartjs-2"
47
---
58

69
import PropsTable from '../../../components/PropsTable.astro'

‎website/src/content/docs/components/bubble.mdx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
title: "Bubble"
3-
description: "Description of Bubble component from react-chartjs-2."
3+
description: "The Bubble component of react-chartjs-2 renders a Chart.js bubble chart in React. See how to use it, its props and an example."
4+
head:
5+
- tag: title
6+
content: "Bubble: React Bubble Chart Component | react-chartjs-2"
47
next: false
58
---
69

‎website/src/content/docs/components/chart.mdx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
title: "Chart"
3-
description: "Description of Chart component from react-chartjs-2."
3+
description: "The Chart component of react-chartjs-2 renders a Chart.js chart of any type in React, mixed charts included. See how to use it, its props and examples."
4+
head:
5+
- tag: title
6+
content: "Chart: React Component for Any Chart Type | react-chartjs-2"
47
prev: Components
58
---
69

‎website/src/content/docs/components/doughnut.mdx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
title: "Doughnut"
3-
description: "Description of Doughnut component from react-chartjs-2."
3+
description: "The Doughnut component of react-chartjs-2 renders a Chart.js doughnut chart in React. See how to use it, its props and an example."
4+
head:
5+
- tag: title
6+
content: "Doughnut: React Doughnut Chart Component | react-chartjs-2"
47
---
58

69
import PropsTable from '../../../components/PropsTable.astro'

‎website/src/content/docs/components/index.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
title: "Components"
3-
description: "List of react-chartjs-2 components."
3+
description: "react-chartjs-2 has a Chart component for any Chart.js chart and typed components for bar, line, pie, doughnut, polar area, radar, scatter and bubble charts."
4+
head:
5+
- tag: title
6+
content: "React Chart Components | react-chartjs-2"
47
prev: false
58
---
69

‎website/src/content/docs/components/line.mdx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
title: "Line"
3-
description: "Description of Line component from react-chartjs-2."
3+
description: "The Line component of react-chartjs-2 renders a Chart.js line chart in React, area and multi-axis charts included. See how to use it, its props and examples."
4+
head:
5+
- tag: title
6+
content: "Line: React Line Chart Component | react-chartjs-2"
47
---
58

69
import PropsTable from '../../../components/PropsTable.astro'

‎website/src/content/docs/components/pie.mdx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
title: "Pie"
3-
description: "Description of Pie component from react-chartjs-2."
3+
description: "The Pie component of react-chartjs-2 renders a Chart.js pie chart in React. See how to use it, its props and an example."
4+
head:
5+
- tag: title
6+
content: "Pie: React Pie Chart Component | react-chartjs-2"
47
---
58

69
import PropsTable from '../../../components/PropsTable.astro'

‎website/src/content/docs/components/polar-area.mdx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
title: "PolarArea"
3-
description: "Description of PolarArea component from react-chartjs-2."
3+
description: "The PolarArea component of react-chartjs-2 renders a Chart.js polar area chart in React. See how to use it, its props and an example."
4+
head:
5+
- tag: title
6+
content: "PolarArea: React Polar Area Chart Component | react-chartjs-2"
47
---
58

69
import PropsTable from '../../../components/PropsTable.astro'

‎website/src/content/docs/components/radar.mdx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
title: "Radar"
3-
description: "Description of Radar component from react-chartjs-2."
3+
description: "The Radar component of react-chartjs-2 renders a Chart.js radar chart in React. See how to use it, its props and an example."
4+
head:
5+
- tag: title
6+
content: "Radar: React Radar Chart Component | react-chartjs-2"
47
---
58

69
import PropsTable from '../../../components/PropsTable.astro'

‎website/src/content/docs/components/scatter.mdx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
title: "Scatter"
3-
description: "Description of Scatter component from react-chartjs-2."
3+
description: "The Scatter component of react-chartjs-2 renders a Chart.js scatter chart in React. See how to use it, its props and an example."
4+
head:
5+
- tag: title
6+
content: "Scatter: React Scatter Chart Component | react-chartjs-2"
47
---
58

69
import PropsTable from '../../../components/PropsTable.astro'

0 commit comments

Comments
 (0)