From 41516d60bf02497f691810d909e98a326e51f756 Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Sat, 1 Mar 2025 13:50:40 -0800 Subject: [PATCH] Update docs config and pre-commit version --- .pre-commit-config.yaml | 2 +- docs/conf.py | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 70ade69..761f7a9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: hooks: - id: reuse - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v5.0.0 hooks: - id: check-yaml - id: end-of-file-fixer diff --git a/docs/conf.py b/docs/conf.py index 09b59a1..cd1ea74 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -6,6 +6,7 @@ import os import sys +import datetime sys.path.insert(0, os.path.abspath("..")) @@ -16,13 +17,14 @@ sys.path.insert(0, os.path.abspath("..")) # ones. extensions = [ "sphinx.ext.autodoc", + "sphinxcontrib.jquery", "sphinx.ext.intersphinx", "sphinx.ext.napoleon", "sphinx.ext.todo", ] intersphinx_mapping = { - "python": ("https://docs.python.org/3.4", None), + "python": ("https://docs.python.org/3", None), "CircuitPython": ("https://circuitpython.readthedocs.io/en/latest/", None), } @@ -36,7 +38,14 @@ master_doc = "index" # General information about the project. project = "Adafruit Shell Library" -copyright = "2020 Melissa LeBlanc-Williams" +creation_year = "2020" +current_year = str(datetime.datetime.now().year) +year_duration = ( + current_year + if current_year == creation_year + else creation_year + " - " + current_year +) +copyright = year_duration + " Melissa LeBlanc-Williams" author = "Melissa LeBlanc-Williams" # The version info for the project you're documenting, acts as replacement for