Skip to content

Commit 05f580e

Browse files
authored
Automatic updates of copyright year in lib (kornia#2890)
* Automatic updates of copyright year in lib * Fixed for ruff
1 parent 447108f commit 05f580e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

docs/source/conf.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import inspect
33
import os
44
import sys
5+
from datetime import datetime, timezone
56

67
# readthedocs generated the whole documentation in an isolated environment
78
# by cloning the git repo. Thus, any on-the-fly operation will not effect
@@ -71,7 +72,7 @@
7172
# General information about the project.
7273
project = "Kornia"
7374
author = f"{project} developers"
74-
copyright = f"2019, {author}"
75+
copyright = f"{datetime.now(tz=timezone.utc).year}, {author}"
7576

7677
# The version info for the project you're documenting, acts as replacement for
7778
# |version| and |release|, also used in various other places throughout the
@@ -168,7 +169,6 @@
168169
html_css_files = ["css/main.css"]
169170
html_js_files = ["js/custom.js"]
170171

171-
172172
# Configure viewcode extension.
173173
# based on https://github.com/readthedocs/sphinx-autoapi/issues/202
174174
code_url = "https://github.com/kornia/kornia/blob/main"
@@ -233,14 +233,12 @@ def linkcode_resolve(domain, info):
233233
# author, documentclass [howto, manual, or own class]).
234234
latex_documents = [(master_doc, "kornia.tex", "Kornia", "manual")]
235235

236-
237236
# -- Options for manual page output ---------------------------------------
238237

239238
# One entry per manual page. List of tuples
240239
# (source start file, name, description, authors, manual section).
241240
man_pages = [(master_doc, "Kornia", "Kornia Documentation", [author], 1)]
242241

243-
244242
# -- Options for Texinfo output -------------------------------------------
245243

246244
# Grouping the document tree into Texinfo files. List of tuples
@@ -258,7 +256,6 @@ def linkcode_resolve(domain, info):
258256
)
259257
]
260258

261-
262259
# Example configuration for intersphinx: refer to the Python standard library.
263260
intersphinx_mapping = {
264261
"python": ("https://docs.python.org/3/", None),

0 commit comments

Comments
 (0)