Update docs config and pre-commit version

This commit is contained in:
Melissa LeBlanc-Williams 2025-03-01 13:50:40 -08:00
parent 1047b67c97
commit 41516d60bf
2 changed files with 12 additions and 3 deletions

View file

@ -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

View file

@ -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