Skip to content

Commit 702be96

Browse files
authored
Merge pull request #198 from tekktrik/add-evergreen
Update copyright year to update on build
2 parents 26068ae + 0b5fa8b commit 702be96

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

{{ cookiecutter.__dirname }}/docs/{% if cookiecutter.sphinx_docs in ['y', 'yes'] %}conf.py{% endif %}

Lines changed: 3 additions & 1 deletion
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

@@ -52,7 +53,8 @@ master_doc = "index"
5253

5354
# General information about the project.
5455
project = "{% if cookiecutter.target_bundle != 'CircuitPython Org' %}{% if cookiecutter.library_prefix %}{{ cookiecutter.library_prefix | capitalize }} {% endif %}{% endif %}CircuitPython {{ cookiecutter.library_name }} Library"
55-
copyright = "{% now 'utc', '%Y' %} {{ cookiecutter.author_name }}"
56+
current_year = str(datetime.datetime.now().year)
57+
copyright = current_year + " {{ cookiecutter.author_name }}"
5658
author = "{{ cookiecutter.author_name }}"
5759

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

0 commit comments

Comments
 (0)