From 5a481af40d85ef60c46517ddfbe6f1f349861e39 Mon Sep 17 00:00:00 2001 From: Nils <> Date: Sun, 3 May 2020 18:53:29 +0200 Subject: [PATCH] Add generated comment to readme.md --- template/documentation/build.py | 2 ++ template/documentation/readme.template | 3 +++ 2 files changed, 5 insertions(+) diff --git a/template/documentation/build.py b/template/documentation/build.py index dce1709..c1c72b7 100644 --- a/template/documentation/build.py +++ b/template/documentation/build.py @@ -23,6 +23,7 @@ import subprocess from os import getcwd import os.path assert os.path.exists(os.path.join(getcwd(), __file__)), (getcwd(), __file__) +import datetime #Readme @@ -30,6 +31,7 @@ assert os.path.exists(os.path.join(getcwd(), __file__)), (getcwd(), __file__) with open("readme.template", "r") as r: template_readme = r.read() +template_readme = template_readme.replace("", datetime.now().isoformat()) template_readme = template_readme.replace("", METADATA["name"]) template_readme = template_readme.replace("", METADATA["version"]) template_readme = template_readme.replace("", METADATA["shortName"]) diff --git a/template/documentation/readme.template b/template/documentation/readme.template index 6d633fd..f154130 100644 --- a/template/documentation/readme.template +++ b/template/documentation/readme.template @@ -1,3 +1,6 @@ + +[//]: # (Generated . Changes belong into template/documentation/readme.template) + # Program version