Skip to content

Commit 41516d6

Browse files
committed
Update docs config and pre-commit version
1 parent 1047b67 commit 41516d6

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repos:
1212
hooks:
1313
- id: reuse
1414
- repo: https://github.com/pre-commit/pre-commit-hooks
15-
rev: v4.4.0
15+
rev: v5.0.0
1616
hooks:
1717
- id: check-yaml
1818
- id: end-of-file-fixer

docs/conf.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import os
88
import sys
9+
import datetime
910

1011
sys.path.insert(0, os.path.abspath(".."))
1112

@@ -16,13 +17,14 @@
1617
# ones.
1718
extensions = [
1819
"sphinx.ext.autodoc",
20+
"sphinxcontrib.jquery",
1921
"sphinx.ext.intersphinx",
2022
"sphinx.ext.napoleon",
2123
"sphinx.ext.todo",
2224
]
2325

2426
intersphinx_mapping = {
25-
"python": ("https://docs.python.org/3.4", None),
27+
"python": ("https://docs.python.org/3", None),
2628
"CircuitPython": ("https://circuitpython.readthedocs.io/en/latest/", None),
2729
}
2830

@@ -36,7 +38,14 @@
3638

3739
# General information about the project.
3840
project = "Adafruit Shell Library"
39-
copyright = "2020 Melissa LeBlanc-Williams"
41+
creation_year = "2020"
42+
current_year = str(datetime.datetime.now().year)
43+
year_duration = (
44+
current_year
45+
if current_year == creation_year
46+
else creation_year + " - " + current_year
47+
)
48+
copyright = year_duration + " Melissa LeBlanc-Williams"
4049
author = "Melissa LeBlanc-Williams"
4150

4251
# The version info for the project you're documenting, acts as replacement for

0 commit comments

Comments
 (0)