diff --git a/docs/charts/basic/data.ts b/docs/charts/_lib/data.ts similarity index 100% rename from docs/charts/basic/data.ts rename to docs/charts/_lib/data.ts diff --git a/docs/charts/basic/area-chart.mdx b/docs/charts/basic/area-chart.mdx index 9ad0390..18b4ee0 100644 --- a/docs/charts/basic/area-chart.mdx +++ b/docs/charts/basic/area-chart.mdx @@ -60,7 +60,7 @@ export default function Example() { ## Animation Disabled ```tsx preview -import { chartDataMedium } from "@/docs/charts/basic/data"; +import { chartDataMedium } from "@/docs/charts/_lib/data"; import { AreaChart } from '@/ui/charts/AreaChart'; export default function Example() { @@ -73,7 +73,7 @@ export default function Example() { ## Large data series ```tsx preview -import { chartDataLarge } from "@/docs/charts/basic/data"; +import { chartDataLarge } from "@/docs/charts/_lib/data"; import { AreaChart } from '@/ui/charts/AreaChart'; export default function Example() { @@ -86,7 +86,7 @@ export default function Example() { ## Maximum data series ```tsx preview -import { chartDataMaximum } from "@/docs/charts/basic/data"; +import { chartDataMaximum } from "@/docs/charts/_lib/data"; import { AreaChart } from '@/ui/charts/AreaChart'; export default function Example() { diff --git a/docs/charts/basic/bar-chart.mdx b/docs/charts/basic/bar-chart.mdx index 11d43f5..ec5d538 100644 --- a/docs/charts/basic/bar-chart.mdx +++ b/docs/charts/basic/bar-chart.mdx @@ -60,7 +60,7 @@ export default function Example() { ## Animation Disabled ```tsx preview -import { chartDataMedium } from "@/docs/charts/basic/data"; +import { chartDataMedium } from "@/docs/charts/_lib/data"; import { BarChart } from '@/ui/charts/BarChart'; export default function Example() { @@ -73,7 +73,7 @@ export default function Example() { ## Large data series ```tsx preview -import { chartDataLarge } from "@/docs/charts/basic/data"; +import { chartDataLarge } from "@/docs/charts/_lib/data"; import { BarChart } from '@/ui/charts/BarChart'; export default function Example() { @@ -86,7 +86,7 @@ export default function Example() { ## Maximum data series ```tsx preview -import { chartDataMaximum } from "@/docs/charts/basic/data"; +import { chartDataMaximum } from "@/docs/charts/_lib/data"; import { BarChart } from '@/ui/charts/BarChart'; export default function Example() { diff --git a/docs/charts/basic/line-plot.mdx b/docs/charts/basic/line-plot.mdx index 6b6ef49..c6533f8 100644 --- a/docs/charts/basic/line-plot.mdx +++ b/docs/charts/basic/line-plot.mdx @@ -60,7 +60,7 @@ export default function Example() { ## Animation Disabled ```tsx preview -import { chartDataMedium } from "@/docs/charts/basic/data"; +import { chartDataMedium } from "@/docs/charts/_lib/data"; import { LinePlot } from '@/ui/charts/LinePlot'; export default function Example() { @@ -73,7 +73,7 @@ export default function Example() { ## Large data series ```tsx preview -import { chartDataLarge } from "@/docs/charts/basic/data"; +import { chartDataLarge } from "@/docs/charts/_lib/data"; import { LinePlot } from '@/ui/charts/LinePlot'; export default function Example() { @@ -86,7 +86,7 @@ export default function Example() { ## Maximum data series ```tsx preview -import { chartDataMaximum } from "@/docs/charts/basic/data"; +import { chartDataMaximum } from "@/docs/charts/_lib/data"; import { LinePlot } from '@/ui/charts/LinePlot'; export default function Example() { diff --git a/docs/charts/basic/pie-chart.mdx b/docs/charts/basic/pie-chart.mdx index 905e893..d08e629 100644 --- a/docs/charts/basic/pie-chart.mdx +++ b/docs/charts/basic/pie-chart.mdx @@ -60,7 +60,7 @@ export default function Example() { ## Animation Disabled ```tsx preview -import { chartDataMedium } from "@/docs/charts/basic/data"; +import { chartDataMedium } from "@/docs/charts/_lib/data"; import { PieChart } from '@/ui/charts/PieChart'; export default function Example() { @@ -73,7 +73,7 @@ export default function Example() { ## Large data series ```tsx preview -import { chartDataLarge } from "@/docs/charts/basic/data"; +import { chartDataLarge } from "@/docs/charts/_lib/data"; import { PieChart } from '@/ui/charts/PieChart'; export default function Example() { @@ -86,7 +86,7 @@ export default function Example() { ## Maximum data series ```tsx preview -import { chartDataMaximum } from "@/docs/charts/basic/data"; +import { chartDataMaximum } from "@/docs/charts/_lib/data"; import { PieChart } from '@/ui/charts/PieChart'; export default function Example() { diff --git a/docs/charts/basic/radar-chart.mdx b/docs/charts/basic/radar-chart.mdx index 25357b0..6c49c60 100644 --- a/docs/charts/basic/radar-chart.mdx +++ b/docs/charts/basic/radar-chart.mdx @@ -46,7 +46,7 @@ export default function Example() { ``` ```tsx preview -import { radarDataMedium } from "@/docs/charts/basic/data"; +import { radarDataMedium } from "@/docs/charts/_lib/data"; import { RadarChart } from '@/ui/charts/RadarChart'; export default function Example() { @@ -59,7 +59,7 @@ export default function Example() { ## Large data series ```tsx preview -import { radarDataLarge } from "@/docs/charts/basic/data"; +import { radarDataLarge } from "@/docs/charts/_lib/data"; import { RadarChart } from '@/ui/charts/RadarChart'; export default function Example() { @@ -72,7 +72,7 @@ export default function Example() { ## Maximum data series ```tsx preview -import { radarDataBig } from "@/docs/charts/basic/data"; +import { radarDataBig } from "@/docs/charts/_lib/data"; import { RadarChart } from '@/ui/charts/RadarChart'; export default function Example() { diff --git a/rspress.config.ts b/rspress.config.ts index 5432ccc..888f338 100644 --- a/rspress.config.ts +++ b/rspress.config.ts @@ -7,6 +7,9 @@ import { defineConfig } from "rspress/config"; export default defineConfig({ globalStyles: path.join(__dirname, "styles", "index.css"), root: path.join(__dirname, "docs"), + route: { + exclude: ["**/_lib/*.*"] + }, title: "WindCraftUI", description: "React Template Components", icon: "/windcraft-logo.webp",