1
- # -*- coding: utf-8 -*-
2
-
3
1
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
4
2
#
5
3
# SPDX-License-Identifier: MIT
6
4
5
+ import datetime
7
6
import os
8
7
import sys
9
- import datetime
10
8
11
9
sys.path.insert(0, os.path.abspath(".."))
12
10
@@ -34,10 +32,10 @@ autodoc_preserve_defaults = True
34
32
35
33
intersphinx_mapping = {
36
34
"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"] -%}
38
36
"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"] -%}
41
39
"Register": ("https://docs.circuitpython.org/projects/register/en/latest/", None),
42
40
{%- endif %}
43
41
"CircuitPython": ("https://docs.circuitpython.org/en/latest/", None),
@@ -59,9 +57,7 @@ project = "{% if cookiecutter.target_bundle != 'CircuitPython Org' %}{% if cooki
59
57
creation_year = "{% now 'utc', '%Y' %}"
60
58
current_year = str(datetime.datetime.now().year)
61
59
year_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
65
61
)
66
62
copyright = year_duration + " {{ cookiecutter.author_name }}"
67
63
author = "{{ cookiecutter.author_name }}"
0 commit comments