Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,5 @@ jobs:
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Install website dependencies
run: pnpm install
working-directory: ./website
- name: Build website
run: pnpm build
working-directory: ./website
run: pnpm docs:build
13 changes: 2 additions & 11 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,14 @@ jobs:
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Install website dependencies
run: pnpm install
working-directory: ./website
- name: Build sandboxes
run: pnpm sandboxes:build
- name: Copy sandboxes to website
run: node sandboxes.js
working-directory: ./website
- name: Build website
run: pnpm build
working-directory: ./website
run: pnpm docs:build
- name: Setup Pages
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
- name: Upload artifact
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: './website/build'
path: './website/dist'
deploy:
needs: build
environment:
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# react-chartjs-2

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

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

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

[size]: https://img.shields.io/bundlephobia/minzip/react-chartjs-2
[size-url]: https://bundlephobia.com/package/react-chartjs-2
[size]: https://img.shields.io/bundlejs/size/react-chartjs-2?externals=chart.js,react
[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

<br />
<a href="#quickstart">Quickstart</a>
<span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
<a href="#docs">Docs</a>
<span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
<a href="https://stackoverflow.com/questions/tagged/react-chartjs-2">Stack Overflow</a>
<a href="https://react-chartjs-2.js.org/faq/">FAQ</a>
<br />
<hr />

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

## Docs

- [Migration to v6](https://react-chartjs-2.js.org/docs/migration-to-v6)
- [Migration to v4](https://react-chartjs-2.js.org/docs/migration-to-v4)
- [Working with datasets](https://react-chartjs-2.js.org/docs/working-with-datasets)
- [Working with events](https://react-chartjs-2.js.org/docs/working-with-events)
- [FAQ](https://react-chartjs-2.js.org/faq)
- [Components](https://react-chartjs-2.js.org/components)
- [Examples](https://react-chartjs-2.js.org/examples)
- [Migration to v6](https://react-chartjs-2.js.org/docs/migration-to-v6/)
- [Migration to v4](https://react-chartjs-2.js.org/docs/migration-to-v4/)
- [Working with datasets](https://react-chartjs-2.js.org/docs/working-with-datasets/)
- [Working with events](https://react-chartjs-2.js.org/docs/working-with-events/)
- [FAQ](https://react-chartjs-2.js.org/faq/)
- [Components](https://react-chartjs-2.js.org/components/)
- [Examples](https://react-chartjs-2.js.org/examples/)

## License

Expand Down
3 changes: 2 additions & 1 deletion oxlint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export default defineConfig({
'**/package/',
'**/coverage/',
'**/storybook-static/',
'website/'
'**/.astro/',
'website/public/sandboxes/'
],
options: {
typeAware: true,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"storybook": "storybook dev -p 6006 --no-open",
"storybook:build": "storybook build",
"sandboxes:build": "pnpm -r --filter \"./sandboxes/**\" build",
"docs:build": "run sandboxes:build [ pnpm --filter website build ]",
"lint": "oxlint",
"test:unit": "vitest run --coverage",
"test:unit:watch": "vitest watch",
Expand Down
Loading
Loading