From 96a7169eb8ad36f2cc6cc3cc9159c62e583da16f Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 14 Jul 2022 16:53:14 +0200 Subject: [PATCH] docs: replace copyright years statement with single source of truth from conf Signed-off-by: Thomas Lamprecht --- docs/conf.py | 1 + docs/index.rst | 2 +- docs/introduction.rst | 2 +- docs/pbs-copyright.rst | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 4f5abdb2..e0a9c4bb 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -88,6 +88,7 @@ release = vstr(os.getenv('DEB_VERSION')) epilog_file = open('epilog.rst', 'r') rst_epilog = epilog_file.read() rst_epilog += f"\n.. |VERSION| replace:: {version}" +rst_epilog += f"\n.. |pbs-copyright| replace:: Copyright (C) {copyright}" man_pages = [ # CLI diff --git a/docs/index.rst b/docs/index.rst index 713b09d8..8e13c24f 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -2,7 +2,7 @@ Welcome to the Proxmox Backup documentation! ============================================ -| Copyright (C) 2019-2021 Proxmox Server Solutions GmbH +| |pbs-copyright| | Version |version| -- |today| Permission is granted to copy, distribute and/or modify this document under the diff --git a/docs/introduction.rst b/docs/introduction.rst index 47b5d606..f0037d80 100644 --- a/docs/introduction.rst +++ b/docs/introduction.rst @@ -186,7 +186,7 @@ of the issue and will send a notification once it has been solved. License ------- -Copyright (C) 2019-2021 Proxmox Server Solutions GmbH +|pbs-copyright| This software is written by Proxmox Server Solutions GmbH diff --git a/docs/pbs-copyright.rst b/docs/pbs-copyright.rst index c7d00301..ebdbc024 100644 --- a/docs/pbs-copyright.rst +++ b/docs/pbs-copyright.rst @@ -1,7 +1,7 @@ Copyright and Disclaimer ======================== -Copyright (C) 2007-2021 Proxmox Server Solutions GmbH +|pbs-copyright| This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as