From a3adf75fa1a3eb6445883505d9b547e6400aa42e Mon Sep 17 00:00:00 2001 From: Ivan Anfimov Date: Thu, 8 May 2025 18:07:00 +0000 Subject: [PATCH] docs: add information about project for prevent warning and updating of copyright Change-Id: If7ba9c10d6d141f163f0d0ee09be42d76da21355 --- deploy-guide/source/conf.py | 5 ++++- doc/source/conf.py | 5 ++++- releasenotes/source/conf.py | 6 ++++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/deploy-guide/source/conf.py b/deploy-guide/source/conf.py index 67c6a6dd0c..893fe2665e 100644 --- a/deploy-guide/source/conf.py +++ b/deploy-guide/source/conf.py @@ -22,6 +22,8 @@ # All configuration values have a default; values that are commented out # serve to show the default. +from datetime import datetime + import os import subprocess import sys @@ -36,9 +38,10 @@ previous_series_name = '2024.2' current_series_name = '2025.1' # General information about the project. +project = 'OpenStack-Ansible' author = 'OpenStack-Ansible Contributors' category = 'Miscellaneous' -copyright = '2014-2023, OpenStack-Ansible Contributors' +copyright = f'2014-{datetime.now().year}, OpenStack-Ansible Contributors' title = 'OpenStack-Ansible Deploy Guide' # Smart variable replacements with what we can. The openstackdocstheme has diff --git a/doc/source/conf.py b/doc/source/conf.py index 7d32966f6b..ee41997309 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -22,6 +22,8 @@ # All configuration values have a default; values that are commented out # serve to show the default. +from datetime import datetime + import os import subprocess import sys @@ -38,9 +40,10 @@ previous_slurp_name = '2024.1' current_series_name = '2025.1' # General information about the project. +project = 'OpenStack-Ansible' author = 'OpenStack-Ansible Contributors' category = 'Miscellaneous' -copyright = '2014-2018, OpenStack-Ansible Contributors' +copyright = f'2014-{datetime.now().year}, OpenStack-Ansible Contributors' title = 'OpenStack-Ansible Documentation' # Smart variable replacements with what we can. The openstackdocstheme has diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py index 1a1e817a6d..7b3a7d892d 100644 --- a/releasenotes/source/conf.py +++ b/releasenotes/source/conf.py @@ -22,6 +22,8 @@ # All configuration values have a default; values that are commented out # serve to show the default. +from datetime import datetime + # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. @@ -53,11 +55,11 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. +project = 'OpenStack-Ansible' author = 'OpenStack-Ansible Contributors' category = 'Miscellaneous' -copyright = '2014-2016, OpenStack-Ansible Contributors' +copyright = f'2014-{datetime.now().year}, OpenStack-Ansible Contributors' description = 'OpenStack-Ansible deploys OpenStack environments using Ansible.' -project = 'OpenStack-Ansible' target_name = 'openstack-ansible' title = 'OpenStack-Ansible Release Notes'