Skip to content

Commit 6b6c188

Browse files
authored
docs: move the website to Starlight (#1367)
1 parent 0a1b705 commit 6b6c188

110 files changed

Lines changed: 5843 additions & 14362 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/checks.yml‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,5 @@ jobs:
9292
cache: 'pnpm'
9393
- name: Install dependencies
9494
run: pnpm install
95-
- name: Install website dependencies
96-
run: pnpm install
97-
working-directory: ./website
9895
- name: Build website
99-
run: pnpm build
100-
working-directory: ./website
96+
run: pnpm docs:build

‎.github/workflows/website.yml‎

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,14 @@ jobs:
2828
cache: 'pnpm'
2929
- name: Install dependencies
3030
run: pnpm install
31-
- name: Install website dependencies
32-
run: pnpm install
33-
working-directory: ./website
34-
- name: Build sandboxes
35-
run: pnpm sandboxes:build
36-
- name: Copy sandboxes to website
37-
run: node sandboxes.js
38-
working-directory: ./website
3931
- name: Build website
40-
run: pnpm build
41-
working-directory: ./website
32+
run: pnpm docs:build
4233
- name: Setup Pages
4334
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
4435
- name: Upload artifact
4536
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
4637
with:
47-
path: './website/build'
38+
path: './website/dist'
4839
deploy:
4940
needs: build
5041
environment:

‎README.md‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# react-chartjs-2
22

3-
<img align="right" width="150" height="150" alt="Logo" src="website/static/img/logo.svg">
3+
<img align="right" width="150" height="150" alt="Logo" src="website/src/assets/logo.svg">
44

55
React components for <a href="https://www.chartjs.org">Chart.js</a>, the most popular charting library.
66

@@ -24,15 +24,15 @@ Supports Chart.js v4 and v3.
2424
[coverage]: https://img.shields.io/codecov/c/github/reactchartjs/react-chartjs-2.svg
2525
[coverage-url]: https://app.codecov.io/gh/reactchartjs/react-chartjs-2
2626

27-
[size]: https://img.shields.io/bundlephobia/minzip/react-chartjs-2
28-
[size-url]: https://bundlephobia.com/package/react-chartjs-2
27+
[size]: https://img.shields.io/bundlejs/size/react-chartjs-2?externals=chart.js,react
28+
[size-url]: https://bundlejs.com/?q=react-chartjs-2&config=%7B%22esbuild%22%3A%7B%22external%22%3A%5B%22chart.js%22%2C%22react%22%5D%7D%7D
2929

3030
<br />
3131
<a href="#quickstart">Quickstart</a>
3232
<span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
3333
<a href="#docs">Docs</a>
3434
<span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
35-
<a href="https://stackoverflow.com/questions/tagged/react-chartjs-2">Stack Overflow</a>
35+
<a href="https://react-chartjs-2.js.org/faq/">FAQ</a>
3636
<br />
3737
<hr />
3838

@@ -60,13 +60,13 @@ import { Doughnut } from 'react-chartjs-2';
6060

6161
## Docs
6262

63-
- [Migration to v6](https://react-chartjs-2.js.org/docs/migration-to-v6)
64-
- [Migration to v4](https://react-chartjs-2.js.org/docs/migration-to-v4)
65-
- [Working with datasets](https://react-chartjs-2.js.org/docs/working-with-datasets)
66-
- [Working with events](https://react-chartjs-2.js.org/docs/working-with-events)
67-
- [FAQ](https://react-chartjs-2.js.org/faq)
68-
- [Components](https://react-chartjs-2.js.org/components)
69-
- [Examples](https://react-chartjs-2.js.org/examples)
63+
- [Migration to v6](https://react-chartjs-2.js.org/docs/migration-to-v6/)
64+
- [Migration to v4](https://react-chartjs-2.js.org/docs/migration-to-v4/)
65+
- [Working with datasets](https://react-chartjs-2.js.org/docs/working-with-datasets/)
66+
- [Working with events](https://react-chartjs-2.js.org/docs/working-with-events/)
67+
- [FAQ](https://react-chartjs-2.js.org/faq/)
68+
- [Components](https://react-chartjs-2.js.org/components/)
69+
- [Examples](https://react-chartjs-2.js.org/examples/)
7070

7171
## License
7272

‎oxlint.config.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ export default defineConfig({
1212
'**/package/',
1313
'**/coverage/',
1414
'**/storybook-static/',
15-
'website/'
15+
'**/.astro/',
16+
'website/public/sandboxes/'
1617
],
1718
options: {
1819
typeAware: true,

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"storybook": "storybook dev -p 6006 --no-open",
5555
"storybook:build": "storybook build",
5656
"sandboxes:build": "pnpm -r --filter \"./sandboxes/**\" build",
57+
"docs:build": "run sandboxes:build [ pnpm --filter website build ]",
5758
"lint": "oxlint",
5859
"test:unit": "vitest run --coverage",
5960
"test:unit:watch": "vitest watch",

0 commit comments

Comments
 (0)