From c0a0afd077c713e0f3e209531d7ce992eec6edc2 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Tue, 25 Jun 2024 09:26:10 +0200 Subject: [PATCH] version pull --- docs/scripts/create_readme.sh | 2 ++ docs/src/header.md | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/scripts/create_readme.sh b/docs/scripts/create_readme.sh index 80e3084..b09305e 100644 --- a/docs/scripts/create_readme.sh +++ b/docs/scripts/create_readme.sh @@ -8,11 +8,13 @@ README_FILE="./README.md" header=$(cat "./docs/src/header.md") table_of_content=$(~/go/bin/md-table-of-contents ./docs/src/README_template.md) +version=$(git describe --tags --abbrev=0) readme_content=$(cat "./docs/src/README_template.md") header=${header//\{date\}/$(date '+%D')} header=${header//\{primarycolor\}/89b4fa} header=${header//\{backgroundcolor\}/181825} +header=${header//\{version\}/$version} readme_content=${readme_content//\{md_table_of_content\}/$table_of_content} echo "$header" >"$README_FILE" diff --git a/docs/src/header.md b/docs/src/header.md index bdfcbab..e825e55 100644 --- a/docs/src/header.md +++ b/docs/src/header.md @@ -2,6 +2,7 @@ [//]: # (Description: Nixy is a Hyprland NixOS configuration with home-manager, secrets and custom theming all in one place. It's a simple way to manage your system configuration and dotfiles.) [//]: # (Author: Hadi) [//]: # (Date: {date}) +[//]: # (Version: {version})
@@ -14,7 +15,7 @@
- +