From 6aca6a6c986e156a685f33ad597819ae61dd7896 Mon Sep 17 00:00:00 2001 From: Leon Gersen Date: Sat, 20 Jan 2018 17:56:55 +0100 Subject: [PATCH] Version from package --- documentation/_run/index.php | 4 ++-- documentation/_run/router.php | 4 ++++ documentation/download.php | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/documentation/_run/index.php b/documentation/_run/index.php index 3a282cd0..77c99a4b 100644 --- a/documentation/_run/index.php +++ b/documentation/_run/index.php @@ -13,8 +13,8 @@ - - + + */ ?> diff --git a/documentation/_run/router.php b/documentation/_run/router.php index 867ae068..80365b8a 100644 --- a/documentation/_run/router.php +++ b/documentation/_run/router.php @@ -23,6 +23,10 @@ $title = ""; $description = ""; + $package = json_decode(file_get_contents('./../package.json')); + $version = $package->version; + $plain_version = str_replace('.', '', $version); + ob_start(); include $file; diff --git a/documentation/download.php b/documentation/download.php index c616ad00..5e503aaa 100644 --- a/documentation/download.php +++ b/documentation/download.php @@ -11,7 +11,7 @@

noUiSlider is open source, and you can use it for free in any personal or commercial product. No attribution required. Both the uncompressed and compressed version of noUiSlider are available in a .zip release, which is hosted by Github and available over https.

- Download noUiSlider from Github + Download noUiSlider from Github