1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
If you'd like to contribute to the noUiSlider documentation (yes please!), you can run it locally using PHP's built in web server.
Note that this requires PHP to be installed on your system.
Clone the project (for example, in `C:/Web`):
```git clone https://github.com/leongersen/noUiSlider nouislider```
Note that the documentation assumes a clone in a lowercase "nouislider" directory.
You can now run the following shorthand to start the server:
```
npm run docs
```
You can now access the documentation at `http://localhost:8080/nouislider/`.
To run on another port, set a `PORT` environment variable:
```
PORT=8086 npm run docs
```
Alternatively, in your root (e.g. `C:/Web`), start the server:
```php -S localhost:8080 nouislider/documentation/_run/router.php```
The documentation uses noUiSlider from the `dist` folder, so you can test any changes you've made to the main source in the documentation after running `npm run build`.
|