Skip to content

Commit

Permalink
Merge pull request #137 from tekktrik/tekktrik-patch-1
Browse files Browse the repository at this point in the history
Use year duration for copyright attribution in RTD
  • Loading branch information
kattni authored Aug 23, 2022
2 parents f3de529 + 0e838d1 commit 1064fde
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,14 @@

# General information about the project.
project = "Adafruit CircuitPython NeoPixel Library"
creation_year = "2017"
current_year = str(datetime.datetime.now().year)
copyright = current_year + " Scott Shawcroft & Damien P. George"
year_duration = (
current_year
if current_year == creation_year
else creation_year + " - " + current_year
)
copyright = year_duration + " Scott Shawcroft & Damien P. George"
author = "Scott Shawcroft & Damien P. George"

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

0 comments on commit 1064fde

Please sign in to comment.