]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Add explanation on how to run the samples locally (#9207)
authorJacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com>
Wed, 2 Jun 2021 19:47:16 +0000 (21:47 +0200)
committerGitHub <noreply@github.com>
Wed, 2 Jun 2021 19:47:16 +0000 (22:47 +0300)
* add explenation on how to run the samples locally

* Remove unecesarry parts from link

docs/getting-started/index.md

index 24957e038c059d2eab3d78060669d083c99764e9..8c5aaf62d5fccd53180cc7edaa2e0382b229f514 100644 (file)
@@ -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/samples/](http://localhost:8080/samples/) to see the samples.