From 186f2162d7f0e1f7d84edbca17327d26b38a16b0 Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Sun, 16 Oct 2022 12:15:10 -0500 Subject: [PATCH] Fix dates in man page. --- doc/man.md.j2 | 4 ++-- doc/render.py | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/man.md.j2 b/doc/man.md.j2 index f69a6aec..030cb315 100644 --- a/doc/man.md.j2 +++ b/doc/man.md.j2 @@ -1,6 +1,6 @@ % conky(1) % -% 2012-05-03 +% {{ date }} # NAME @@ -270,7 +270,7 @@ experiment. # COPYING -Copyright (c) 2005-2022 Brenden Matthews, Philip Kovacs, et. al. Any +Copyright (c) 2005-{{ copyright_year }} Brenden Matthews, Philip Kovacs, et. al. Any original torsmo code is licensed under the BSD license (see LICENSE.BSD for a copy). All code written since the fork of torsmo is licensed under the GPL (see LICENSE.GPL for a copy), except where noted differently diff --git a/doc/render.py b/doc/render.py index 5d24b506..5210ea31 100755 --- a/doc/render.py +++ b/doc/render.py @@ -3,6 +3,7 @@ import sys import os import yaml +import datetime base_path = os.path.dirname(os.path.realpath(__file__)) @@ -19,6 +20,8 @@ data = { "config_settings": config_settings, "variables": variables, "lua": lua, + "date": datetime.date.today().isoformat(), + "copyright_year": datetime.date.today().year, } from jinja2 import Environment, FileSystemLoader, select_autoescape