diff options
author | Canop <cano.petrole@gmail.com> | 2023-01-20 15:23:12 +0100 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2023-01-20 15:23:12 +0100 |
commit | 4ee62544939c54b87680e3cdb0526a3bcc2dc00f (patch) | |
tree | 5732eccc31808e0f1cb210ca5d8ef272dab68752 | |
parent | 8f984158417ce814c07380a0315d721ce618888d (diff) |
website: display version & link to changelog
-rwxr-xr-x | release.sh | 3 | ||||
-rw-r--r-- | website/docs/install.md | 19 |
2 files changed, 22 insertions, 0 deletions
@@ -27,6 +27,9 @@ mkdir build echo "This is lfs. More info and installation instructions on https://github.com/Canop/lfs" > build/README.md cp CHANGELOG.md build +# publish version number +echo "$version" > build/version + # prepare the release archive rm lfs_*.zip zip -r "lfs_$version.zip" build/* diff --git a/website/docs/install.md b/website/docs/install.md index 1d19bc8..6725af4 100644 --- a/website/docs/install.md +++ b/website/docs/install.md @@ -1,6 +1,25 @@ **lfs** only works on linux. +Current version: **<a id=current-version href=../download>download</a>** +<script> +console.log("in script"); +fetch("../download/version") + .then(response => response.text()) + .then(version => { + console.log(`version: #${version}#`); + version = version.trim(); + if (!/^\d+(\.\d+)*(-\w+)?$/.test(version)) { + console.warn("invalid version in download/version"); + return; + } + document.getElementById("current-version").textContent = version; + }) +</script> + +[CHANGELOG](https://github.com/Canop/lfs/blob/main/CHANGELOG.md) + + # Precompiled binaries Binaries are made available at every release in [download](https://dystroy.org/lfs/download). |