Skip to content

Commit

Permalink
Use year duration range for copyright attribution
Browse files Browse the repository at this point in the history
  • Loading branch information
Alec Delaney committed Aug 23, 2022
1 parent a81a24a commit 84a77e6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/conf.py
Expand Up @@ -48,8 +48,14 @@

# General information about the project.
project = "Adafruit FONA Library"
creation_year = "2020"
current_year = str(datetime.datetime.now().year)
copyright = current_year + " Brent Rubell, ladyada"
year_duration = (
current_year
if current_year == creation_year
else creation_year + " - " + current_year
)
copyright = year_duration + " Brent Rubell, ladyada"
author = "Brent Rubell, ladyada"

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

0 comments on commit 84a77e6

Please sign in to comment.