Skip to content

Commit

Permalink
Automatic updates of copyright year in lib (#2890)
Browse files Browse the repository at this point in the history
* Automatic updates of copyright year in lib

* Fixed for ruff
  • Loading branch information
chirizxc committed Apr 24, 2024
1 parent 447108f commit 05f580e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
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
Expand Down Expand Up @@ -71,7 +72,7 @@
# 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
Expand Down Expand Up @@ -168,7 +169,6 @@
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"
Expand Down Expand Up @@ -233,14 +233,12 @@ def linkcode_resolve(domain, info):
# 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
Expand All @@ -258,7 +256,6 @@ def linkcode_resolve(domain, info):
)
]


# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {
"python": ("https://docs.python.org/3/", None),
Expand Down

0 comments on commit 05f580e

Please sign in to comment.