Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

Automatic updates of copyright year in lib (#2890)

chiri05f580ecea52
diff --git a/docs/source/conf.py b/docs/source/conf.py
index 4bb6b40e6..96f19d814 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -2,6 +2,7 @@ import importlib.util
import inspect
import os
import sys
+from datetime import datetime, timezone
# readthedocs generated the whole documentation in an isolated environment
# by cloning the git repo. Thus, any on-the-fly operation will not effect
@@ -71,7 +72,7 @@ master_doc = "index"
# General information about the project.
project = "Kornia"
author = f"{project} developers"
-copyright = f"2019, {author}"
+copyright = f"{datetime.now(tz=timezone.utc).year}, {author}"
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
@@ -168,7 +169,6 @@ htmlhelp_basename = "Kornia"
html_css_files = ["css/main.css"]
html_js_files = ["js/custom.js"]
-
# Configure viewcode extension.
# based on https://github.com/readthedocs/sphinx-autoapi/issues/202
code_url = "https://github.com/kornia/kornia/blob/main"
@@ -233,14 +233,12 @@ latex_elements = {
# author, documentclass [howto, manual, or own class]).
latex_documents = [(master_doc, "kornia.tex", "Kornia", "manual")]
-
# -- Options for manual page output ---------------------------------------
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [(master_doc, "Kornia", "Kornia Documentation", [author], 1)]
-
# -- Options for Texinfo output -------------------------------------------
# Grouping the document tree into Texinfo files. List of tuples
@@ -258,7 +256,6 @@ texinfo_documents = [
)
]
-
# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {
"python": ("https://docs.python.org/3/", None),