File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 12
12
hooks :
13
13
- id : reuse
14
14
- repo : https://github.com/pre-commit/pre-commit-hooks
15
- rev : v4.4 .0
15
+ rev : v5.0 .0
16
16
hooks :
17
17
- id : check-yaml
18
18
- id : end-of-file-fixer
Original file line number Diff line number Diff line change 6
6
7
7
import os
8
8
import sys
9
+ import datetime
9
10
10
11
sys .path .insert (0 , os .path .abspath (".." ))
11
12
16
17
# ones.
17
18
extensions = [
18
19
"sphinx.ext.autodoc" ,
20
+ "sphinxcontrib.jquery" ,
19
21
"sphinx.ext.intersphinx" ,
20
22
"sphinx.ext.napoleon" ,
21
23
"sphinx.ext.todo" ,
22
24
]
23
25
24
26
intersphinx_mapping = {
25
- "python" : ("https://docs.python.org/3.4 " , None ),
27
+ "python" : ("https://docs.python.org/3" , None ),
26
28
"CircuitPython" : ("https://circuitpython.readthedocs.io/en/latest/" , None ),
27
29
}
28
30
36
38
37
39
# General information about the project.
38
40
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"
40
49
author = "Melissa LeBlanc-Williams"
41
50
42
51
# The version info for the project you're documenting, acts as replacement for
You can’t perform that action at this time.
0 commit comments