1- # -*- coding: utf-8 -*-
2-
31# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
42#
53# SPDX-License-Identifier: MIT
64
5+ import datetime
76import os
87import sys
9- import datetime
108
119sys.path.insert(0, os.path.abspath(".."))
1210
@@ -34,10 +32,10 @@ autodoc_preserve_defaults = True
3432
3533intersphinx_mapping = {
3634 "python": ("https://docs.python.org/3", None),
37- {%- if cookiecutter.requires_bus_device in ["y", "yes"] -%}
35+ {% if cookiecutter.requires_bus_device in ["y", "yes"] -%}
3836 "BusDevice": ("https://docs.circuitpython.org/projects/busdevice/en/latest/", None),
39- {% endif %}
40- {%- if cookiecutter.requires_register in ["y", "yes"] -%}
37+ {%- endif %}
38+ {% if cookiecutter.requires_register in ["y", "yes"] -%}
4139 "Register": ("https://docs.circuitpython.org/projects/register/en/latest/", None),
4240 {%- endif %}
4341 "CircuitPython": ("https://docs.circuitpython.org/en/latest/", None),
@@ -59,9 +57,7 @@ project = "{% if cookiecutter.target_bundle != 'CircuitPython Org' %}{% if cooki
5957creation_year = "{% now 'utc', '%Y' %}"
6058current_year = str(datetime.datetime.now().year)
6159year_duration = (
62- current_year
63- if current_year == creation_year
64- else creation_year + " - " + current_year
60+ current_year if current_year == creation_year else creation_year + " - " + current_year
6561)
6662copyright = year_duration + " {{ cookiecutter.author_name }}"
6763author = "{{ cookiecutter.author_name }}"
0 commit comments