From b6e62a7048fee173db21bd7cd98fd343032e8334 Mon Sep 17 00:00:00 2001 From: Jacco van den Berg Date: Tue, 1 Jun 2021 16:47:32 +0200 Subject: [PATCH 1/2] add explenation on how to run the samples locally --- docs/getting-started/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/getting-started/index.md b/docs/getting-started/index.md index 24957e038c0..10c5616a6c6 100644 --- a/docs/getting-started/index.md +++ b/docs/getting-started/index.md @@ -69,3 +69,5 @@ Finally, render the chart using our configuration: It's that easy to get started using Chart.js! From here you can explore the many options that can help you customise your charts with scales, tooltips, labels, colors, custom actions, and much more. All our examples are [available online](/samples/) but you can also download the `Chart.js.zip` archive attached to every [release](https://github.com/chartjs/Chart.js/releases) to experiment with our samples locally from the `/samples` folder. + +To run the samples locally you first have to install all the necessary packages using the `npm ci` command, after this you can run `npm run docs:dev` to build the documentation. As soon as the build is done, you can go to [http://localhost:8080/docs/master/samples](http://localhost:8080/docs/master/samples) to see the samples. From 3f13c40249f07d02d7f300b664cebfa9e7581fa1 Mon Sep 17 00:00:00 2001 From: Jacco van den Berg Date: Tue, 1 Jun 2021 18:00:07 +0200 Subject: [PATCH 2/2] Remove unecesarry parts from link --- docs/getting-started/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started/index.md b/docs/getting-started/index.md index 10c5616a6c6..8c5aaf62d5f 100644 --- a/docs/getting-started/index.md +++ b/docs/getting-started/index.md @@ -70,4 +70,4 @@ It's that easy to get started using Chart.js! From here you can explore the many All our examples are [available online](/samples/) but you can also download the `Chart.js.zip` archive attached to every [release](https://github.com/chartjs/Chart.js/releases) to experiment with our samples locally from the `/samples` folder. -To run the samples locally you first have to install all the necessary packages using the `npm ci` command, after this you can run `npm run docs:dev` to build the documentation. As soon as the build is done, you can go to [http://localhost:8080/docs/master/samples](http://localhost:8080/docs/master/samples) to see the samples. +To run the samples locally you first have to install all the necessary packages using the `npm ci` command, after this you can run `npm run docs:dev` to build the documentation. As soon as the build is done, you can go to [http://localhost:8080/samples/](http://localhost:8080/samples/) to see the samples.