Skip to content

Commit

Permalink
Merge pull request #3616 from stsewd/remove-hard-coded-year
Browse files Browse the repository at this point in the history
Remove hardcoded copyright year
  • Loading branch information
ericholscher committed Feb 16, 2018
2 parents 6a13d9e + fac7228 commit a79534b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
9 changes: 7 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# -*- coding: utf-8 -*-
#

from __future__ import division, print_function, unicode_literals

import os
import sys

Expand All @@ -11,6 +13,7 @@
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "readthedocs.settings.dev")

from django.conf import settings
from django.utils import timezone

import django
django.setup()
Expand All @@ -33,7 +36,9 @@

master_doc = 'index'
project = u'Read the Docs'
copyright = u'2010-2017, Read the Docs, Inc & contributors'
copyright = '2010-{}, Read the Docs, Inc & contributors'.format(
timezone.now().year
)
version = '1.0'
release = '1.0'
exclude_patterns = ['_build']
Expand Down
6 changes: 5 additions & 1 deletion readthedocs/templates/sphinx/conf.py.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# -*- coding: utf-8 -*-

from __future__ import division, print_function, unicode_literals

from datetime import datetime

from recommonmark.parser import CommonMarkParser

extensions = []
Expand All @@ -10,7 +14,7 @@ source_parsers = {
}
master_doc = 'index'
project = u'{{ project.name }}'
copyright = u'2016'
copyright = str(datetime.now().year)
version = '{{ version.verbose_name }}'
release = '{{ version.verbose_name }}'
exclude_patterns = ['_build']
Expand Down

0 comments on commit a79534b

Please sign in to comment.